Usually you will start working in XP and at some point want to test some of your expression scripts with different values for your variables. In our example you start with an expression, that moves a ball on a sine wave on the X axis. We'll use basically the expression found in this manual.
double a = 1;
double b = 0.5;
double c = 0.2;
double d = 0;
Ball.Position.X = (( time / 2 ) - trunc( time / 2 )) * 2;
Ball.Position.Y = sin(( time * 360 ) * a + d ) * b + c;
You will now want to change the modifier values of the sine wave to shape the wave to your needs. You can do this by entering Xpressionist and type in new values, or you can use animation channels of an object in the project window (custom variables) to change the value. At this point you will decide to use a Kontrolleur plugin for this rather than a null or any other object channel.
|