Since | 20.5 |
Creates a lookat constraint for a given driven node.
Parameters ¶
name
The name that is added to all the nodes created by the lookat component.
guidesource
The guide skeleton that is used as a reference when creating controls.
Settings ¶
updir
The position of the up vector relative to the driven node.
targetpos
The target position relative to the driven node.
worldspace
When setting up multiple lookat constraints with mirrored transforms, the relative offset to the targetpos may not be desirable. In this case, turning on worldspace keeps the direction the same for all the constraints.
Driven ¶
Multiple lookat constraints can be set up. If they are set up in the correct order, the constraints can use each other’s drivers and targets as parents. The order of operations is important when doing this.
parent
By default, the parent for all the controls is the parent of the driver. When parent is set, the default parent is overridden by the node in parent. Make sure that the parent is not a child of the driven. This parameter accepts APEX path patterns, so you can specify tags in this field.
driven
The node to apply the lookat constraint to. This parameter accepts APEX path patterns, so you can specify tags in this field.
driver
The node that is inserted between the parent and driver, allowing you to control the driven node while it is constrained using the lookat. This node gets created and needs a unique name that doesn’t conflict with any of the nodes in the hierarchy.
target
The target can be an existing node in the hierarchy if you want to predefine the position. If a unique name is specified, a target is created based on the targetpos.
up
A preexisting control can be used for the up position. If a unique name is specified, an up control is created.
useup
When turned on, the up vector control is visible in the animate state. When turned off, a default up vector is set up based on the updir parameter.
keepdriven
When turned on, the driven node is shown when creating the constraint. (By default, the driven node is automatically hidden when creating the constraint.)
keepoffset
By default, an offset is applied to the driven to keep its original orientation after creating the constraint. When keepoffset is turned off, the offset is not applied.
Tags ¶
Shape ¶
scale
The scale of the control shape.
color
The color of the control shape.
See also |