I am using...
cmds.file('myFile.ma', open=True)
from a custom UI, to open selected scenes.

I am using a lot of references in my scenes.
Using 'loadReferenceDepth' flag, I'm able to load all or none of the references within selected scene, when opening it.

Using, 'cmds.file' command, I'm am trying to 'mimic' the behavior it does when manually opening a scene using 'Selective preload' options from the Open Scene Option panel. (Selective preload lets the user choose which reference to load/not load), but I can't find a way to use it with python cmds of mel.

Did anyone solved that problem?

Suggested Topics

Want to read more? Browse other topics in Maya or view latest topics.