Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

paramLocator( [object] , [position=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

paramLocator is undoable, queryable, and editable.

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).

Return value

stringName for the new locator in the underworld of NURBS shape.

In query mode, return type is based on queried flag.

Flags

position
Long name (short name) Argument types Properties
position(p) boolean create
Whether to set the locator position in normalized space.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

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

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

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

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