The bevel command creates a new bevel surface for the specified curve. The curve can be any nurbs curves.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
bevelShapeType (bst) | int | ||
|
|||
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
cornerType (ct) | int | ||
|
|||
depth (d) | float | ||
|
|||
extrudeDepth (ed) | float | ||
|
|||
joinSurfaces (js) | bool | ||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
numberOfSides (ns) | int | ||
object (o) | bool | ||
|
|||
polygon (po) | int | ||
The value of this argument controls the type of the object created by this operation 0: nurbs surface1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)3: Bezier surface4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion) |
|||
range (rn) | bool | ||
|
|||
tolerance (tol) | float | ||
|
|||
width (w) | float | ||
|
Derived from mel command maya.cmds.bevel
Example:
import pymel.core as pm
import maya.cmds as cmds
# Bevel (one) active curve with a width and depth of 1.5:
pm.bevel( w=1.5, d=1.5 )
# Create a single-sided bevel (at start) surface using the specified
# curve (with the default dimensions):
pm.bevel( 'curve1', ns=2 )