Your Ad Here

Go to: Synopsis. Flags. Return value. Related. Python examples.

Synopsis

polyUnite( poly1 poly2 [poly3 ...] , [constructionHistory=boolean], [name=string], [object=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

polyUnite is undoable, queryable, and editable.

This command creates a new poly as an union of a list of polys If no objects are specified in the command line, then the objects from the active list are used.

Flags

constructionHistory, name, object
Long name (short name) [argument types] Properties
name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.

object(o) boolean create
Create the result, or just the dependency node (where applicable).

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Return value


string[] Object name and node name.

Related

polyBoolOp, polySeparate

Python examples

import maya.cmds as cmds

cmds.polySphere( n='plg1' )
cmds.polyCube( w=2, h=.2, d=2, n='plg2' )
cmds.move( 0, -1.1, 0 )
cmds.polyCube( w=2, h=.2, d=2, n='plg3' )
cmds.move( 0, 1.1, 0 )
cmds.polyUnite( 'plg1', 'plg2', 'plg3', n='result' )
cmds.rotate( 0, 0, 90, 'result' )

  

Return to Autodesk Index


Your Ad Here