Duik.constraints

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

Members

static functions

All the constraints 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 autoParent()

Auto-Parent

static autorig(bakeStructuresopt)

Auto-Rig & IK
Parameters:
Name Type Attributes Default Description
bakeStructures boolean <optional>
true Wether to bake the structures after the Auto-rig has completed. Improves performance.

static bones(randomColoropt, tangentsopt)

Add bones
Parameters:
Name Type Attributes Default Description
randomColor boolean <optional>
false Wether to assign a random color to the bones
tangents boolean <optional>
true Wether to create bones for the tangents in case the selected property is a B├ęzier path

static exposeTransform()

Expose Transform

static extractLocators()

Extract Locators

static list()

List

static locator()

Add Locator

static lockProperty()

Lock Property

static orientationConstraint()

Orientation Constraint

static parentConstraint()

Parent Constraint

static pathConstraint(pathopt) → {boolean}

Path Constraint
Parameters:
Name Type Attributes Description
path Property <optional>
The path to use to constrain the selected layers.
If undefined, Duik will use the first path selected on the last selected layer.
Returns:
boolean - True if a constraint was created, false if no path was found and nothing has been done

static positionConstraint()

Position Constraint

static quickConnector()

Quick Connector

static resetPRS()

Reset Transform (set to Zero)

static separateDimensions()

Separate Dimensions

static zero()

Add Zero