Namespace

Camera

Duik.Camera

Members

File

# static readonly Presets

Some Camera presets
Properties:
Name Type Description
FRAME File

View Source api3.jsxinc, line 21576

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.

View Source api3.jsxinc, line 21593

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

View Source api3.jsxinc, line 21700

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>
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.
Parameters:
Name Type Attributes Description
layers Array.<Layer> | Layer | DuList.<Layer> <optional>
The layers to constrain. The selected layers if omitted.$

View Source api3.jsxinc, line 21617

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.

View Source api3.jsxinc, line 22362

The camera layer and its levels (camera is the first layer in the Array).
Array.<ShapeLayer>