Go to: Synopsis. Flags. Return value. Python examples.
nurbsSquare([center=[float, float, float]], [centerX=linear], [centerY=linear], [centerZ=linear], [constructionHistory=boolean], [curveOnSurface=boolean], [degree=int], [name=string], [normal=[float, float, float]], [normalX=linear], [normalY=linear], [normalZ=linear], [object=boolean], [polygon=int], [range=boolean], [rebuild=boolean], [replaceOriginal=boolean], [sideLength1=linear], [sideLength2=linear], [spansPerSide=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
nurbsSquare is undoable, queryable, and editable.
The nurbsSquare command creates a square
center, centerX, centerY, centerZ, constructionHistory, curveOnSurface, degree, name, normal, normalX, normalY, normalZ, object, polygon, range, rebuild, replaceOriginal, sideLength1, sideLength2, spansPerSide
| Long name (short name) |
[argument types] |
Properties |
normal(nr)
|
[float, float, float]
|

|
|
The normal of the plane in which the square will lie.
In query mode, this flag needs a value.
|
|
normalX(nrx)
|
linear
|

|
|
X of the normal direction.
Default: 0
In query mode, this flag needs a value.
|
|
normalY(nry)
|
linear
|

|
|
Y of the normal direction.
Default: 0
In query mode, this flag needs a value.
|
|
normalZ(nrz)
|
linear
|

|
|
Z of the normal direction.
Default: 1
In query mode, this flag needs a value.
|
|
center(c)
|
[float, float, float]
|

|
|
The center point of the square.
In query mode, this flag needs a value.
|
|
centerX(cx)
|
linear
|

|
|
X of the center point.
Default: 0
In query mode, this flag needs a value.
|
|
centerY(cy)
|
linear
|

|
|
Y of the center point.
Default: 0
In query mode, this flag needs a value.
|
|
centerZ(cz)
|
linear
|

|
|
Z of the center point.
Default: 0
In query mode, this flag needs a value.
|
|
sideLength1(sl1)
|
linear
|

|
|
The length of a side on the square.
Default: 1.0
In query mode, this flag needs a value.
|
|
sideLength2(sl2)
|
linear
|

|
|
The length of an adjacent side on the square.
Default: 1.0
In query mode, this flag needs a value.
|
|
degree(d)
|
int
|

|
|
The degree of the resulting circle:
1 - linear,
2 - quadratic,
3 - cubic,
5 - quintic,
7 - heptic
Default: 3
In query mode, this flag needs a value.
|
|
spansPerSide(sps)
|
int
|

|
|
The number of spans per side determines the resolution of the square.
Default: 1
In query mode, this flag needs a value.
|
|
name(n)
|
string
|
|
|
Name the resulting object
|
|
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off (not available in all commands)
|
|
object(o)
|
boolean
|
|
|
Create the result, or just the dependency node (not available in all commands)
|
|
replaceOriginal(rpo)
|
boolean
|
|
|
Create "in place" (i.e., replace) (not available in all commands)
|
|
curveOnSurface(cos)
|
boolean
|
|
|
If possible, create 2D curve as a result (not available in all commands)
|
|
polygon(po)
|
int
|
|
|
The value of this argument controls the type of the object
created by this operation (not available in all commands)
- 0: nurbs surface
- 1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)
- 2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)
- 3: Bezier surface
- 4: subdivision surface solid (use nurbsToSubdivPref to set the
parameters for the conversion)
|
|
range(rn)
|
boolean
|
|
|
Force a curve range on complete input curve (not available in all commands)
|
|
rebuild(rb)
|
boolean
|
|
|
Rebuild the input curve(s) before using them in the operation. Use nurbsCurveRebuildPref to set the parameters for the conversion. (not available in all commands)
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
[string[]] (object name and node name)
import maya.cmds as cmds
# create degree 1 square with side length 2, center (0,0,0) on the
# x-y plane
cmds.nurbsSquare( nr=(0, 0, 1), d=1, c=(0, 0, 0), sl1=2, sl2=2 )
# create degree 2 rectangle with length 2,4 at origin on the x-y plane
cmds.nurbsSquare( d=2, nr=(0, 0, 1), c=(0, 0, 0), sl1=2, sl2=4 )
# create square of degree 3,side lengths 3, 4 spans per side
cmds.nurbsSquare( nr=(0, 0, 1), c=(0, 0, 0), d=3, sl1=3, sl2=3, sps=4 )
Return to Autodesk Index