This command performs a boolean operation.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | 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 | ||
|
|||
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 appear in Create mode of commandFlag 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 )