pymel.core.modeling.bevel

bevel(*args, **kwargs)

The bevel command creates a new bevel surface for the specified curve. The curve can be any nurbs curves.

Flags:
Long name (short name) Argument Types Properties
bevelShapeType (bst) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Shape type: 1 - straight cut, 2 - curve out, 3 - curve inDefault:1Advanced flags
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
cornerType (ct) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Corner type: 1 - linear, 2 - circularDefault:2
depth (d) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The depth for bevelDefault:0.5
extrudeDepth (ed) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The extrude depth for bevelDefault:1.0
joinSurfaces (js) bool  
   
name (n) unicode ../../../_images/create.gif
 

Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.

nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
numberOfSides (ns) int  
   
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
polygon (po) int ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
Force a curve range on complete input curveFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
tolerance (tol) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The tolerance for bevel offsetsDefault:0.01
width (w) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The width for bevelDefault:0.5

Derived from mel command maya.cmds.bevel

Example:

import pymel.core as pm

# 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 )

Previous topic

pymel.core.modeling.attachSurface

Next topic

pymel.core.modeling.bevelPlus

Core

Core Modules

Other Modules

This Page