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 Clear the cached texture map for the specified attribute from the nBase. clearStart / cs bool Indicates that start state should be cleared stuffStart / ss bool Indicates that current state should be stuffed into the start state textureToVertex / ttv unicode Transfer the texture map data for the specified attribute into the related per-vertex attribute. Flag can have multiple arguments, passed either as a tuple or a list. 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' )