2.2 Editing the expression

Now we are going to edit the expression.

Lets assume you have decided that your Cube rotates too slow. You would like it to rotate faster around its Z axis. We will use a constant to multiply the value of time.

1.Go to the Xpressionist interface and alter the statement like this:

Cube.Roll_Z = time * 25;

2. Click OK.

Now the Cube will spin around its Z axis 25 times as fast. It will have a Z rotation value of 100 when the time slider is at 4 seconds. You can use standard arithmetic operators and constants to modify values in an expression.

get project quickstart_2.prj




Summary:

In this section you have learned how to

- add channels to Xpressionist

- add them to the expression editor window

- use the predefined variable time

- modify an expression with standard arithmetic operators and constants

Xpressionist 3.5