*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/2b588672-02a4-498e-9a8a-13bc4e7010d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.