pymel.core.effects.nBase

nBase(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
clearCachedTextureMap (cct) unicode ../../../_images/create.gif ../../../_images/edit.gif
 

Clear the cached texture map for the specified attribute from the nBase.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

clearStart (cs) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Indicates that start state should be cleared
stuffStart (ss) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Indicates that current state should be stuffed into the start state
textureToVertex (ttv) unicode ../../../_images/create.gif ../../../_images/edit.gif
 
Transfer the texture map data for the specified attribute into the related per-vertex attribute.

Derived from mel command maya.cmds.nBase

Example:

import pymel.core as pm

# Stuff the current positions and velocities into nCloth1's startPositions and
# startVelocities.
#
pm.nBase( 'nCloth1', e=True, stuffStart=True )
# Clear nCloth1's startPositions and startVelocities.
#
pm.nBase( 'nCloth1', e=True, clearStart=True )
# Transfer the texture map data for the thicknessMap attribute into the
# thicknessPerVertex attribute.
#
pm.nBase( 'nCloth1', e=True, textureToVertex='thicknessMap' )

Previous topic

pymel.core.effects.loadFluid

Next topic

pymel.core.effects.nParticle

Core

Core Modules

Other Modules

This Page