Hello --
1- I want to create listbox to only load scenematerials with name plus suffix "CPT", "WD", etc.
2- double click : Apply material to object / objects selected.
3- create button to load selected material from listbox to material editor.
Thanks in advance!
rollout drop_roll "Drop Down List" width:162 height:170
(
local obj_array = #()
button updt "update" pos:[67,7] width:49 height:21
listbox mat_dd "Objects :" pos:[13,13] width:136 height:10
fn update_objs =
(
mat_array = scenematerials
mat_dd.items = for i in mat_array collect i.name
)
on drop_roll open do
update_objs()
on updt pressed do
update_objs() -- update list, if object has been deleted or added again in scene
on mat_dd doubleClicked sel do
select mat_array[i]
)
createDialog drop_roll
barigazy · 2014-07-06