What's New in Director 8.5 > Working with Models and Model Resources > Models > Model commands |
![]() ![]() ![]() |
Model commands
Use these commands to work with models:
Command |
Description |
Returns |
---|---|---|
|
Adds The |
Nothing |
|
Returns the child at the specified position in the index. |
Node object |
|
Returns the child named |
Node object |
|
Clones a model named The clone shares the same model resource, shader list, and parent as the original model, but it has unique copies of the model's transform and modifier properties. All children of the model are automatically cloned. This can be avoided by removing the children, performing the cloning operation, and then adding the children back. If the name is omitted or is "", the clone isn't added to the model palette, has no parent, and has no children. This option lets you quickly create temporary model instances. |
Lingo model object |
|
Clones both the model and the model resource used by the model's children. Modifications to the clones' resource don't affect the source model's resource. This is a more memory-intensive operation than |
Lingo model object |
|
Adds the model to the currently active 3D world, setting its parent as "world."Equivalent to All newly created models are added to the world by default, without it being necessary to use this command. |
Nothing |
|
Sets this model's position and orientation relative to the world model's position and orientation. |
Nothing |
|
For models whose parent hierarchy terminates in the world, this sets their parent to |
Nothing |
|
For models whose parent hierarchy terminates in the world, the value is |
|
|
Registers a handler named The user defines what |
|
|
Adds the modifier |
|
|
Removes the first modifier identified by |
|
|
Updates animation timing without rerendering. Used to force update of bone positions in an animation while inside a Lingo call. |
|
|
Moves the model forward by The
node (model, light, camera, or group): increments are relative to the coordinate system of the argument object. |
Nothing |
translate(directionVector, relativeTo) |
Moves the model directionVector.length() in the direction of the vector directionVector. The relativeTo argument is optional and defaults to |
Nothing |
|
Moves the model distance This command can also be written as |
Nothing |
|
Rotates the model by The This command can also be written as |
Nothing |
|
Rotates the model around the axis vector in the specified position the specified number of degrees. The |
Nothing |
|
Scales the model the same amount in all directions. |
Nothing |
|
Scales the model by a factor of |
Nothing |
|
Rotates the model until it points at the world-relative position Both the object-relative axes are defined by the |
Nothing |
|
Calculates and returns a transform that converts object-relative positions for this model into world-relative positions. |
A transform object |
![]() ![]() ![]() |