pymel.core.nodetypes.PolySmooth — PyMEL 1.0.7 documentation

pymel.core.nodetypes.PolySmooth

Inheritance diagram of PolySmooth

class PolySmooth(*args, **kwargs)

class counterpart of mel function polySmooth

Smooth a polygonal object. This command works on polygonal objects or faces.

MAttrClass = Enum( EnumValue('MAttrClass', 1, 'localDynamicAttr'), EnumValue('MAttrClass', 2, 'normalAttr'), EnumValue('MAttrClass', 3, 'extensionAttr'), EnumValue('MAttrClass', 4, 'invalidAttr'))
MdgTimerMetric = Enum( EnumValue('MdgTimerMetric', 0, 'metric_callback'), EnumValue('MdgTimerMetric', 1, 'metric_compute'), EnumValue('MdgTimerMetric', 2, 'metric_dirty'), EnumValue('MdgTimerMetric', 3, 'metric_draw'), EnumValue('MdgTimerMetric', 4, 'metric_fetch'), EnumValue('MdgTimerMetric', 5, 'metric_callbackViaAPI'), EnumValue('MdgTimerMetric', 6, 'metric_callbackNotViaAPI'), EnumValue('MdgTimerMetric', 7, 'metric_computeDuringCallback'), EnumValue('MdgTimerMetric', 8, 'metric_computeNotDuringCallback'), EnumValue('MdgTimerMetric', 9, 'metrics'))
MdgTimerState = Enum( EnumValue('MdgTimerState', 0, 'off'), EnumValue('MdgTimerState', 1, 'on'), EnumValue('MdgTimerState', 2, 'uninitialized'), EnumValue('MdgTimerState', 3, 'invalidState'))
MdgTimerType = Enum( EnumValue('MdgTimerType', 0, 'type_self'), EnumValue('MdgTimerType', 1, 'type_inclusive'), EnumValue('MdgTimerType', 2, 'type_count'), EnumValue('MdgTimerType', 3, 'types'))
caching(val=True, **kwargs)

Toggle caching for all attributes so that no recomputation is needed

Derived from mel command maya.cmds.polySmooth

getConstructionHistory(**kwargs)

Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object. Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

Derived from mel command maya.cmds.polySmooth

getContinuity(**kwargs)

This flag specifies the smoothness parameter. The minimum value of 0.0 specifies that the faces should only be subdivided. Maximum value of 1.0 smooths the faces as much as possible. C: Default is 1.0 Q: When queried, this flag returns a float.

Derived from mel command maya.cmds.polySmooth

getDivisions(**kwargs)

This flag specifies the number of recursive smoothing steps. C: Default is 1. Q: When queried, this flag returns an int.

Derived from mel command maya.cmds.polySmooth

getKeepBorder(**kwargs)

If on, the border of the object will not move during smoothing operation. C: Default is on. Q: When queried, this flag returns an int.

Derived from mel command maya.cmds.polySmooth

getKeepHardEdge(**kwargs)

If true, vertices on hard edges will not be modified. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

getKeepSelectionBorder(**kwargs)

If true, vertices on border of the selection will not be modified. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

getKeepTessellation(**kwargs)

If true, the object will be tessellated consistently at each frame. If false, non-starlike faces will be triangulated before being subdivided, to avoid self-overlapping faces. C: Default is true. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

getNodeState(**kwargs)

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polySmooth

getOsdCreaseMethod(**kwargs)

Controls how boundary edges and vertices are interpolated. Common flags

Derived from mel command maya.cmds.polySmooth

getOsdFvarBoundary(**kwargs)

Controls how boundaries are treated for face-varying data (UVs and Vertex Colors).

Derived from mel command maya.cmds.polySmooth

getOsdFvarPropagateCorners(**kwargs)

Derived from mel command maya.cmds.polySmooth

getOsdSmoothTriangles(**kwargs)

Apply a special subdivision rule be applied to all triangular faces that was empirically determined to make triangles subdivide more smoothly.

Derived from mel command maya.cmds.polySmooth

getOsdVertBoundary(**kwargs)

Controls how boundary edges and vertices are interpolated.

Derived from mel command maya.cmds.polySmooth

getPropagateEdgeHardness(**kwargs)

If true, edges which are a result of smoothed edges will be given the same value for their edge hardness. New subdivided edges will always be smooth. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

getSubdivisionType(**kwargs)

The subdivision method used for smoothing. C: Default is 0. 0: Maya Catmull-Clark 1: OpenSubdiv Catmull-Clark

Derived from mel command maya.cmds.polySmooth

setContinuity(val=True, **kwargs)

This flag specifies the smoothness parameter. The minimum value of 0.0 specifies that the faces should only be subdivided. Maximum value of 1.0 smooths the faces as much as possible. C: Default is 1.0 Q: When queried, this flag returns a float.

Derived from mel command maya.cmds.polySmooth

setDivisions(val=True, **kwargs)

This flag specifies the number of recursive smoothing steps. C: Default is 1. Q: When queried, this flag returns an int.

Derived from mel command maya.cmds.polySmooth

setKeepBorder(val=True, **kwargs)

If on, the border of the object will not move during smoothing operation. C: Default is on. Q: When queried, this flag returns an int.

Derived from mel command maya.cmds.polySmooth

setKeepHardEdge(val=True, **kwargs)

If true, vertices on hard edges will not be modified. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

setKeepSelectionBorder(val=True, **kwargs)

If true, vertices on border of the selection will not be modified. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

setKeepTessellation(val=True, **kwargs)

If true, the object will be tessellated consistently at each frame. If false, non-starlike faces will be triangulated before being subdivided, to avoid self-overlapping faces. C: Default is true. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

setNodeState(val=True, **kwargs)

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polySmooth

setOsdCreaseMethod(val=True, **kwargs)

Controls how boundary edges and vertices are interpolated. Common flags

Derived from mel command maya.cmds.polySmooth

setOsdFvarBoundary(val=True, **kwargs)

Controls how boundaries are treated for face-varying data (UVs and Vertex Colors).

Derived from mel command maya.cmds.polySmooth

setOsdFvarPropagateCorners(val=True, **kwargs)

Derived from mel command maya.cmds.polySmooth

setOsdSmoothTriangles(val=True, **kwargs)

Apply a special subdivision rule be applied to all triangular faces that was empirically determined to make triangles subdivide more smoothly.

Derived from mel command maya.cmds.polySmooth

setOsdVertBoundary(val=True, **kwargs)

Controls how boundary edges and vertices are interpolated.

Derived from mel command maya.cmds.polySmooth

setPropagateEdgeHardness(val=True, **kwargs)

If true, edges which are a result of smoothed edges will be given the same value for their edge hardness. New subdivided edges will always be smooth. C: Default is false. Q: When queried, this flag returns a boolean.

Derived from mel command maya.cmds.polySmooth

setSubdivisionType(val=True, **kwargs)

The subdivision method used for smoothing. C: Default is 0. 0: Maya Catmull-Clark 1: OpenSubdiv Catmull-Clark

Derived from mel command maya.cmds.polySmooth