PDA

View Full Version : Blood cells


bessera
11-20-2008, 02:26 PM
Hey everyone,
I am doing everyones favorite project, blood cells going down a vein.

Okay, so I got a curve flow animation going. Now I want the particles to rotate randomly as they go down the path. I am not very knowledgeable in the world of mel scripting. what would a mel script to rotate randomly look like?

Thanks everyone!

optimus008
11-20-2008, 10:35 PM
First Add a Dynamic Attribute( General) name it something that has to do with rotation ( like randRotation). Make the Data Type a Vector and Attribute Type make sure to select Per particle.

Then all you need is a runtime expression something like this
(name of particle).randRotation =<<rand(360),rand(360),0>> ;
(which will randomly rotate the instance object on the X and Y)

CGTalk Moderation
11-20-2008, 10:35 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.