Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 30-10-2007 , 11:08 AM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567

rotating sprite expression

Hello,

I have sprites that I would like to make randomly rotate on the Z Axis, how would you write an expression for this?

Cheers in advance.

Chris.

# 2 28-11-2007 , 06:58 PM
Registered User
Join Date: Jan 2007
Location: Edmonton, Alberta
Posts: 153
Something like this will work.

"dust_cloud - tz (sin 1) * rand, tx (cos 0) * rand, ty 1 * time;"

In this case the particals "dust_cloud" rotate in x and z by a factor of sin and cos (a circular path) mutiplied by your chosen rand function, and move up by a factor of time. If you have some kind of refrence for scripts you can plug in differnt values. Also I dont think this is exactly correct scripting but its close aside from rand which needs to be replaced by a function to create random numbers. Good Luck.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads