Did you give it a try with mayapy.exe? https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-83799297-C629-48A8-BCE4-061D3F275215-htm.html
On Tue, 20 Jul 2021, 11:36 am Totally Zen, <atu...@gmail.com> wrote: > I need to open a scene without loading in maya and get its references, to > later work on some to load() correctly > *** I would like to use only pymel *** > > code example: > import maya.cmds as cmds > sceneNameToOpen = "C:\my_scene\animal.mb" > > cmds.file(sceneNameToOpen, loadReferenceDepth = 'none', open=1, > buildLoadSettings=1): > mel.eval('PreloadReferenceEditor;') > > -- > 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/cbedc1bf-2d09-4921-8d95-8795855708d1n%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/cbedc1bf-2d09-4921-8d95-8795855708d1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPGFgA12qPhBSL7FsoupPt619W9CkEQ64wfb4MUOV_Hmb509wQ%40mail.gmail.com.