pymel.core.modeling.bevelPlus¶
- bevelPlus(*args, **kwargs)¶
The bevelPlus command creates a new bevel surface for the specified curves using a given style curve. The first curve should be the outsidecurve, and the (optional) rest of them should be inside of the first one. For predictable results, the curves should be planar and all in the same plane.
Flags:
Long Name / Short Name Argument Types Properties bevelInside / bin bool If true, ensure surface always remains within the original profile curve Default:false caching / cch bool capSides / cap int How to cap the bevel. 1 - no caps2 - cap at start only3 - cap at end only4 - cap at start and endDefault:4 constructionHistory / ch bool Turn the construction history on or off. depth / d float extrudeDepth / ed float frozen / fzn bool innerStyle / innerStyle int Similar to outerStyle, this style is applied to all but the first (outer) curve specified. joinSurfaces / js bool Attach bevelled surfaces into one surface for each input curve. Default:true 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 normalsOutwards / no bool If enabled, the normals point outwards on the resulting NURBS or poly surface. numberOfSides / ns int How to apply the bevel. 1 - no bevels2 - bevel at start only3 - bevel at end only4 - bevel at start and endDefault:4 outerStyle / os int Choose a style to use for the bevel of the first (outer) curve. There are 15 predefined styles (values 0 to 14 can be used to select them). For those experienced with MEL, you can, after the fact, specify a custom curve and use it for the style curve. See the documentation for styleCurve node to see what requirements a style curve must satisfy. polyOutChordHeight / cht float polyOutChordHeightRatio / chr float polyOutCount / poc int polyOutCurveSamples / pcs int polyOutCurveType / pct int polyOutExtrusionSamples / pes int polyOutExtrusionType / pet int polyOutMethod / pom int polyOutUseChordHeight / uch bool polyOutUseChordHeightRatio / ucr 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 Force a curve range on complete input curve. Flag can have multiple arguments, passed either as a tuple or a list. tolerance / tol float width / w float Derived from mel command maya.cmds.bevelPlus
Example:
import pymel.core as pm pm.circle() # Result: [nt.Transform(u'nurbsCircle1'), nt.MakeNurbCircle(u'makeNurbCircle1')] # pm.scale( 10, 10, 10, r=True ) pm.circle() # Result: [nt.Transform(u'nurbsCircle2'), nt.MakeNurbCircle(u'makeNurbCircle2')] # pm.scale( 5, 5, 5, r=True ) pm.bevelPlus( 'nurbsCircle1', 'nurbsCircle2', po=1, cap=4, outerStyle=2, innerStyle=4 ) # Result: [nt.Transform(u'bevelPolygon1'), nt.BevelPlus(u'bevelPlus1')] #