What I'm doing
I've been writing some custom maya nodes lately. The nodes are connected to each other by an editor I've written in PyQT. The node hierarchy then is outputted to XML which is used by the engine. This allows ARTISTS to build up objects INSIDE maya!
Now since the nodes are being edited by an editor and no user interface of maya is needed, I want to EXPOSE this tool outside of Maya aswell so people don't have to launch maya everytime they need to edit an object settings (changing Decal surface or collision type etc), and since the tool is written in PyQT I should be able to do this! Before this tool people usually wrote the XML files by hand or by copying from templates and made alot of errors and cause engine crashes, so that's what I'm firefighting.
So the external version would just open a Maya file and then since the nodes exists inside that scene I should easily be able to operate on them with my editor written in PyQT. All would be fine if I could launch windows through Mayapy.exe but I can't So I need to use an external interpreter that can load maya and still allow me to show my window!
Though there is a problem. I just can't get Maya standalone to initialize at all :S The module is loaded! But initialize fails. It throws two errors:
The first error is thrown 3 times, says can't find procedure start adress of ....:
the second error is thrown once:
I have appended the Maya install location and Maya Python site-packages location to sys.path in the begining of the script. I've also added them to the Enviroment variables called MAYA_LOCATION and PYTHONPATH through os.environ[..] = .. trick in the begining of the script. It finds the maya.standalone module but initialzie fails. Errors are thrown at my face
I'm just using the pythonw.exe to launch the external version of the tool. pythonw.exe has no problems showing PyQT windows so I thought why not make an external version of the same tool so people can do simple changes without needing to open maya. But Maya needs to be initialized first
My maya is 2011 64 bit hotfix 3 and python version is 2.6.4 64 bit. So there is no version mismatching at all
I just can't figure out what to do >_< Tried everything..
Would be lovely if someone can help me with this problem!
Best regards Yaz!