textScrollList , rii flag gives an error if more then 3 items selected?

textScrollList , rii flag gives an error if more then 3 items selected?

Anonymous
Not applicable
280 Views
0 Replies
Message 1 of 1

textScrollList , rii flag gives an error if more then 3 items selected?

Anonymous
Not applicable

I am trying to use textScrollList and adding/removing items from there. But I get always error if I try to select more then 3 items... Can somebody help ?

 

import maya.cmds as cmds

window = cmds.window('window', width=150)
cmds.columnLayout( adjustableColumn=True )
textScrollA = cmds.textScrollList(allowMultiSelection=True)
cmds.textScrollList(textScrollA, e=True, append='joint1')
cmds.textScrollList(textScrollA, e=True, append='joint2')
cmds.textScrollList(textScrollA, e=True, append='joint3')
cmds.textScrollList(textScrollA, e=True, append='joint4')
cmds.textScrollList(textScrollA, e=True, append='joint5')
cmds.textScrollList(textScrollA, e=True, append='joint6')
test1 = cmds.textScrollList(textScrollA, q=True, sii=True)
cmds.showWindow( window )

 

 

test1 = cmds.textScrollList(textScrollA, q=True, sii=True)
cmds.textScrollList(textScrollA, e=True, rii=test1)

0 Likes
281 Views
0 Replies
Replies (0)