Not applicable
12-12-2019
09:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having an issue where, when I have toolbarCommandInputs and more than one row in the table, everything except the first row piles up in the bottom left corner.
table1 = group2.children.addTableCommandInput('table1', '', 4, "3:1:2:3") table1.minimumVisibleRows = 4 table1.maximumVisibleRows = 8 updateTable(table1, [[[1,2,3], [1], 2, True, 105]]) boolValue2 = table1.commandInputs.addBoolValueInput('boolValue2', 'New', False, '', True) table1.addToolbarCommandInput(boolValue2) boolValue3 = table1.commandInputs.addBoolValueInput('boolValue3', 'Delete', False, '', True) table1.addToolbarCommandInput(boolValue3) def updateTable(table, shapes): selected = table.selectedRow table.clear() for i, s in enumerate(shapes): dd = table.commandInputs.addDropDownCommandInput('dropDownTable{}'.format(i), '', 0) dd.listItems.add("Flat", s[2]==0, '') dd.listItems.add("Cylinder", s[2]==1, '') dd.listItems.add("Sphere", s[2]==2, '') dd.listItems.add("Plane", s[2]==3, '') dd.listItems.add("Line", s[2]==4, '') dd.listItems.add("Point", s[2]==5, '') table.addCommandInput(dd, i, 0) bv = table.commandInputs.addBoolValueInput('boolValueTable{}'.format(i), 'Auto', True) bv.value = s[3] table.addCommandInput(bv, i, 1) tb = table.commandInputs.addTextBoxCommandInput('textBoxTable{}'.format(i), '', '{} ({})'.format(len(s[0])+len(s[1]), len(s[0])), 1, True) table.addCommandInput(tb, i, 2) fs = table.commandInputs.addFloatSpinnerCommandInput('floatSpinnerTable{}'.format(i), '', '', 0, 100000, 5, s[4]) table.addCommandInput(fs, i, 3) table.selectedRow = selected
Solved! Go to Solution.
Link copied