View Single Post
# 1 06-01-2003 , 10:40 PM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133

Need help troubleshooting expression.

I'm playing around with different approaches to simulating seas and whatnot and have been perusing this tutorial. Everything is apparently setup correctly in my scene but I keep getting an error when using their expression. Here are the steps if you want to try and recreate it real quick:

1. Create a horizontal square cubic NURBS plane of width 100 units and divided into 50 spans in both u and v directions.

2. Make the plane a soft body (creation options: make soft). Rename this particle shape node (not the transform node) to seaparticle.

3. Open the attribute editor on seaparticle. Go to the section called Per Particle (Array) Attributes, RMB-press the position field, and choose Runtime Expression from the pop-up menu. Input the following expression:

Code:
vector $dummy1 = seaparticle.position0;
vector $dummy2 = <<$dummy1.x/6 + 59 - frame/20, 27 + frame/40, $dummy1.z/20 + 32>>;
seaparticle.position = <<$dummy1.x, 2.4 * noise($dummy2), $dummy1.z>>;
This should result in a stormy seas-styled billowing like KB's been working on. His method works great but I'm interested in seeing why I can't get the expression to work.

When I go to adjust Per Particle (Array) Attributes for seaparticle, all the fields are grayed out. Even still, I can RMB and open the expression editor in position but keep getting the following error when I create:

"Error: Attribute not found or variable missing '$': seaparticle.position0"

Anyone know what's happening here?


"Terminat Bora Diem, Terminal Auctor opus."