pymel.core.modeling.bezierInfo¶
- bezierInfo(*args, **kwargs)¶
This command provides a queryable interface for Bezier curve shapes.
Flags:
Long Name / Short Name Argument Types Properties anchorFromCV / afc int Returns the Bezier anchor index from a given CV index cvFromAnchor / cfa int Returns the CV index for a given Bezier anchor index isAnchorSelected / ias bool Returns 1 if an anchor CV is currently selected. 0, otherwise. isTangentSelected / its bool Returns 1 if a tangent CV is currently selected. 0, otherwise. onlyAnchorsSelected / oas bool Returns 1 if the only CV components selected are anchor CVs. 0, otherwise. onlyTangentsSelected / ots bool Returns 1 if the only CV components selected are tangent CVs. 0, otherwise. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.bezierInfo
Example:
import pymel.core as pm # Queries the CV index of the anchor index 1 pm.bezierInfo( cfa=1 ) # Result: 3 # # Queries the anchor index of a CV index 3 pm.bezierInfo( afc=3 );