ctxAbort()
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
ctxAbort は、取り消し可能、照会不可能、および編集不可能です。
このコマンドを使うと、現在のコンテキストがリセットされ、それまで実行したことが失われます。エスケープ文字コンテキストが設定されている場合、コンテキストが現在になります。なし
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();