Rotation Expression Problem

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

QUOTE(bendingisco @ 10/31/07, 03:29 PM) [snapback]275673[/snapback]
Any clues on what I have done wrong?

Yes, your trying to use the expression editor to feed this value, unfortunately maya has 2 kinds of expession nodes particle expressions and normal ones. Since your trying to do a particle (called dynamic expression really) expression, it wont work. type match, youmust have the sjhape selected, or rather enter into the editor trough right clicking in the ae node for the particle shape.