Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.

Synopsis

polyCrease [-createHistory boolean] [-operation uint] [-relativeValue float] [-value float] [-vertexValue float]

polyCrease is undoable, queryable, and editable.

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

Return value

booleanSuccess or Failure.

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

Keywords

poly, crease, smooth, subdiv

Related

polySmooth

Flags

createHistory, operation, relativeValue, value, vertexValue
Long name (short name) Argument types Properties
-createHistory(-ch) boolean createqueryedit
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.
-value(-v) float createqueryeditmultiuse
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 createqueryeditmultiuse
Specifies the crease value for the selected vertex components. When specified multiple times, the values are assigned respectively to the specified vertices.
-relativeValue(-rv) float createqueryedit
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.
-operation(-op) uint createqueryedit
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 command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// To set a crease value of 0.9 on the selected edges or vertices
polyCrease -value 0.9;