Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Python string callbacks within Maya UI commands?
  RSS 2.0 ATOM  

Python string callbacks within Maya UI commands?
Rate this thread
 
63967
 
Permlink of this thread  
avatar
  • himanish
  • Posted: 28 January 2012 07:18 AM
  • Total Posts: 2
  • Joined: 04 April 2009 01:21 PM

I have trouble with assigning a callback function in python to the selectCommand and selectionChangedCommand flags for the treeView UI command. Can someone post a working example of how to achieve this?



Replies: 0
avatar
  • himanish
  • Posted: 28 January 2012 03:58 PM

himanish 28 January 2012 07:18 AM

I have trouble with assigning a callback function in python to the selectCommand and selectionChangedCommand flags for the treeView UI command. Can someone post a working example of how to achieve this?

I figured that for some UI callbacks in python, python functions won’t work. In this case, a mel procedure has to be ‘callbacked’ from which the desired python function can be executed.



Replies: 0
avatar

just encountered that same bug/limitation, check out this thread:
http://area.autodesk.com/for...hon-ui-control-callbacks/



Replies: 0