Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

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
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
bendingiscool is offline   Reply With Quote
Old 28-11-2007, 06:58 PM   #2
wokendreams
Registered User
 
Join Date: Jan 2007
Location: Edmonton, Alberta
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.