Camera toolkit
Members
Methods
# static frame(compopt) → {ShapeLayer}
Adds framing guides to the composition
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
comp |
CompItem
|
<optional> |
The composition. The active composition if omitted. |
The frame layer
ShapeLayer
# static rig(cameraopt, separateDimensionsopt) → {Array.<ShapeLayer>}
Rigs a camera to make it easier to animate
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
camera |
CameraLayer
|
<optional> |
The camera to rig. If omitted, will try to find it in selected layers or the active comp. |
separateDimensions |
Boolean
|
<optional> |
Whether to separate the position dimensions on the controllers. If the option is not set, Duik will check if the current camera has its dimensions separated first |
An array of controllers: [target, cam, main], which may be empty if no camera was found or if it was a one-node camera.
Array.<ShapeLayer>
# static scaleZLink(layersopt) → {int}
Adds an inverse constraint of the scale to the depth (Z position) of the 3D layers, so that their visual size doesn't change with their depth.
Works as a toggle: first run activates the effect, next run removes it from the selected layers.
Works as a toggle: first run activates the effect, next run removes it from the selected layers.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layers |
Array.<Layer>
|
Layer
|
DuList.<Layer>
|
<optional> |
The layers to constrain. The selected layers if omitted.$ |
Error code. 1: OK; 0: No camera in the comp, -1: No (selected) layers.
int
# static twoDCamera(layersopt) → {Array.<ShapeLayer>}
Creates a 2D Multiplane Camera
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layers |
Array.<Layer>
|
Layer
|
DuList.<Layer>
|
<optional> |
Some layers to parent to the new camera. |
The camera layer and its levels (camera is the first layer in the Array).
Array.<ShapeLayer>