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

Synopsis

bezierAnchorPreset([preset=int])

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

bezierAnchorPreset is undoable, NOT queryable, and NOT editable.

This command provides a queryable interface for Bezier curve shapes.

Return value

int(number of modified anchors)

Flags

preset
Long name (short name) Argument types Properties
preset(p) int create
Selects a preset to apply to selected Bezier anchors. Valid arguments are: 0: Bezier 1: Bezier Corner 2: Corner

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

# Applies the "Bezier" anchor preset to all selected anchors
cmds.bezierAnchorPreset( p=0 )

# Applies the "Bezier Corner" anchor preset to all selected anchors
cmds.bezierAnchorPreset( p=1 )

# Applies the "Corner" anchor preset to all selected anchors
cmds.bezierAnchorPreset( p=2 )