This command performs a boolean operation.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
nsrfsInFirstShell (nsf) | int | ||
|
|||
object (o) | bool | ||
|
|||
operation (op) | int | ||
|
|||
smartConnection (sc) | bool | ||
Look for any of the selection items having a boolean operation as history. Default is true. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
tolerance (tlb) | float | ||
|
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 )