Maxscript Combobox

rollout test "测试" width:162 height:252
(
 combobox cbx1 "按类别选择" pos:[12,13] width:120 height:6 items:#("选择球体", "选择圆柱体", "选择立方体") selection:0
 
 button btn12 "取消选择" pos:[19,148] width:108 height:28
 on cbx1 doubleClicked sel do
 (
  case sel of
  (
   1: (for a in geometry  where classof a==sphere do selectmore a)
   2: (for a in geometry  where classof a==cylinder do selectmore a)
   3: (for a in geometry  where classof a==box do selectmore a)
  )
 )
 on btn12 pressed  do
  deselect objects
)
  
createdialog test

posted @ 2011-11-15 14:48  GamePal  阅读(246)  评论(0编辑  收藏  举报