irwit
12-16-2008, 01:10 PM
Hi all
Im quite new to maxscript and would say Im ok with particle flow.
What I want seems quite simple but im struggling to get something working as I want. Basically froma collision event I want to spawn an amni light and have its multiplier controlled by the age of the particle, Ie flash on impact, and also the omni light to spawn in the collision impact space.
on ChannelsUsed pCont do
(
pCont.useposition = true
)
on Init pCont do
(
ppos = pcont.particleposition
o=omnilight()
o.pos = [ppos]
)
Im activating the particle.position channel, then adding it to the omni position spawn but its spawning at 0,0,0 ( default.
If I put o.pos = [50,50,50] then the light spawns at that position so I guess its a way of extracting the position data and using it that I cant get ? Any ideas or point toa similar tutorial would be much apprechiated.
cheers guys
Will
Im quite new to maxscript and would say Im ok with particle flow.
What I want seems quite simple but im struggling to get something working as I want. Basically froma collision event I want to spawn an amni light and have its multiplier controlled by the age of the particle, Ie flash on impact, and also the omni light to spawn in the collision impact space.
on ChannelsUsed pCont do
(
pCont.useposition = true
)
on Init pCont do
(
ppos = pcont.particleposition
o=omnilight()
o.pos = [ppos]
)
Im activating the particle.position channel, then adding it to the omni position spawn but its spawning at 0,0,0 ( default.
If I put o.pos = [50,50,50] then the light spawns at that position so I guess its a way of extracting the position data and using it that I cant get ? Any ideas or point toa similar tutorial would be much apprechiated.
cheers guys
Will
