also check out connectControl, it will create a two way connection between 
your ui and ae

On Wednesday, March 12, 2014 1:39:38 PM UTC+11, Doktor Weeny wrote:
>
>
> *Hi,Use "changeCommand 
> <http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/index.html>"
>  
> flag to attach a function to *intFieldGrp.
>
> If you have some arguments to pass, you have to use partial from functools 
> :
>
> from functools import partial
>
> def myFunction(myArg01, myArg02, *args):
>     print myArg01, myArg02
>
> arg01 = "first value"
> arg02 = "anything"
>
> cmds.intFieldGrp(numberOfFields = 1, label=vrayMtl + "_matteID", value1 
> =currentMatteID
> , changeCommand = partial(myFunction, arg01, arg02) )
>
>
>
> I hope it help.
>
> Alexis
>

-- 
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/12e98457-25cc-4d27-948e-cc6b0855fae9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to