pymel.core.modeling.nurbsToSubdivPref¶
- nurbsToSubdivPref(*args, **kwargs)¶
This command sets the values used by the nurbs-to-subdivision surface preference. This preference is used by the nurbs creation commands and is saved between Maya sessions. To query any of the flags, use the -queryflag. For more information on the flags, see the node documentation for the nurbsToSubdivProcnode. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties bridge / br int Valid values are 0, 1, 2 or 3. capType / ct int Valid values are 0 or 1. collapsePoles / cp bool matchPeriodic / mp bool maxPolyCount / mpc int offset / o float reverseNormal / rn bool solidType / st int Valid values are 0, 1 or 2. trans00 / t00 float trans01 / t01 float trans02 / t02 float trans10 / t10 float trans11 / t11 float trans12 / t12 float trans20 / t20 float trans21 / t21 float trans22 / t22 float trans30 / t30 float trans31 / t31 float trans32 / t32 float Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.nurbsToSubdivPref
Example:
import pymel.core as pm # To find out what the current format is: pm.nurbsToSubdivPref( q=True, maxPolyCount=True ) # Result: 1000.0 #