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 Shape type: 1 - straight cut, 2 - curve out, 3 - curve in Default:1 caching / cch bool Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only. constructionHistory / ch bool Turn the construction history on or off. cornerType / ct int Corner type: 1 - linear, 2 - circular Default:2 depth / d float The depth for bevel Default:0.5 extrudeDepth / ed float The extrude depth for bevel Default:1.0 frozen / fzn bool joinSurfaces / js bool name / n unicode 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 Modifies the node state. See the node documentation for more information. Note:For advanced users only. Flag can have multiple arguments, passed either as a tuple or a list. numberOfSides / ns int object / o bool Create the result, or just the dependency node. 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 Force a curve range on complete input curve. Advanced flags tolerance / tol float The tolerance for bevel offsets Default:0.01 width / w float The width for bevel Default:0.5 Common flags 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 )