LC #42 Pipers Alley

View Full Version : Expression woes

06-30-2008, 10:10 PM
I've started this thread, but wanted to direct the attention of the expression guru's to it in here in case they miss it. I would greatly appreciate any help. Thanks!!!'

07-01-2008, 01:20 AM
T_ExplosionShape.spriteTwistPP = "spriteTwistStart" + "twistArrayMap.outValuePP" ;

should be

T_ExplosionShape.spriteTwistPP = spriteTwistStart + twistArrayMap.outValuePP ;

the quotes treat them as strings. hence "converting string... to float"

you might have made the same mistake in other places, but my brain hurts too bad to read it all

07-01-2008, 05:54 AM
Yeah get rid of all your quotations first and Im not sure if you can call the outvalue for the array map like that, you may need to query it first and throw it into an array, then use that variable, but Id try without quotes first.

07-01-2008, 01:43 PM
Thanks guys, i'll try that and see what happens. Thanks again!!!

07-01-2008, 04:12 PM
One more guys. Sorry:blush:

I've got this expression written for instancing particles.

Vector $m=rand(50,200);

I get the //Error: "$m" is an undeclared variable. But the variable is declated with particleShape1.mass=$m; isn't it? What did I do wrong? Thanks for any help again. Much appreciated.

07-01-2008, 04:33 PM
Son of a B....I just had to make the V in Vector lowercase. Sorry about that. I'm a tool.

07-01-2008, 05:48 PM
I've used a creation expression on a VectorPP attr I added:
and runtime before dynamics expression:
to randomize and determine the degree of rotation per frame of some instanced geometry on some particles. I set the Rotation to use userVector2PP, the particles collide with a plane as well. I want the rotations to stop after they collide. Problem is, i'm not quite sure how to do that. Any help is appreciated. Thanks!!!

CGTalk Moderation
07-01-2008, 05:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.