The script:
import maya.cmds as cmds
def myName( self, nombre, apellido, *args ):
print ( nombre + "_" + apellido )
def myWin():
cmds.window()
cmds.columnLayout()
cmds.button( label= 'Press', c= myName( nombre='Pepe', apellido='Grillo' ) )
cmds.showWindow()
myWin()
This is the error:
#TypeError: myName() takes at least 3 arguments (2 given)
Saludos!!
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b58aa1c8-013b-48a8-8499-01a1e2ee9be1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.