9
Waveform Controller 381
Assign Constant—
Opens a dialog w h ich lets you
assign a constant to the highlighted variable.
Value expression—Enter any MA XScript value
(such as an integer, a float, an array, etc.) or
expression.
Value expression r esult—Displays the results of the
expression above.
Evaluate—Analyzes your expression at t he current
time.
OK —Assigns the v a lue expression result to the
current variable.
Cancel—Disregards the current va lue expression
result and closes the dialog.
Assign Track —Lets you assign a controller to the
highlighted variable. The controller’s value is
takenatthecurrenttimeplusthevariable’sTick
Offset.
Assign Controller—Lets you assign a track to the
highlighted v ariable.
Assign Node—Lets you assign a node to the
highlighted v ariable.
Expression text field—Enter the script expression
here to calculate the controller value.
Description text field—Enter comments regarding
the functionality of the controller.
Loa d/Sav e—Load and save scripts to text files.
Debug—Opens the Script Controller Debug
Window, which displays the value of all variables
used in your script.
Eva luate—Evaluate s the scr ipt expression. The
evaluation is computed for the curren t position
of the time slider.
Clo se—Compiles and checks the controller script
for errors. If no errors are found, the dialog is
closed. Any problems result in a query box asking
whether you want to revert the expression to the
original value of the current t rack and close the
dialog (OK), or to return to editing the expression
(Cancel).
Wa vefo rm Contro ll er
Main toolbar > Curve Editor (Open) > S e lect a track in the
Track View hierarchy. > Track View menu bar > Controller
menu > Assign > Wave form Float
Graph Editors > Track V iew – Curve Editor > Select a
track in the Track View hierarchy. > Track View toolbar >
Controller menu > Assign > Waveform Float
The Waveform controller is a float controller that
provides regular, periodic waveforms. Created
originally to control blinking lights, you can use it
on any float value.
To view how the trajector y of an object is being
affected by the Waveform controller, turn on
Motion panel > Trajectories.