Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

nurbsToPolygonsPref([chordHeight=float], [chordHeightRatio=float], [delta3D=float], [edgeSwap=boolean], [format=uint], [fraction=float], [matchRenderTessellation=uint], [merge=uint], [mergeTolerance=float], [minEdgeLen=float], [polyCount=uint], [polyType=uint], [uNumber=uint], [uType=uint], [useChordHeight=boolean], [useChordHeightRatio=boolean], [vNumber=uint], [vType=uint])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

nurbsToPolygonsPref is undoable, queryable, and NOT editable.

This command sets the values used by the nurbs-to-polygons (or "tesselate") preference. This preference is used by Maya menu items and is saved between Maya sessions. To query any of the flags, use the "-query" flag. For more information on the flags, see the node documentation for the "nurbsTessellate" node.

Return value

None

In query mode, return type is based on queried flag.

Flags

chordHeight, chordHeightRatio, delta3D, edgeSwap, format, fraction, matchRenderTessellation, merge, mergeTolerance, minEdgeLen, polyCount, polyType, uNumber, uType, useChordHeight, useChordHeightRatio, vNumber, vType
Long name (short name) Argument types Properties
format(f) uint
Valid values are 0, 1 and 2.
chordHeightRatio(chr) float
chordHeight(cht) float
delta3D(d) float
edgeSwap(es) boolean
fraction(ft) float
minEdgeLen(mel) float
polyCount(pc) uint
merge(m) uint
mergeTolerance(mt) float
matchRenderTessellation(mrt) uint
polyType(pt) uint
useChordHeight(uch) boolean
useChordHeightRatio(ucr) boolean
uNumber(un) uint
uType(ut) uint
vNumber(vn) uint
vType(vt) uint

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.

Python examples

import maya.cmds as cmds

# To find out what the current format is:
cmds.nurbsToPolygonsPref( q=True, f=True )