with the use of lambda in a loop, the lambdas always wind up using the last argument defined of the loop
to get around this I do this: cmds.button(l='Sel',w=20, command = lambda x, y = fullName:selectMe(y) ) assign your value to an argument of the lambda On Tue, Jan 11, 2011 at 9:55 AM, PixelMuncher <[email protected]> wrote: > and this is the command I'm trying to assign to the buttons: > def selectMe(who): > print 'selectMe:',who > cmds.select (who) > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
