Hi there I have a textScrollList in my GUI. And I have added items to the list with 'sc = select command' from a loop but it seems the command in 'sc' is all the same in each item which they should have their own command from the variable.
Example: cmds.textScrollList('myName',w=290,h=250) for each in finalList: myCommand = 'cmds.select('+each+')' newLabel = each #cmds.button( label=newLabel, command=(myCommand)) #button works but textScrollList doesnt cmds.textScrollList('myName',e=True,a=newLabel,sc=(myCommand)) When GUI pops up all itemsi n the scoll list seem to have the same command. As mentioned above it works with buttons. Perhaps the way I'm appending items with sc to the list is not correct..? Please help. Thank you.
-- http://groups.google.com/group/python_inside_maya