Marcus, Would it not be possible to write a method which parses through an .ma and collects all nodes and their attributes, perhaps in one or two dictionaries.
Then you would need a method to create a node from the dictionary and populate its attributes accordingly. When this is setup you could write a third method which would let you select which nodes to create from a list. I am not with a computer right now and I haven't checked on which form/syntax the .ma is written in. Any idea if this is covered in the docs or somewhere else? -- to the OP: If you know which parts you want imported on beforehand but need to automate this, you can run Maya in standalone mode and have it execute a script. This way Maya opens up in a prompt and can open the scene and then select and export the parts you are interested in into a scene which upon import will only import the stuff you wanted. Maya standalone is incredibly powerful when you need to automate stuff and without actually launching the regular GUI version of Maya. I've built a python app which analyses not the .ma but the scene "seen through" Maya this way. Look up "Maya standalone" in the docs. // Fredrik -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMyDZ2FbAw8SG-eQSADPHoaRYXPQWPBim2c%2Bnc4H8dPiQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
