The command creates a sketch plane (also known as a “construction plane”) in space. To create an object (such as a NURBS curve, joint chain or polygon) on a construction plane, you need to first make the plane live. See also the makeLive command.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
length (l) | float | ||
|
|||
name (n) | unicode | ||
|
|||
position (p) | float, float, float | ||
|
|||
rotation (r) | float, float, float | ||
|
|||
size (s) | float | ||
|
|||
width (w) | float | ||
|
Derived from mel command maya.cmds.plane
Example:
import pymel.core as pm
# Creates a plane of size (10x10) with center at (1,1,1)
pm.plane( p=(1, 1, 1), s=10 )
# Result: nt.Transform(u'plane1') #
# Creates a plane of size (10x10) with center at (1,1,1) using various units
pm.plane( p=('1ft', '1ft', '1ft'), s='10in', r=('30deg', '30deg', '45deg') )
# Result: nt.Transform(u'plane2') #