home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maximum 3D 3
/
m3d-p3.iso
/
3DS_MAX
/
3DSMAX.2_0
/
SCRIPTS
/
DESTRUCT.MS
< prev
next >
Wrap
Text File
|
1997-10-19
|
2KB
|
105 lines
-- Destruction.ms
utility object_particle "Destruction"
(
local spray_obj,
start = animationRange.start.frame,
end = animationRange.end.frame
label l0 "Destruction v1.0"
label l1 "Created by Frank DeLise"
bitmap bm1 filename:"c:\\siggraph\\maps\\expsc.bmp"
group "Destruction Type"
(
radiobuttons des_type
labels:#("Explosion", "Smoke")
)
Group "Explosion"
(
Button exp "Create Explosion" enabled:true
)
on exp pressed do
(
spray_obj = spray constant:false birthrate:500 starttime:5 emitterwidth:1 emitterheight:1 Variation:50 speed:-2 render:1 viewportcount:2000 rendercount:200 dropsize:10 life:500
wind emitterwidth:1 emitterheight:1 birthrate:500
max time play)
-- pickbutton pick_system "Pick particle system"
-- label system_name
Group "Smoke"
(
Button smk "Create Smoke" enabled:false
)
Group "Particle Age"
(
label cpl "Start color: End color:"
colorpicker start_color across:2 color:(color 255 100 0) offset:[-20,0]
colorpicker end_color color:(color 0 0 0) offset:[-20,0]
)
on smk pressed do
( Max file new
spray_obj = spray emitterwidth:1 emitterheight:1 Variation:.2 speed:-2 render:1 viewportcount:2000 rendercount:200 dropsize:10 life:500 prefix:"SMK"
wind emitterwidth:1 emitterheight:1
max time play
)
Group "Materials"
(
button applymat "Apply Smoke Material"
)
on applymat pressed do
(
tex = gradient ()
mat = standardmaterial diffusemap:tex
spray_obj.material = mat
)
Group "Setings"
(
spinner start_frame "Start frame:" type:#integer range:[start, end, start]
spinner end_frame "End frame:" type:#integer range:[start, end, end]
Spinner g_buf "Object Channel" type:#integer
Checkbox mblur "Motion Blur"
)
on des_type changed btn do
if btn == 1 then
(
exp.enabled = true
smk.enabled = false
)
else(
exp.enabled = false
smk.enabled = true
)
)