pymel.core.context.curveMoveEPCtx

curveMoveEPCtx(*args, **kwargs)

The curveMoveEPCtx command creates a new context for moving curve edit points using a manipulator. Edit points can only be moved one at a time.

Flags:

Long Name / Short Name Argument Types Properties
exists / ex bool ../../../_images/create.gif
  Returns true or false depending upon whether the specified object exists. Other flags are ignored.
image1 / i1 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  First of three possible icons representing the tool associated with the context.
image2 / i2 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Second of three possible icons representing the tool associated with the context.
image3 / i3 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Third of three possible icons representing the tool associated with the context. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.curveMoveEPCtx

Example:

import pymel.core as pm

# Create a curve
pm.curve(p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9), (12, 10, 2)], k=[0,0,0,1,2,2,2])
# Result: nt.Transform(u'curve1') #

# Change the selection mode to components, and set edit-point selection mask on only
pm.selectMode(co=True)
pm.selectType(allComponents=False, editPoint=True)

# Create a new curve edit point editor context, then switch to it
# You can move the edit points using manipulator
pm.curveMoveEPCtx('curveMoveEPCtx1')
# Result: u'curveMoveEPCtx1' #
pm.setToolTo('curveMoveEPCtx1')