pritishd
01-14-2011, 05:46 AM
Hello
I am using a script job to capture the selection, in order to alter the UI option. I get this weird error
# Error: line 1: Flag 'sl' must be passed a boolean argument # Traceback (most recent call last):
# File "<maya console>", line 1, in
# File "C:/Users/admin/Documents/maya/2011/scripts\PKD\rigging\GUI.py", line 1151, in <lambda>
# mc.scriptJob( e=["SelectionChanged",lambda*arg:self.refreshGUI()] )
# File "C:/Users/admin/Documents/maya/2011/scripts\PKD\rigging\GUI.py", line 1172, in refreshGUI
# selection=mc.ls(sl=True)
When I restart my GUI, which delete the script job and create a new one then it start working?
How can I capture this error so that I can loop untill the this error disappears
Cheers
Pritish
I am using a script job to capture the selection, in order to alter the UI option. I get this weird error
# Error: line 1: Flag 'sl' must be passed a boolean argument # Traceback (most recent call last):
# File "<maya console>", line 1, in
# File "C:/Users/admin/Documents/maya/2011/scripts\PKD\rigging\GUI.py", line 1151, in <lambda>
# mc.scriptJob( e=["SelectionChanged",lambda*arg:self.refreshGUI()] )
# File "C:/Users/admin/Documents/maya/2011/scripts\PKD\rigging\GUI.py", line 1172, in refreshGUI
# selection=mc.ls(sl=True)
When I restart my GUI, which delete the script job and create a new one then it start working?
How can I capture this error so that I can loop untill the this error disappears
Cheers
Pritish
