The script below is incomplete, but im just interested in this first section.
It checks whether a custom data folder has been created, if not, it creates it in this
location : C:\Users\John\Documents\maya\projects\customData
and opens the ‘save as’ window to save the file.
I would like to specify this location instead: \Users\John\Desktop\3D Projects\Doleman_Project
How would I do that ?
import os
import maya.cmds as cmds
def browseCustomData() :
projDir = cmds.internalVar( userWorkspaceDir = True)
newDir = os.path.join(projDir, 'customData')
if (not os.path.exists(newDir)) :
os.makedirs(newDir)
cmds.fileDialog2(startingDirectory = newDir)
browseCustomData()