The nurbsPlane command creates a new NURBS Plane and return the name of the new surface. It creates an unit plane with center at origin by default.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| axis (ax) | float, float, float |
|
|
|
|||
| caching (cch) | bool |
|
|
|
|||
| constructionHistory (ch) | bool |
|
|
|
|||
| degree (d) | int |
|
|
|
|||
| lengthRatio (lr) | float |
|
|
|
|||
| name (n) | unicode |
|
|
|
|||
| nodeState (nds) | int |
|
|
|
|||
| object (o) | bool |
|
|
|
|||
| patchesU (u) | int |
|
|
|
|||
| patchesV (v) | int |
|
|
|
|||
| pivot (p) | float, float, float |
|
|
|
|||
| polygon (po) | int |
|
|
The value of this argument controls the type of the object created by this operation 0: nurbs surface1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)3: Bezier surface4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion)Flag can have multiple arguments, passed either as a tuple or a list. |
|||
| width (w) | float |
|
|
|
|||
Derived from mel command maya.cmds.nurbsPlane
Example:
import pymel.core as pm
# Create default plane
pm.nurbsPlane()
# Result: [nt.Transform(u'nurbsPlane1'), nt.MakeNurbPlane(u'makeNurbPlane1')] #
# Create a degree 3 plane with 4 spans in each direction
pm.nurbsPlane( d=3, u=4, v=4 )
# Result: [nt.Transform(u'nurbsPlane2'), nt.MakeNurbPlane(u'makeNurbPlane2')] #
# Create plane that is twice as long as it is wide
pm.nurbsPlane( w=3, lr=2 )
# Result: [nt.Transform(u'nurbsPlane3'), nt.MakeNurbPlane(u'makeNurbPlane3')] #