pymel.core.modeling.nurbsToPolygonsPref

nurbsToPolygonsPref(*args, **kwargs)

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. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
chordHeight (cht) float ../../../_images/create.gif ../../../_images/query.gif
   
chordHeightRatio (chr) float ../../../_images/create.gif ../../../_images/query.gif
   
delta3D (d) float ../../../_images/create.gif ../../../_images/query.gif
   
edgeSwap (es) bool ../../../_images/create.gif ../../../_images/query.gif
   
format (f) int ../../../_images/create.gif ../../../_images/query.gif
 
Valid values are 0, 1 and 2.
fraction (ft) float ../../../_images/create.gif ../../../_images/query.gif
   
| |
mrt)** | int | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
   
merge (m) int ../../../_images/create.gif ../../../_images/query.gif
   
mergeTolerance (mt) float ../../../_images/create.gif ../../../_images/query.gif
   
minEdgeLen (mel) float ../../../_images/create.gif ../../../_images/query.gif
   
polyCount (pc) int ../../../_images/create.gif ../../../_images/query.gif
   
polyType (pt) int ../../../_images/create.gif ../../../_images/query.gif
   
uNumber (un) int ../../../_images/create.gif ../../../_images/query.gif
   
uType (ut) int ../../../_images/create.gif ../../../_images/query.gif
   
useChordHeight (uch) bool ../../../_images/create.gif ../../../_images/query.gif
   
useChordHeightRatio (ucr) bool ../../../_images/create.gif ../../../_images/query.gif
   
vNumber (vn) int ../../../_images/create.gif ../../../_images/query.gif
   
vType (vt) int ../../../_images/create.gif ../../../_images/query.gif
 
Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.nurbsToPolygonsPref

Example:

import pymel.core as pm

import maya.cmds as cmds

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

Previous topic

pymel.core.modeling.nurbsToPoly

Next topic

pymel.core.modeling.nurbsToSubdiv

Core

Core Modules

Other Modules

This Page