pymel.core.general.paramLocator

paramLocator(*args, **kwargs)

The command creates a locator in the underworld of a NURBS curve or NURBS surface at the specified parameter value. If no object is specified, then a locator will be created on the first valid selected item (either a curve point or a surface point).

Flags:

Long Name / Short Name Argument Types Properties
position / p bool ../../../_images/create.gif
  Whether to set the locator position in normalized space. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.paramLocator

Example:

import pymel.core as pm

# Creates a locator on curve1 at parameter value 0.5.
pm.paramLocator( 'curve1.u[0.5]' )

# Creates a locator on curve1 at its second edit point. (ep[0] is the 1st edit point).
pm.paramLocator( 'curve1.ep[1]' )

# Creates a locator on curve1 at normalized parameter value 0.25.
pm.paramLocator( 'curve1.un[0.25]' )

# Creates a locator on surface1 at parameter value (0.5,0.5).
pm.paramLocator( 'surface1.uv[0.5][0.5]' )