Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 30-10-2007, 12:08 PM   #1
bendingiscool's Avatar
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default rotating sprite expression


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.

bendingiscool is offline   Reply With Quote
Old 28-11-2007, 06:58 PM   #2
Registered User
Join Date: Jan 2007
Location: Edmonton, Alberta
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts

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.
wokendreams is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.