ジャンプ先: 概要. 戻り値. キーワード. フラグ. Python 例.
nBase([clearCachedTextureMap=string], [clearStart=boolean], [stuffStart=boolean], [textureToVertex=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
nBase は、取り消し可能、照会可能、および編集可能です。
1 つまたは複数の nBase オブジェクトを編集します。nBase オブジェクトには nCloth、nRigid、nParticle オブジェクトが含まれますが、このコマンドのオプションは現在 nParticle オブジェクトには適用されないことに注意してください。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
nBase
clearCachedTextureMap, clearStart, stuffStart, textureToVertex
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Stuff the current positions and velocities into nCloth1's startPositions and
# startVelocities.
#
cmds.nBase( 'nCloth1', e=True, stuffStart=True )
# Clear nCloth1's startPositions and startVelocities.
#
cmds.nBase( 'nCloth1', e=True, clearStart=True )
# Transfer the texture map data for the thicknessMap attribute into the
# thicknessPerVertex attribute.
#
cmds.nBase( 'nCloth1', e=True, textureToVertex='thicknessMap' )