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 CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2007
wxPython and Maya 8.5

Has anyone tried importing wx or Tkinter yet under Maya 8.5 and using them to build user interfaces with Maya 8.5's python integration? If so what was your experience? Did it work? Are there any issues to be aware of? So far I've only converted some of my existing MEL scripts to Python using the Maya/Python UI calls. This works fine but I'm interested if the wxpython modules might also work.

--Randy Stebbing
__________________
Randy Stebbing
 
  01 January 2007
I would like to know if anyone has had any success with this as well.

Any examples of working scripts would be great.
__________________
mike hovland
lead technical artist
Robomodo

Life beats down and crushes the soul... art reminds you that you have one. - Stella Adler
 
  01 January 2007
mhovland,

Are you asking for specific WX Python examples working under Maya or just examples of converted Mel scripts re-written to work using the Python calls?

My initial question was asking about the possiblity of wxPython integration. And I'm still hoping that someone can report flawless integration with wxPython as this could really open up the types of userinterface toolset available for Maya.

For those wondering about the more general Python/Maya integration I can report that Autodesk has done a great job at providing Python specific documentation to each command. All the Mel documentation examples have been converted to give corresponding Python/Maya examples.
--Randy Stebbing
__________________
Randy Stebbing
 
  01 January 2007
I was asking about UI integration using wxWidgets.
__________________
mike hovland
lead technical artist
Robomodo

Life beats down and crushes the soul... art reminds you that you have one. - Stella Adler
 
  01 January 2007
I'm really wondering if this could work too. Building UI's in Maya as we all now really sucks. However both Tkinker and wxPython would really step it up with having some really robust applications inside of maya.

Here is some help from Autodesk with regards to this. Haven't tried it yet. Hoping someone would give this a go and let us know if they had any success.

Quote: Issue

When I try this in the Script Editor in Python Mode:

from Tkinter import *

I get this error:

# File "C:\Program Files\Autodesk\Maya8.5\Python\lib\lib-tk\Tkinter.py", line 38, in ?
# import _tkinter # If this fails your Python may not be configured for Tk
# ImportError: No module named _tkinter

Solution

You need to find the _tkinter.so or .pyd in a separate installation of Python and put that into your PYTHONPATH for Maya to find it. _tkinter is not included with the Python distribution in Maya itself. You can look in the Python/DLLs directory to see which compiled modules are being distributed with Maya.

Note: Tkinter is not support within Maya at this current time.


If this would work, I've been dying to make a component editor that works. Having looked at some of the gridLayouts used in wxPython I was blown away by simple it is to create.

-Sean
__________________
===============
snolan.net

 
  01 January 2007
Keep us informed. I'm really eager to find out if this works too. It would really make gui creation for tools so much easier.
__________________

 
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 05:26 PM.


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