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

Synopsis

bezierInfo([anchorFromCV=int], [cvFromAnchor=int], [isAnchorSelected=boolean], [isTangentSelected=boolean], [onlyAnchorsSelected=boolean], [onlyTangentsSelected=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

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) boolean create
Returns 1 if an anchor CV is currently selected. 0, otherwise.
isTangentSelected(its) boolean create
Returns 1 if a tangent CV is currently selected. 0, otherwise.
onlyAnchorsSelected(oas) boolean create
Returns 1 if the only CV components selected are anchor CVs. 0, otherwise.
onlyTangentsSelected(ots) boolean 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 have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Queries the CV index of the anchor index 1
cmds.bezierInfo( cfa=1 )

# Queries the anchor index of a CV index 3
cmds.bezierInfo( afc=3 );