PDA

View Full Version : Particle and material


lfcdm
03-31-2005, 07:08 PM
Hi all,

I've got a question on Particles and their color using maxScript.
How could I access using Maxscript to the material of a particle ?

I have a PFSource with a Material Dynamic (Sub Mat Roto set to Random with a rate set to 0.0) and I would like to know how to find the material associated to a particule

I tried to access to this component via the GetFaceMatID method but I always have 1 as result.
particle = $.particleShape
mat = GetFaceMatID particle 1

I also tried to convert my particle to an Editable_mesh After that, I obtain a Trimesh I guess I have to convert it into Mesh with :
msh = Editable_mesh()
msh.mesh = particle

But if I use
msh.material I ve got an undefined value....

If somebody could have an idea or a solution, that could be very helpful.

Thanks.

CGTalk Moderation
03-31-2005, 07:08 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.