移動先: 概要 戻り値 キーワード. フラグ. Python 例.

概要

nBase([clearCachedTextureMap=string], [clearStart=boolean], [stuffStart=boolean], [textureToVertex=string])

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

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

1 つまたは複数の nBase オブジェクトを編集します。nBase オブジェクトには nCloth、nRigid、nParticle オブジェクトが含まれますが、このコマンドのオプションは現在 nParticle オブジェクトには適用されないことに注意してください。

戻り値

boolean

戻り値の型は照会モードでは照会フラグが基になります。

キーワード

nBase

フラグ

clearCachedTextureMap, clearStart, stuffStart, textureToVertex
ロング ネーム(ショート ネーム) 引数型 プロパティ
stuffStart(ss) boolean createedit
カレントの状態を開始状態に詰め込むかどうかを指定します。
clearStart(cs) boolean createedit
開始状態をクリアすることを指定します。
textureToVertex(ttv) string createedit
指定したアトリビュートのテクスチャ マップ データを、関連する頂点単位のアトリビュートに転送します。
clearCachedTextureMap(cct) string createedit
nBase からの指定されたアトリビュートのキャッシュ済みテクスチャ マップをクリアします。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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' )