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 :)

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ab927de3-813a-4abd-852d-9c170dfc287a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to