Message 1 of 2
Creating a Master Controller?

Not applicable
12-29-2013
02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey!
I've been working on a script today and I've run into a problem.
I've been able to create a locator and set up attributes. However, when trying to connect to a PP expression under creation, I can't seem to figure out the correct syntax. Here's an excerpt from the script:
// Add Expressions and Connect
$creation = ("goalV = rand(0.01);\ngoalU = rand(1);\nrandOffset = rand(0.5);\ngoalOffset = randOffset*goalWorldNormal0PP;\nlifespanPP = rand(1,2);");
dynExpression -s $creation -c $surfPartShape[0];
What I want to have goalV be controlled by $loc[0]'s birthHeight attribute. If it were a simple connect it would be
"$loc[0] + .birthHeight");
How do I stick that into the creation expression?
Thanks!
Colby
P.S. Here's the script right now: