pymel.core.modeling.nurbsBoolean

nurbsBoolean(*args, **kwargs)

This command performs a boolean operation.

Flags:
Long name (short name) Argument Types Properties
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
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
nsrfsInFirstShell (nsf) int ../../../_images/create.gif
 
The number of selection items comprising the first shell.
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
operation (op) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Type of Boolean operation. Default:0
smartConnection (sc) bool ../../../_images/create.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
fitting tolerance. Default:0.01 Advanced 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 )