var list = scene.getBoxById("myList"); if (list) { var sel = list.selection; if (sel) { sel.select(2); } }