8

Transform Scr ipt Controller 365
Procedure
To use a Transform S cr ipt controller:
1.
Select an object.
2. Right-click to open the quad menu.
3. In Transform quadrant, click Curve Editor.
4. Select the Transform track of the selected object
in Track View.
5. Select Transform Script from the Assign
Transform Controller dialog and press OK.
The Script Controller dialog opens.
6. Editthematrix3valueintheScriptController
dialog, and click Evaluate when you are
finished.
Interfa ce
After assigning a Transform Script controller, a
Properties dialog is available by right-clicking the
trackintheTrackViewhierarchyandchoosing
Properties.
Cr e at e Va riable g ro u p
Name—Lets you enter and edit the name of user
variables.
Cr e at e Createsavariableandaddsittothe
Va r i a b l e s l i s t .
Delete—Removes the highlighted v ariable from
the Variables list. You can also delete a variable by
tying its name into the Name field and click Delete.
RenameRenames the highlighted variable.
Variable Parameters group
Tick Offset—Specifies a time offset in ticks for the
cur rent variable. When the script is evaluated, t he
variable’s value is set from the current time plus
the Tick Offset value.
Note: The Time O ffset has no effect on variables
that are assigned a constant.
Varia bles List—Lists all available variables in the
controller. The following pre-defined constant
variables are available in every scr ipt Controller
and cannot be deleted or renamed:
F—the current time in fr ames
NT—the normalized time
S—the cur rent time in seconds
T—the cur rent time in ticks
Assign Constant—Opensadialogwhichletsyou
assign a constant to the highlighted variable.
Value expression—Enter any MAXScript value
(such as an integer, a float, an array, etc.) or
expression.
Value expression r esult—Displays the results of the
expression above.
Eva luate—Analyzes your expression at the current
time.
OK Assigns the value expression result to t he
current variable.