pymel.core.modeling.polyCrease

polyCrease(*args, **kwargs)

Command to set the crease values on the edges or vertices of a poly. The crease values are used by the smoothing algorithm.

Flags:
Long name (short name) Argument Types Properties
createHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

For objects that have no construction history, this flag can be used to force the creation of construction history for creasing. By default, history is not created if the object has no history. Regardless of this flag, history is always created if the object already has history.

operation (op) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Operation to perform. Valid values are: 0: Crease the specified components. 1: Remove the crease values for the specified components. 2: Remove all crease values from the mesh. Default is 0.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

relativeValue (rv) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specifies a new relative value for all selected vertex and edge components. This flag can not be used at the same time as either the value or vertexValue flags.
value (v) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specifies the crease value for the selected edge components. When specified multiple times, the values are assigned respectively to the specified edges.
vertexValue (vv) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specifies the crease value for the selected vertex components. When specified multiple times, the values are assigned respectively to the specified vertices.

Derived from mel command maya.cmds.polyCrease

Example:

import pymel.core as pm

# To set a crease value of 0.9 on the selected edges or vertices
pm.polyCrease( value=0.9 )

Previous topic

pymel.core.modeling.polyCopyUV

Next topic

pymel.core.modeling.polyCreateFacet

Core

Core Modules

Other Modules

This Page