This command is used to create a instancer node and set the proper attributes in the node.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| addObject (a) | bool |
|
|
|
|||
| cycle (c) | unicode |
|
|
|
|||
| cycleStep (cs) | float |
|
|
This flag sets or queries the cycle step attribute for the instancer node. This attribute indicates the size of the step in frames or seconds (see cycleStepUnit). |
|||
| cycleStepUnits (csu) | unicode |
|
|
|
|||
| index (i) | int |
|
|
|
|||
| levelOfDetail (lod) | unicode |
|
|
|
|||
| name (n) | unicode |
|
|
|
|||
| object (obj) | unicode |
|
|
This flag indicates which objects will be add/removed from the list of instanced objects. The flag is used in conjuction with the -add and -remove flags. If neither of these flags is specified on the command line then -add is assumed. |
|||
| objectPosition (op) | unicode |
|
|
|
|||
| objectRotation (objectRotation) | unicode |
|
|
|
|||
| objectScale (os) | unicode |
|
|
|
|||
| pointDataSource (pds) | bool |
|
|
This flag is used to query the source node supply the data for the input points. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
| removeObject (rm) | bool |
|
|
|
|||
| rotationOrder (ro) | unicode |
|
|
|
|||
| rotationUnits (ru) | unicode |
|
|
|
|||
| valueName (vn) | unicode |
|
|
This flag is used to query the value(s) of the array associated with the given name. If the -index flag is used in conjuction with this flag then the ith value will be returned. Otherwise, the entire array will be returned. |
|||
Derived from mel command maya.cmds.instancer
Example:
import pymel.core as pm
pm.polySphere(n='myShape')
# Result: [nt.Transform(u'myShape'), nt.PolySphere(u'polySphere1')] #
pm.instancer( name='myInstancerNode', a=True, object='myShape' )