fajar
07-15-2009, 02:55 PM
Hey all maxscripter and scripter man !! please could somebody help me with this script!! bassiclly I want to add some modifier name to listbox if button 2 is pressed and object in selection has a modifier and do nothing if doesnt had any !
===================================================================
(
global mojo=#()
rollout pret "Untitled" width:162 height:149
(
local mojo=#()
listBox lbx1 "ListBox" pos:[4,0] width:154 height:7
button btn2 "Button" pos:[25,119] width:124 height:25
on btn2 pressed do
(
for obj in (selection as array) do
(
if obj.modifiers.count != 0 then
(
append mod_arr ((classOf obj.modifiers[i].name) as string)
)
lbx1.items = mojo
)
)
)
createDialog pret
)
=====================================================================
Thank
===================================================================
(
global mojo=#()
rollout pret "Untitled" width:162 height:149
(
local mojo=#()
listBox lbx1 "ListBox" pos:[4,0] width:154 height:7
button btn2 "Button" pos:[25,119] width:124 height:25
on btn2 pressed do
(
for obj in (selection as array) do
(
if obj.modifiers.count != 0 then
(
append mod_arr ((classOf obj.modifiers[i].name) as string)
)
lbx1.items = mojo
)
)
)
createDialog pret
)
=====================================================================
Thank
