This command tells the current context to do a traversal.Some contexts will ignore this command. Individual contexts determine what up/down left/right mean.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
down (d) | bool | ||
|
|||
left (l) | bool | ||
|
|||
right (r) | bool | ||
|
|||
up (up) | bool | ||
|
Derived from mel command maya.cmds.ctxTraverse
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a particle context, then switch to it
pm.dynParticleCtx('dynParticleCtx1')
pm.setToolTo('dynParticleCtx1')
# Now you can create particles by mouse clicking
# After creating several particles, we switch to edit mode
pm.ctxEditMode()
# Traverse in the created particles
pm.ctxTraverse(left=True)
pm.ctxTraverse(left=True)
pm.ctxTraverse(right=True)