Advertisement
cwkitkat

Untitled

Feb 19th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. delete objects
  2.  
  3. fn CreateFountain =
  4. (
  5. --Creates a fountain
  6. color1 = [255, 248, 220] --cornsilk
  7. obj1 = oiltank radius: 20 height: 5 wirecolor: color1 pos:[0,0,0] material:matMarble isSelected: true
  8. obj2 = chamfercyl radius: 19 height: 16 fillet: 2.5 pos: [0,0,2]
  9. proBoolObj.setOperandA obj1
  10. proBoolObj.setBoolOp obj1 2
  11. proBoolObj.setOperandB obj1 obj2 2 1
  12. addmodifier obj1 (turbosmooth())
  13. FBase = obj1
  14. FBowl = copy FBase pos:[0, 0, 12]
  15. FBowl.scale = [0.8 , 0.8, 0.3]
  16.  
  17. FPole1 = chamfercyl radius: 1 height: 20 material:matWafer isSelected: true
  18. addmodifier FPole1 (turbosmooth())
  19. FPole2 = cylinder radius: 2.5 height: 10 pos:[0,0,0]
  20. FPole3 = chamfercyl radius: 2 height: 15 fillet:1 pos: [0,11,0] material:matQuartz isSelected: true
  21. addmodifier FPole3 (turbosmooth())
  22.  
  23. --reference is used so all poles have the same parameter as FPole3
  24. FPole4 = reference FPole3 pos:[0,-11,0] material:matQuartz isSelected: true
  25. FPole5 = reference FPole3 pos:[11,0,0] material:matQuartz isSelected: true
  26. FPole6 = reference FPole3 pos:[-11,0,0] material:matQuartz isSelected: true
  27.  
  28. FPole7 = cylinder radius: 0.4 height: (FPole3.height/3) pos:[0,11,15] material:matQuartz1 isSelected: true
  29. FPole8 = reference FPole7 pos:[0, -11, 15] material:matQuartz1 isSelected: true
  30. FPole9 = reference FPole7 pos:[11, 0, 15] material:matQuartz1 isSelected: true
  31. FPole10 = reference FPole7 pos:[-11, 0, 15] material:matQuartz1 isSelected: true
  32.  
  33. FPot1 = teapot radius: 2.6 pos:[0,32,0] material:matDiamond isSelected: true
  34. obj3 = sphere radius:3 segments: 30 pos:[-0.14,32,1]
  35. proBoolObj.setOperandA FPot1
  36. proBoolObj.setBoolOp FPot1 3
  37. proBoolObj.setOperandB FPot1 obj3 0 0
  38. FPot1.scale = [0.4,0.4,0.4]
  39. move FPot1 [-11,-32,20.7]
  40.  
  41. ang1 = angleaxis 90 z_axis
  42. ang2 = angleaxis -90 z_axis
  43. ang3 = angleaxis -180 z_axis
  44. FPot2 = reference FPot1 pos:[0,11,20.55] material:matDiamond isSelected: true
  45. rotate FPot2 ang2
  46. FPot3 = reference FPot1 pos:[0,-11,20.55] material:matDiamond isSelected: true
  47. rotate FPot3 ang1
  48. FPot4 = reference FPot1 pos:[11,0,20.55] material:matDiamond isSelected: true
  49. rotate FPot4 ang3
  50.  
  51. --water
  52. stream1 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[-9.387,0,21.97]
  53. addmodifier stream1 (bend angle:178)
  54. stream1.rotation.y_rotation = 9
  55. stream2 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[9.387,0,21.83]
  56. addmodifier stream2 (bend angle:-178)
  57. stream2.rotation.y_rotation = -9
  58. stream3 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[0,-9.387,21.85]
  59. addmodifier stream3 (bend angle:178 direction: -90)
  60. stream3.rotation.x_rotation = -9
  61. stream4 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[0,9.387,21.85]
  62. addmodifier stream4 (bend angle:-178 direction: -90)
  63. stream4.rotation.x_rotation = 9
  64. water_reflect = snow length: 0.1 width: 0.1 pos:[0,0,23] rendercount:300 flake_size: 0.5 speed: (random 2 4) variation: 2 start: 20
  65. water_fill = ringwave radius: 2 ring_width: 40 pos:[0,0,0.4]
  66. -- the following links show how to add parameters for modifier:
  67. --http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=files/GUID-43EC5EED-F275-4325-8D99-819C51C11380.htm,topicNumber=d30e511913
  68. NoiseMod = NoiseModifier()
  69. NoiseMod.seed = 11
  70. NoiseMod.fractal = true
  71. NoiseMod.roughness = 0.2
  72. NoiseMod.iterations= 1
  73. NoiseMod.strength = [0.1,0.1,0.1]
  74. NoiseMod.animate = true
  75. AddModifier water_fill NoiseMod
  76.  
  77. water_fill2 = copy water_fill pos:[0,0,13]
  78.  
  79. with animate on
  80. (
  81. at time 0
  82. (
  83. stream1.scale = [0,0,0]
  84. stream2.scale = [0,0,0]
  85. stream3.scale = [0,0,0]
  86. stream4.scale = [0,0,0]
  87. )
  88. at time 30
  89. (
  90. stream1.scale = [1,1,1]
  91. stream2.scale = [1,1,1]
  92. stream3.scale = [1,1,1]
  93. stream4.scale = [1,1,1]
  94. )
  95. at time 35
  96. (
  97. water_fill2.scale = [7.3,7.3,7.3]
  98. move water_fill2 [0,0,0.3]
  99. )
  100. at time 50
  101. (
  102. water_fill.scale = [9.5,9.5,9.5]
  103. move water_fill [0,0,3]
  104. )
  105. select water_fill
  106. )
  107.  
  108.  
  109. FDeco1 = torus radius_1: 2 radius_2: 2 pos:[0,0,15] material:matGold1 isSelected: true
  110. FDeco2 = instance FDeco1 pos:[0,0,18]
  111. FDeco2.scale = [0.6,0.6,0.6]
  112. FDeco3 = chamfercyl radius:2 height: 4.5 fillet:2.3 pos:[0,0,18] material:matGold isSelected: true
  113. addmodifier FDeco3 (turbosmooth())
  114. FDeco4 = cylinder radius:4 height:3 pos:[0,0,7] material:matTexture1 isSelected: true
  115. FDeco5 = copy FDeco4 pos:[0,0,10]
  116. FDeco5.scale = [0.7,0.7,0.7]
  117. FDeco6 = gengon radius: 6 height: 5 fillet: 2 pos:[0, 0, 0] material:matTexture1 isSelected: true
  118. FDeco7 = gengon radius: 4 height: 2 fillet: 1.6 pos: [0, 0, 5]material:matTexture1 isSelected: true
  119.  
  120. )
  121.  
  122. createfountain()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement