You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
Hi, I have a file import script and I want to make it into an importer plugin.
Hopefully someone can help me with these questions:
Does MPxFileTranslator exist in Python API 2.0? If not,
should I use API 1.0 or should I use a different class?
where can I find documentation for Python API 1.0? I was using the C++ documentation but MFnPlugin.registerFileTranslator is apparently different.
Should I use MDagModifier to create nodes and assign materials? At the moment, when I assign geometry to shading groups and then use the sets command to look at the shading groups, they show as empty. As a workaround, I'm getting each shading group in Pymel and calling sg.dagSetMembers.evaluateNumElements() to make it update, which seems like a sign that I'm doing it wrong.
Are there any examples of adding options to importer plugins? Also, can import options be accessed when the user drags a file into the scene? I have a lot of options I'd like to add if I can.
Thanks!
Boon
I73
unread,
Sep 20, 2017, 2:46:44 PM9/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Python Programming for Autodesk Maya
Hey Micheal, I create plugins in the C++ API so pardon if I don't have all your answers, MPxFileTranslator exists in the open maya module (class) This is the hook to the API, an example can be found here:
Should I use MDagModifier to create nodes and assign materials? You can create nodes or you can assign materials directly to mesh, this question is a little confusing.
can import options be accessed when the user drags a file into the scene? I have a lot of options I'd like to add if I can.