Hello all,
i don't know why maya open a scene in python with this part of a script:
# open maya scene:
cmds.file( sceneNameToOpen, open=True, force=True, prompt=False )
# result:"D:\scenePath\SceneName.ma"
and didn't open it when i test without references and selective preload (it seems to delete slashes?!):
# open maya scene without references:
cmds.file( sceneNameToOpen, lrd = 'none' , buildLoadSettings=True ,open=True , force=True, prompt=False )
cmds.optionVar(stringValue=('preloadRefEdTopLevelFile', sceneNameToOpen))
mel.eval('PreloadReferenceEditor;')
# Error: line 1: File not found: "D:scenePath SceneName.ma" //
any idea is welcome :)