This command performs a boolean operation.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
caching / cch | bool | ![]() ![]() ![]() |
|
|
|||
constructionHistory / ch | bool | ![]() |
|
|
|||
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 | ![]() ![]() ![]() |
|
|
|||
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 )