移動先: 概要 戻り値 Python 例.

概要

ctxAbort()

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

ctxAbort は 「元に戻す」が可能、「照会」が不可能「編集」が不可能 です。

このコマンドを使うと、カレント コンテキストがリセットされ、それまで実行したことが失われます。エスケープ文字コンテキストが設定されている場合、コンテキストがカレントになります

戻り値

なし

Python 例

import maya.cmds as cmds

# Create a new particle tool context, then switch to it
cmds.dynParticleCtx('dynParticleCtx1')
cmds.setToolTo('dynParticleCtx1')
# Click the positions where you want to place the particles

# This command will reset the particle tool, clear the particles you have just created
cmds.ctxAbort();