Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete objects
- fn CreateFountain =
- (
- --Creates a fountain
- color1 = [255, 248, 220] --cornsilk
- obj1 = oiltank radius: 20 height: 5 wirecolor: color1 pos:[0,0,0] material:matMarble isSelected: true
- obj2 = chamfercyl radius: 19 height: 16 fillet: 2.5 pos: [0,0,2]
- proBoolObj.setOperandA obj1
- proBoolObj.setBoolOp obj1 2
- proBoolObj.setOperandB obj1 obj2 2 1
- addmodifier obj1 (turbosmooth())
- FBase = obj1
- FBowl = copy FBase pos:[0, 0, 12]
- FBowl.scale = [0.8 , 0.8, 0.3]
- FPole1 = chamfercyl radius: 1 height: 20 material:matWafer isSelected: true
- addmodifier FPole1 (turbosmooth())
- FPole2 = cylinder radius: 2.5 height: 10 pos:[0,0,0]
- FPole3 = chamfercyl radius: 2 height: 15 fillet:1 pos: [0,11,0] material:matQuartz isSelected: true
- addmodifier FPole3 (turbosmooth())
- --reference is used so all poles have the same parameter as FPole3
- FPole4 = reference FPole3 pos:[0,-11,0] material:matQuartz isSelected: true
- FPole5 = reference FPole3 pos:[11,0,0] material:matQuartz isSelected: true
- FPole6 = reference FPole3 pos:[-11,0,0] material:matQuartz isSelected: true
- FPole7 = cylinder radius: 0.4 height: (FPole3.height/3) pos:[0,11,15] material:matQuartz1 isSelected: true
- FPole8 = reference FPole7 pos:[0, -11, 15] material:matQuartz1 isSelected: true
- FPole9 = reference FPole7 pos:[11, 0, 15] material:matQuartz1 isSelected: true
- FPole10 = reference FPole7 pos:[-11, 0, 15] material:matQuartz1 isSelected: true
- FPot1 = teapot radius: 2.6 pos:[0,32,0] material:matDiamond isSelected: true
- obj3 = sphere radius:3 segments: 30 pos:[-0.14,32,1]
- proBoolObj.setOperandA FPot1
- proBoolObj.setBoolOp FPot1 3
- proBoolObj.setOperandB FPot1 obj3 0 0
- FPot1.scale = [0.4,0.4,0.4]
- move FPot1 [-11,-32,20.7]
- ang1 = angleaxis 90 z_axis
- ang2 = angleaxis -90 z_axis
- ang3 = angleaxis -180 z_axis
- FPot2 = reference FPot1 pos:[0,11,20.55] material:matDiamond isSelected: true
- rotate FPot2 ang2
- FPot3 = reference FPot1 pos:[0,-11,20.55] material:matDiamond isSelected: true
- rotate FPot3 ang1
- FPot4 = reference FPot1 pos:[11,0,20.55] material:matDiamond isSelected: true
- rotate FPot4 ang3
- --water
- stream1 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[-9.387,0,21.97]
- addmodifier stream1 (bend angle:178)
- stream1.rotation.y_rotation = 9
- stream2 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[9.387,0,21.83]
- addmodifier stream2 (bend angle:-178)
- stream2.rotation.y_rotation = -9
- stream3 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[0,-9.387,21.85]
- addmodifier stream3 (bend angle:178 direction: -90)
- stream3.rotation.x_rotation = -9
- stream4 = cylinder radius: 0.1 height: 16 heightsegs: 20 pos:[0,9.387,21.85]
- addmodifier stream4 (bend angle:-178 direction: -90)
- stream4.rotation.x_rotation = 9
- 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
- water_fill = ringwave radius: 2 ring_width: 40 pos:[0,0,0.4]
- -- the following links show how to add parameters for modifier:
- --http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=files/GUID-43EC5EED-F275-4325-8D99-819C51C11380.htm,topicNumber=d30e511913
- NoiseMod = NoiseModifier()
- NoiseMod.seed = 11
- NoiseMod.fractal = true
- NoiseMod.roughness = 0.2
- NoiseMod.iterations= 1
- NoiseMod.strength = [0.1,0.1,0.1]
- NoiseMod.animate = true
- AddModifier water_fill NoiseMod
- water_fill2 = copy water_fill pos:[0,0,13]
- with animate on
- (
- at time 0
- (
- stream1.scale = [0,0,0]
- stream2.scale = [0,0,0]
- stream3.scale = [0,0,0]
- stream4.scale = [0,0,0]
- )
- at time 30
- (
- stream1.scale = [1,1,1]
- stream2.scale = [1,1,1]
- stream3.scale = [1,1,1]
- stream4.scale = [1,1,1]
- )
- at time 35
- (
- water_fill2.scale = [7.3,7.3,7.3]
- move water_fill2 [0,0,0.3]
- )
- at time 50
- (
- water_fill.scale = [9.5,9.5,9.5]
- move water_fill [0,0,3]
- )
- select water_fill
- )
- FDeco1 = torus radius_1: 2 radius_2: 2 pos:[0,0,15] material:matGold1 isSelected: true
- FDeco2 = instance FDeco1 pos:[0,0,18]
- FDeco2.scale = [0.6,0.6,0.6]
- FDeco3 = chamfercyl radius:2 height: 4.5 fillet:2.3 pos:[0,0,18] material:matGold isSelected: true
- addmodifier FDeco3 (turbosmooth())
- FDeco4 = cylinder radius:4 height:3 pos:[0,0,7] material:matTexture1 isSelected: true
- FDeco5 = copy FDeco4 pos:[0,0,10]
- FDeco5.scale = [0.7,0.7,0.7]
- FDeco6 = gengon radius: 6 height: 5 fillet: 2 pos:[0, 0, 0] material:matTexture1 isSelected: true
- FDeco7 = gengon radius: 4 height: 2 fillet: 1.6 pos: [0, 0, 5]material:matTexture1 isSelected: true
- )
- createfountain()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement