External Python-Based UI accessing an open Maya Session

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  04 April 2013
External Python-Based UI accessing an open Maya Session

Hello!
I am pretty new to the world of Python in Maya. I have done a bunch of MEL inside of Maya by itself though.

I can not share my code unfortunately, but the question might be pretty basic:
I need to access an open session of maya (full control of commands/windows etc) from a python script that's running separately with its UI based in wx. (I am running in Linux)

Is this possible? The reasoning behind this is that the eventual goal would be a program that could access specific functions cross-platform.


As an added question:
Is it okay to import the maya Python libraries as extensions to the path? - sys.path.append("directory")


Sorry about my lack of knowledge in the matter, any help would be greatly appreciated!

John
 
  04 April 2013
This may help you out.

http://www.toadstorm.com/blog/?p=136
 
  04 April 2013
Originally Posted by Mondo: This may help you out.

http://www.toadstorm.com/blog/?p=136


That's pretty awesome, it's not exactly what I was looking for but very cool to know anyway.

I decided to go another route with the code, primarily because it took like 3 days for cgsociety to actually approve my account/first post

Thanks for the help regardless!
 
  04 April 2013
I actually just started writing some of the docs for a tool that we use here that I believe accomplishes your goal.

See GitHub -> https://github.com/westernx/remotecontrol
and the docs -> http://remotecontrol.readthedocs.org/en/latest/

I have only demoed the interactive interpreter there, but there is another to provide an API for other processes to use.
 
  04 April 2013
Whoa! Very cool! Thanks so much for your help guys. I am not sure when this message will actually be approved to go through, but this stuff is very useful and I appreciate it.

As I mentioned in my other reply (which has not yet gone though): I have decided to get the script working another way instead of way that I described above.

(I am passing a ton of arguments to the external script instead of being able to access the maya window directly. So in other words, you have to call the script from within Maya atm.)
 
  04 April 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:15 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.