移動先: 概要 戻り値 キーワード. フラグ. 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' )