11-18-2008, 05:38 AM
This function should give you an array of sources that the fume is dependent on. Not exactly what you want but close:
fn GetFumeSources MyFume =
(
SourceArray = #()
for obj in objects where classof obj == Particle_Src or classof obj == Simple_Src or classof obj == Object_Src do
(
isDependant = false
for dep in refs.dependents obj where dep == Myfume while isDependant == false do isDependant = true
if isDependant then append SourceArray obj
)
SourceArray
)
myFumeSources = GetFumeSources $FumeFX01
if you want space warps, lights etc you can just change the "for obj in...." line to filter what you want
fn GetFumeSources MyFume =
(
SourceArray = #()
for obj in objects where classof obj == Particle_Src or classof obj == Simple_Src or classof obj == Object_Src do
(
isDependant = false
for dep in refs.dependents obj where dep == Myfume while isDependant == false do isDependant = true
if isDependant then append SourceArray obj
)
SourceArray
)
myFumeSources = GetFumeSources $FumeFX01
if you want space warps, lights etc you can just change the "for obj in...." line to filter what you want
Jordan Walsh
VFX Technical Director
Showreel 2012
Check out my scripts on ScriptSpot!
VFX Technical Director
Showreel 2012
Check out my scripts on ScriptSpot!

