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
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 26-10-2007, 09:01 PM   #1
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default rotation expression troubles

Hi,
I'm trying to create an expression to make my instanced objects (simple disc shapes) rotate randomly as they fall. I have added a general PP attribute, but when I try this expression:

particleShape1.rotPP = rand (0,360);

I get an error saying :

Warning: Expression Editor: no particle object is selected.

This means that I can't go on to connect the rotation expression to the rotation of the disc shapes.

Any clues on what I have done wrong?

(I am following a falling leaves tutorial, but simply changed there instanced geometry to mine for a project I am working on).

Any help very much welcome, Cheers in advance.

Chris
bendingiscool is offline   Reply With Quote
Old 26-10-2007, 11:18 PM   #2
BadG3r
Subscriber
 
BadG3r's Avatar
 
Join Date: Jan 2007
Location: Frankfurt
Posts: 216
Thanks: 0
Thanked 0 Times in 0 Posts
Default

create a attr. since rotation is a vector u have to write something like this:

particleShape1.rotCustom = <<0,rand(0,360),0>>

ok. now go to the instancer tab and check allow all data types and under rotation chose, in this case to match the naming above, rotCustom.

now it depends what u wanna do where u write the expr in. creation or runtime.
BadG3r 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.