Duik.controllers

Duik Controllers
Read the Duik User Guide > Controllers for more information about each method.
#include 'Duik16_controllers_functions.jsxinc'

Members

static functions

All the controller methods stored as objects which can be parsed easily, for example to automatically build a ui with a button for each method.
Properties:
Name Type Description
name string A display name for the method
fn string The source script to eval

Methods

static create(typeopt, parentopt, singleopt) → {Array.<Controller>}

Creates an controller
Parameters:
Name Type Attributes Default Description
type DuAEF.Duik.Controller.Types <optional>
DuAEF.Duik.Controller.Types.TRANSFORM The type of the controller. See the DuAEF reference for more information.
parent boolean <optional>
false Wether to parent the selected layers to the controllers
single boolean <optional>
false Wether to create a single controller for all the layers
Returns:
Array.<Controller> - the controllers created. See the DuAEF reference for more information about the Controller object.

static extract(useMasterPropertiesopt)

Extracts the controllers from the selected precomposition
Parameters:
Name Type Attributes Default Description
useMasterProperties boolean <optional>
false Wether to use master properties instead of expressions to extract the controllers.

static pseudoEffect(type)

Adds a controller pseudo effect on the selected layers
Parameters:
Name Type Description
type DuAEF.Duik.Controller.Types The type of pseudo effect, one of: EYES, FINGERS, HAND, HEAD. See the DuAEF reference for more information.

static select()

Selects all controllers in the composition

static show(invertopt)

Shows or hides all controllers in the composition
Parameters:
Name Type Attributes Default Description
invert boolean <optional>
false If true, inverts the controller visibilities

static tag()

Tags the layers as controllers