pymel.core.modeling.blend2

blend2(*args, **kwargs)

This command creates a surface by blending between given curves. This is an enhancement (more user control) compared to blend which is now obsolete.

Flags:
Long name (short name) Argument Types Properties
autoAnchor (aa) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true and both paths are closed, automatically determine the value on the right rail so that they matchDefault:true
autoNormal (an) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, the direction of each starting tangent is computed based on given geometry.Default:true
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
crvsInFirstRail (cfr) int  
   
flipLeftNormal (fln) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, flip the starting tangent off the left boundary.Default:false
flipRightNormal (frn) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, flip the starting tangent off the right boundary.Default:false
leftAnchor (la) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the left boundary where the blend surface starts in the case of the closed rail.Default:0.0
leftEnd (le) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the left boundary where the blend surface ends.Default:1.0
leftStart (ls) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the left boundary where the blend surface starts.Default:0.0
multipleKnots (mk) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, use the new blend which produces fully multiple interior knotsDefault:true
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
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
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)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

positionTolerance (pt) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The positional C(0) tolerance of the blend surface to the adjacent surfaces.Default:0.1
reverseLeft (rvl) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, reverse the direction off the left boundary. autoDirection must be false for this value to be considered.Default:false
reverseRight (rvr) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
If true, reverse the direction of the right boundary. autoDirection must be false for this value to be considered.Default:falseAdvanced flags
rightAnchor (ra) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the right boundary where the blend surface starts in the case of the closed rail.Default:0.0
rightEnd (re) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the right boundary where the blend surface ends.Default:1.0
rightStart (rs) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The reference parameter on the right boundary where the blend surface starts.Default:0.0
tangentTolerance (tt) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The tangent G(1) continuity tolerance of the blend surface to the adjacent surfaces.Default:0.1

Derived from mel command maya.cmds.blend2

Example:

import pymel.core as pm

import maya.cmds as cmds

# Do blend with auto normal and with no history:
pm.blend2( an=True, ch=False )

# Do blend without auto normal
pm.blend2( an=False, fln=True, frn=True )

Previous topic

pymel.core.modeling.bezierInfo

Next topic

pymel.core.modeling.blindDataType

Core

Core Modules

Other Modules

This Page