pymel.core.modeling.nurbsBoolean¶
- nurbsBoolean(*args, **kwargs)¶
This command performs a boolean operation.
Flags:
Long Name / Short Name Argument Types Properties 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. frozen / fzn 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. nsrfsInFirstShell / nsf int The number of selection items comprising the first shell. object / o bool Create the result, or just the dependency node. operation / op int Type of Boolean operation. Default:0 smartConnection / sc bool Look for any of the selection items having a boolean operation as history. Default is true. Advanced flags tolerance / tlb float fitting tolerance. Default:0.01 Common flags Derived from mel command maya.cmds.nurbsBoolean
Example:
import pymel.core as pm # To do a union between two cubes. pm.nurbsBoolean( 'nurbsCube1', 'nurbsCube2', nsf=1, op=0 ) # To do a subtract between a cube and a sphere. # i.e cube - sphere pm.nurbsBoolean( 'nurbsCube1', 'nurbsSphere1', op=1, nsf=1 ) # To do an intersect between two spheres. pm.nurbsBoolean( 'nurbsSphere1', 'nurbsSphere2', op=2, nsf=1 )