Hi, Tim, there are 2 links might let you understand more about how to add UI widget callbacks. I found them pretty useful when I started writing python script in maya.
ther first is from maya document, please scroll down of the page to find "positional arguments" part. http://download.autodesk.com/global/docs/maya2014/en_us/files/Python_Using_Python.htm the second is from pymel document. some methods of adding callback functions have been listed, and detailed with pros and cons. this one should be very helpful! http://download.autodesk.com/global/docs/maya2014/en_us/PyMel/ui.html and if you really want to use object as a callback function, you will probably have to implement __call__() method in you object. you can take a look of pymel Callback object for detail. but just like Marcus and Justin said, function is really capable of doing this, really! hope these 2 links help! >>> -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/980ec257-8e19-4ce9-90a3-aa308debf5ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
