DuAEF.Duik.Camera

Camera tools

Members

static, readonly TVPaintImportMethods :int

How to import TVPaint Cameras
Properties:
Name Type Description
CREATE_CONTROLLER int
PRECOMPOSE int
USE_SELECTED int

Methods

static addFrame(compopt)

Adds a handy framing guide, safe frames, grid and guides for the composition in the comp.
Parameters:
Name Type Attributes Default Description
comp CompItem <optional>
DuAEF.DuAE.Project.getActiveComp() The composition

static create2DCam(compopt, layersopt) → {Controller}

Creates a new 2D Multiplane Camera
Parameters:
Name Type Attributes Default Description
comp CompItem <optional>
The containing comp. Ignored if layers are provided.
layers Array.<Layers> | LayerCollection | null | undefined <optional>
comp.selectedLayers The layers to automatically link to the controllers.
By default, the selected layers will be used, and if there are no selected layers, three controllers will be created
Returns:
Controller - The camera controller

static importTVPaintCamera(camFile, compopt, methodopt, linkLayersopt, useAnchorPointopt)

Imports a TVPaint Camera
Parameters:
Name Type Attributes Default Description
camFile File The .cpt tvpaint camera file
comp CompItem <optional>
app.project.activeItem The composition where to import the camera
method DuAEF.Duik.Camera.TVPaintImportMethods <optional>
DuAEF.Duik.Camera.TVPaintImportMethods.CREATE_CONTROLLER How to import the camera
linkLayers bool <optional>
false true to link all orphan layers to the camera
useAnchorPoint bool <optional>
false true to animate the anchor point instead of the position

static rigCamera(camera) → {Array.<Controller>}

Rigs a 3D Camera with handy controllers
Parameters:
Name Type Description
camera CameraLayer The camera to rig.
Returns:
Array.<Controller> - The camera controllers [target, camera, main]
Links the distance of the layer from the camera to its scale so its apparent size won't change.
If multiple cameras, include the camera used in the array of the first argument
If the layer is already linked, then the link is removed, it acts as a toggle.
Parameters:
Name Type Description
layers LayerCollection | Array.<Layer> The layers to scale-link