It would indeed. :) Sounds like a healthy approach too. The syntax is plain
MEL, no mystery involved.

Maya standalone is certainly another option, especially if your files are
binary and you are stuck with it. You could potentially "select" in Maya
standalone too and make your export from there.


On 2 April 2014 15:12, Fredrik Averpil <[email protected]> wrote:

> 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<https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMyDZ2FbAw8SG-eQSADPHoaRYXPQWPBim2c%2Bnc4H8dPiQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

-- 
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/CAFRtmOAMjjMP55Ga4tm1v1uSPuKtHNfULG8t7yt%3DrvYp5_e9WQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to