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 | |
---|---|---|---|
absolute (a) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
position (p) | float, float, float | ||
|
|||
relative (r) | bool | ||
|
Derived from mel command maya.cmds.spaceLocator
Example:
import pymel.core as pm
# Creates a space locator at (1, 1, 1).
pm.spaceLocator( p=(1, 1, 1) )
# Result: nt.Transform(u'locator1') #
# Creates a space locator at (1, 1, 1) in inches.
pm.spaceLocator( p=('1in', '1in', '1in') )
# Result: nt.Transform(u'locator2') #
# Creates a space locator at the default position (0, 0, 0).
pm.spaceLocator()
# Result: nt.Transform(u'locator3') #