Namespace: Camera

Duik. Camera

Camera toolkit

Members

static,readonlyDuik.Camera.PresetsFile

Some Camera presets
Properties:
Name Type Default Description
FRAME File

Methods

staticDuik.Camera.frame(comp){ShapeLayer}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 50421
Adds framing guides to the composition
Name Type Description
comp CompItem optional The composition. The active composition if omitted.
Returns:
Type Description
ShapeLayer The frame layer

staticDuik.Camera.rig(camera){Array.<ShapeLayer>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 50527
Rigs a camera to make it easier to animate
Name Type Description
camera CameraLayer optional The camera to rig. If omitted, will try to find it in selected layers or the active comp.
Returns:
Type Description
Array.<ShapeLayer> An array of controllers: [target, cam, main], which may be empty if no camera was found or if it was a one-node camera.
D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 50445
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.
Name Type Description
layers Array.<Layer> | Layer | DuList.<Layer> optional The layers to constrain. The selected layers if omitted.$
Returns:
Type Description
int Error code. 1: OK; 0: No camera in the comp, -1: No (selected) layers.

staticDuik.Camera.twoDCamera(layers){Array.<ShapeLayer>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 51161
Creates a 2D Multiplane Camera
Name Type Description
layers Array.<Layer> | Layer | DuList.<Layer> optional Some layers to parent to the new camera.
Returns:
Type Description
Array.<ShapeLayer> The camera layer and its levels (camera is the first layer in the Array).