MaxScript Label

rollout unnamedRollout "Untitled" width:269 height:320
(
 button btn1 "拾取物体" pos:[136,140] width:93 height:23


 listbox lbx1 "物体列表" pos:[19,49] width:96 height:7

 edittext edt1 "重名名材质球" pos:[21,200] width:214 height:26
 label lbl1 "修改材质球名称 V1.0" pos:[21,11] width:144 height:27

 

 on btn1 pressed do
  lbx1.items = (for a in selection collect a.name)
 on edt1 entered text do
 (
  materialname = edt1.text
  for m=1 to 24 do
  (
   meditmaterials[m].name = materialname + (m as string)
  )
 )
)
createdialog unnamedRollout

                      

posted @ 2011-11-16 09:31  GamePal  阅读(420)  评论(0编辑  收藏  举报