MaxScript 添加自定义属性

 

scaleControl = attributes Scaleattribute
(
 rollout scale_change "缩放控制" width:185 height:231
 (
  spinner spn8 "x_Scale" pos:[19,22] width:133 height:16 range:[0,100,1]

  spinner spn9 "y_Scale" pos:[18,64] width:134 height:16 range:[0,100,1]

  spinner spn10 "z_Scale" pos:[20,107] width:132 height:16 range:[0,100,1]

  
  on spn8 changed val do
   $.scale=[spn8.value, spn9.value, spn10.value]
  on spn9 changed val do
   $.scale=[spn8.value, spn9.value, spn10.value]
  on spn10 changed val do
   $.scale=[spn8.value, spn9.value, spn10.value]
 )

custattributes.add $ scaleControl

 

                

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