pymel.core.modeling.nurbsCube

nurbsCube(*args, **kwargs)

The nurbsCube command creates a new NURBS Cube made up of six planes. It creates an unit cube with center at origin by default.

Flags:
Long name (short name) Argument Types Properties
axis (ax) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The primitive’s axisAdvanced flags
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
degree (d) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The degree of the resulting surface. 1 - linear, 2 - quadratic, 3 - cubic, 5 - quintic, 7 - hepticDefault:3
heightRatio (hr) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Ratio of “height” to “width”Default:1.0
lengthRatio (lr) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Ratio of “length” to “width”Default:1.0
name (n) unicode ../../../_images/create.gif
 

Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.

nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
patchesU (u) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Number of sections in UDefault:1
patchesV (v) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Number of sections in VDefault:1
pivot (p) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The primitive’s pivot point
polygon (po) int ../../../_images/create.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Width of the objectDefault:1.0

Derived from mel command maya.cmds.nurbsCube

Example:

import pymel.core as pm

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')] #

Previous topic

pymel.core.modeling.nurbsCopyUVSet

Next topic

pymel.core.modeling.nurbsCurveToBezier

Core

Core Modules

Other Modules

This Page