The nurbsCube command creates a new NURBS Cube made up of six planes. It creates an unit cube 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 | ||
|
|||
heightRatio (hr) | float | ||
|
|||
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 appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
width (w) | float | ||
|
Derived from mel command maya.cmds.nurbsCube
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.nurbsCube()
# Result: [nt.Transform(u'nurbsCube1'), nt.MakeNurbCube(u'makeNurbCube1')] #
pm.nurbsCube( w=3, hr=5 )
# Result: [nt.Transform(u'nurbsCube2'), nt.MakeNurbCube(u'makeNurbCube2')] #
pm.nurbsCube( w=10, p=(0, 0, 1) )
# Result: [nt.Transform(u'nurbsCube3'), nt.MakeNurbCube(u'makeNurbCube3')] #
pm.nurbsCube( d=1, u=3, v=5, w=5 )
# Result: [nt.Transform(u'nurbsCube4'), nt.MakeNurbCube(u'makeNurbCube4')] #