the name argument to initialize was added in a more recent version of Maya. you can leave it out.
One thing to note is that standalone.initialize() does not initialize Maya the same way that Maya is initialized in any other mode (maya -batch, maya -prompt, Render, or GUI). It does not run any of the root MEL scripts that are run directly by Maya during the startup process, including pluginPrefs.mel and userSetup.mel, so MEL procedures or plugins which you might expect to be available may not be. If you use PyMEL it will take care of all of this initialization for you: just import pymel.core from mayapy. -chad — Sent from Mailbox On Sun, Feb 15, 2015 at 8:11 PM, likage <dissidia....@gmail.com> wrote: > I apologize in advance if I did not make myself clear, really sorry about > that. > Basically, I am trying to source for Rigs in the database (if you see the > screenshot below, the UI is still not exactly done but...), User will first > source the rigs in the Search Filter, they can select multiple rig versions > and the add the rigs by clicking onto the "Add Rig" button which will then > display under the QTreeWidget under the Migrate section > Then via the list of rigs in the QTreeWidget in the Migrate section, based > on each item in the list, I would like to import each item into a new scene > since very much later on, I will need to get this published out based on > each new scene. > Of course before that, I would like to get this importing + new scene > thingy settled first before I try advacning to the more complicated > stuff... And so that is why I had wanted it to be an automated process.. > About the standalone as mentioned by Educardo, I tried: > import maya.standalone as standalone > standalone.initialize(name='python') > but I gotten this error in my editor: > # Error: initialize() takes no keyword arguments > # Traceback (most recent call last): > # File "<maya console>", line 2, in <module> > # TypeError: initialize() takes no keyword arguments # > <https://lh3.googleusercontent.com/-2y3UvoSDF34/VOFt3UrIAsI/AAAAAAAAAD4/0d8hueSoPK4/s1600/ykt.2015-02-16_12-00-45.jpg> > -- > 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/34d04a91-c7e0-4ea8-b876-a68c23b49ad3%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/1424060407597.f7062396%40Nodemailer. For more options, visit https://groups.google.com/d/optout.