ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

bezierAnchorPreset([preset=int])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

bezierAnchorPreset は、取り消し可能、照会不可能、および編集不可能です。

ベジェ曲線のシェイプ用に照会可能なインタフェースを提供します。

戻り値

int(修正されたアンカーの数)

フラグ

preset
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
preset(p) int create
選択したベジェ アンカーに適用するプリセットを選択します。有効な引数は、0: ベジェ、1: ベジェ コーナー、2: コーナーです。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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 )