PDA

View Full Version : another maya instancer question


bluehonda
04-28-2006, 04:08 PM
i want to instance my animated characters depending on the particle velocity. lets say if my particle has this certain value as its velocity it will select this animated character and instance it. so its instancing animation depending on the velocity of the particle. how can i do this?


thanks for all replies.

baran
04-29-2006, 03:10 AM
Hi... I tried this sometimes ago... but not able to success....

What I did is,

I animated the particles.

I checked the velocity. If the velocity is within the range then get that ParticleId.

Then I tried to instance my object to that particle. But Its taking all the particles.

Even I tried to emit a second particle from that ParticleId. But It's not working.

If anybody is having Ideas please post it

regards,
-Baran.

sunit
04-29-2006, 10:27 PM
each instanced object carries its own objectId - in the instancer frame of the particleShape attributes, you can set this objectId to an attribute on the particleShape. so, if you create, for example, a per-particle scalar attribute (i.e. instNumPP), you would create an expression to affect instNumPP based on your particle velocity. you can then set the objectId of the instancer to instNumPP in the instancer frame.

-sunit

bluehonda
05-06-2006, 03:29 AM
sunit, can you explain further? :) :) :)

i got a lot to learn. i know. hehe!

thanks

CGTalk Moderation
05-06-2006, 03:29 AM
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.