Guest User

Untitled

a guest
May 24th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. last_head_name = "null"
  2. last_head=getNodeByName "mesh:head_1"
  3. Count = 33
  4. head_flag = false
  5.  
  6. rollout unnamedRollout "Character Kit" width:217 height:300
  7. (
  8.     dropDownList drp1 "Head" pos:[9,10] width:190 height:40 items:#("Head:A", "Head:B","Head:C")
  9.  
  10.    
  11.     on drp1 selected i do(
  12.     head_node = getNodeByName "node:head"
  13.       cur_head = i
  14.        
  15. --=========================================
  16. if (cur_head ==1)  then(
  17.  
  18. if head_flag==false then (
  19. for i=1 to Count do (
  20.     mesh_head = "mesh:head_"+i as String
  21.     for obj in objects do
  22.         if obj.name == mesh_head do
  23.             select $'mesh:head_1'
  24.             head_flag = true
  25.     )
  26. )
  27.  
  28. if head_flag==true then (
  29.     myHEAD = #("mesh:head_1")
  30.     mergemaxfile "D:\head.max" myHEAD
  31.     mHead_1 = getNodeByName "mesh:head_1"
  32.     mHead_1.pos = head_node.pos
  33.     head_flag = false
  34.     )
  35. )
  36. --=========================================
  37.  
  38. if (cur_head ==2)  then(
  39.  
  40. if head_flag==false then (
  41. for i=1 to Count do (
  42.     mesh_head = "mesh:head_"+i as String
  43.     for obj in objects do
  44.         if obj.name == mesh_head do
  45.             print(mesh_head)
  46.             delete obj
  47.             head_flag = true
  48.     )
  49. )
  50.  
  51. if head_flag==true then (
  52.     myHEAD = #("mesh:head_2")
  53.     mergemaxfile "D:\head.max" myHEAD
  54.     mHead_1 = getNodeByName "mesh:head_2"
  55.     mHead_1.pos = head_node.pos
  56.     head_flag = false
  57.     )
  58. )
  59. --=========================================
  60.  
  61.  
  62.    
  63.    
  64.     )
  65. )
  66.  
  67.  
  68. createDialog unnamedRollout
Advertisement
Add Comment
Please, Sign In to add comment