wxPython and Maya 8.5

Become a member of the CGSociety

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

Thread Tools Display Modes
  05 May 2008
Interesting work so far, mberglund!
I had thought about using commandPort to communicate maya with wxPython too. This by far seems to be the most reliable approach to me. How's the respond time between maya and external python and wxpython?
mapy also plays trick on me. i cant even get it to work with my own text editor for some reason. I will keep playing with it.
  05 May 2008
The response so far has been great. I haven't detected any visble lag. The commands that i am sending it are so small anyways.

  cmd = """
$selectedObjects = `ls -sl`;				
  obj = self.com.run_mel_command(cmd)

It took a little bit of work to get mapy working but with python i use:

  a = [1,2,3]
  print a
  # write cmd to a file
  os.system('path/to/mapy/mapy.exe %s'%(file))

Getting maya to return the right data has been a little tricky and for the most part I think i have it. I generally have to parse the return thoroughly to get what I need.
My Rigging Blog
  05 May 2008
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
Society of Digital Artists

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

All times are GMT. The time now is 10:14 PM.

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