Notifications
Clear all

[Closed] Select object by name & put material

HI
Who can help? i need a script which will be able to select object by name and also put material by name from the material library

Thanks

1 Reply

Submitted by usaqmuri on Sun, 2014-09-14 08:52.

i need UI like this:

try (destroyDialog ::rol_TEST) catch()

rollout rol_TEST “TEST”
(

dropdownList ddl1 ” COLOR 1″ pos:[16,17] width:114 height:40 items:#(“RED”, “GREEN”, “BLUE”)
dropdownList ddl7 ” COLOR 2″ pos:[176,17] width:114 height:40 items:#(“RED”, “GREEN”, “BLUE”)
dropdownList ddl8 ” COLOR 3″ pos:[336,16] width:114 height:40 items:#(“RED”, “GREEN”, “BLUE”)
dropdownList ddl9 ” OBJECT1″ pos:[16,80] width:114 height:40 items:#(“OBJECT1”, “OBJECT2”, “OBJECT3”)
dropdownList ddl10 ” OBJECT2″ pos:[176,80] width:114 height:40 items:#(“OBJECT1”, “OBJECT2”, “OBJECT3”)
dropdownList ddl11 ” OBJECT3″ pos:[336,80] width:114 height:40 items:#(“OBJECT1”, “OBJECT2”, “OBJECT3”)

GroupBox grp1 “” pos:[168,8] width:126 height:120
GroupBox grp4 “” pos:[8,8] width:127 height:120
GroupBox grp5 “” pos:[328,8] width:127 height:120
button btn16 “OK” pos:[144,141] width:176 height:25

)

createDialog rol_TEST height:180 width:460 pos:[1080,130]

BUT THE COLORS WILL BE TAKE FROM MAT LIBRARY AND THE NAMES OF GEOMETRY FROM THE SCENE