hi guys.
I was wondering if there is a way to get the objects/sources/spacewarps list using ms????
i know how to add and remove them but not how to get a list of it
i'm still looking for it.
i ll let you know if i find it out
I'm pretty sure you can.. I dont have max with me right now unfortunately but I'm quite confident I've done this
try a showproperties on your container or look through the maxscript help for fume (I'm sure you've probably done both of these already) but I believe it reads in the objects like an array, so you make an array with the objects in it and add the array, but I dont have the exact property you need to use with me but I'm pretty sure its doable..
----
Allan McKay
Autodesk Master 2007
<!-- w --><a class="postlink" href="http://www.allanmckay.com">http://www.allanmckay.com</a><!-- w -->
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