Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

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

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

nBase is undoable, queryable, and editable.

Edits one or more nBase objects. Note that nBase objects include nCloth, nRigid and nParticle objects, but the options on this command do not currently apply to nParticle objects.

Return value

boolean

In query mode, return type is based on queried flag.

Keywords

nBase

Flags

clearCachedTextureMap, clearStart, stuffStart, textureToVertex
Long name (short name) Argument types Properties
clearCachedTextureMap(cct) string createedit
Clear the cached texture map for the specified attribute from the nBase.
clearStart(cs) boolean createedit
Indicates that start state should be cleared
stuffStart(ss) boolean createedit
Indicates that current state should be stuffed into the start state
textureToVertex(ttv) string createedit
Transfer the texture map data for the specified attribute into the related per-vertex attribute.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

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