Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

bezierInfo [-anchorFromCV int] [-cvFromAnchor int] [-isAnchorSelected] [-isTangentSelected] [-onlyAnchorsSelected] [-onlyTangentsSelected]

bezierInfo is undoable, NOT queryable, and NOT editable.

This command provides a queryable interface for Bezier curve shapes.

Return value

int

Flags

anchorFromCV, cvFromAnchor, isAnchorSelected, isTangentSelected, onlyAnchorsSelected, onlyTangentsSelected
Long name (short name) Argument types Properties
-cvFromAnchor(-cfa) int create
Returns the CV index for a given Bezier anchor index
-anchorFromCV(-afc) int create
Returns the Bezier anchor index from a given CV index
-isAnchorSelected(-ias) create
Returns 1 if an anchor CV is currently selected. 0, otherwise.
-isTangentSelected(-its) create
Returns 1 if a tangent CV is currently selected. 0, otherwise.
-onlyAnchorsSelected(-oas) create
Returns 1 if the only CV components selected are anchor CVs. 0, otherwise.
-onlyTangentsSelected(-ots) create
Returns 1 if the only CV components selected are tangent CVs. 0, otherwise.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Queries the CV index of the anchor index 1
bezierInfo -cfa 1;

// Queries the anchor index of a CV index 3
bezierInfo -afc 3;