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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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)