移動先: 概要 戻り値 フラグ. Python 例.
delete(
objects
, [all=boolean], [attribute=string], [channels=boolean], [constraints=boolean], [constructionHistory=boolean], [controlPoints=boolean], [expressions=boolean], [hierarchy=string], [inputConnectionsAndNodes=boolean], [shape=boolean], [staticChannels=boolean], [timeAnimationCurves=boolean], [unitlessAnimationCurves=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
delete は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
選択したオブジェクト、すべてのオブジェクト、コマンドで指定したオブジェクトの削除に使用します。フラグを使用し、このコマンドが動作するオブジェクトのタイプをフィルタ処理してください。
指定した項目以外が削除されることもあります。たとえば、NURBS サーフェス上で同じ「行」 の 2 つの CV を削除すると、行全体が削除されます。
なし
all, attribute, channels, constraints, constructionHistory, controlPoints, expressions, hierarchy, inputConnectionsAndNodes, shape, staticChannels, timeAnimationCurves, unitlessAnimationCurves
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
# To delete selected objects use:
cmds.delete()
# To delete a few specific objects like surfaceShape1, surface1 and
# paramCurve1 use:
cmds.delete( 'surfaceShape1', 'surface1', 'paramCurve1' )
# To delete all channels in the scene:
cmds.delete( all=True, c=True )
# To delete static channels connected to selected nodes:
cmds.delete( sc=True )
# To delete motion path nodes connected to selected nodes:
cmds.delete( mp=True )
# To delete all expressions in the scene:
cmds.delete( all=True, e=True )
# To delete selected constraints and constraints attached to selected nodes:
cmds.delete( cn=True )
# Notes:
# The at, h, s and cp flags only apply when either c/channels
# or sc/staticChannels or e/expressions options are specified.