Creating a dropdown list that displays the objects in the scene?
Forum topic · General Scripting
Dropdown List of objects in scene
By JokerMartini · 2010-10-27
Description
Comments (2)
Michele71 · 2010-10-29
This is a great help ;)
Budi G · 2010-10-28
check this.. :)
rollout drop_roll "Drop Down List"
(
local obj_array = #()
button updt "update" offset:[10,0]
dropdownlist obj_dd "Objects :" offset:[0,-20] items:#()
fn update_objs =
(
obj_array = objects --as array
obj_dd.items = for i in obj_array collect i.name
)
on drop_roll open do update_objs()
on obj_dd selected i do select obj_array[i]
on updt pressed do update_objs() -- update list, if object has been deleted or added again in scene
)
createDialog drop_roll