Go to: Synopsis. Flags. Return value. Python examples.
spaceLocator([position=[float, float, float]])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
spaceLocator is undoable, queryable, and editable.
The command creates a locator at the specified position in space. By default it is created at (0,0,0).| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
position(p)
|
[float, float, float]
|
|||
|
||||
import maya.cmds as cmds
# Creates a space locator at (1, 1, 1).
cmds.spaceLocator( p=(1, 1, 1) )
# Creates a space locator at (1, 1, 1) in inches.
cmds.spaceLocator( p=('1in', '1in', '1in') )
# Creates a space locator at the default position (0, 0, 0).
cmds.spaceLocator()