Perhaps better to use PyMEL which, among many other things, has taken this
into consideration and provides a "Callback" object. The following page
describes the whole scenario which led to the creation of the mechanism
(including the use of lambda):

http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/PyMel/ui.html

Ken

On Mon, Nov 9, 2015 at 6:14 PM, ynedelin <[email protected]> wrote:

> Thanks a lot guys.
>
> Works!
>
> Yury
>
>
>
> --
> 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/8e30ebbd-48a6-4f7e-911c-0be57d76ee2c%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/8e30ebbd-48a6-4f7e-911c-0be57d76ee2c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"God is a metaphor for a mystery that absolutely transcends all human
categories of thought. It's as simple as that!" - Joseph Campbell

-- 
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/CAP_aC5awGHJMhc0tCqvCKWv7XsNvV4E2N%3DOni17ofovzSPtqUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to