pymel.core.nodetypes.Instancer

digraph inheritancefb06b7e84f {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "Transform" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="pymel.core.nodetypes.Transform.html#pymel.core.nodetypes.Transform",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "DagNode" -> "Transform" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "Entity" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="pymel.core.nodetypes.Entity.html#pymel.core.nodetypes.Entity",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "ContainerBase" -> "Entity" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "PyNode" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="../pymel.core.general/pymel.core.general.PyNode.html#pymel.core.general.PyNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "ProxyUnicode" -> "PyNode" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "DagNode" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="pymel.core.nodetypes.DagNode.html#pymel.core.nodetypes.DagNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "Entity" -> "DagNode" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "ContainerBase" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="pymel.core.nodetypes.ContainerBase.html#pymel.core.nodetypes.ContainerBase",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "DependNode" -> "ContainerBase" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "Instancer" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.nodetypes.Instancer",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "Transform" -> "Instancer" [arrowsize=0.5,style="setlinewidth(0.5)"];
  "ProxyUnicode" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.ProxyUnicode.html#pymel.util.utilitytypes.ProxyUnicode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "DependNode" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="pymel.core.nodetypes.DependNode.html#pymel.core.nodetypes.DependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
  "PyNode" -> "DependNode" [arrowsize=0.5,style="setlinewidth(0.5)"];
}

class Instancer(*args, **kwargs)

class counterpart of mel function instancer

This command is used to create a instancer node and set the proper attributes in the node.

addObject(val=True, **kwargs)

This flag indicates that objects specified by the -object flag will be added to the instancer node as instanced objects.

Derived from mel command maya.cmds.instancer

getCycle(**kwargs)

This flag sets or queries the cycle attribute for the instancer node. The options are noneor sequential. The default is none.

Derived from mel command maya.cmds.instancer

getCycleStep(**kwargs)

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).

Derived from mel command maya.cmds.instancer

getCycleStepUnits(**kwargs)

This flag sets or queries the cycle step unit attribute for the instancer node. The options are framesor seconds. The default is frames.

Derived from mel command maya.cmds.instancer

getIndex(**kwargs)

This flag is used to query the name of the ith instanced object.

Derived from mel command maya.cmds.instancer

getLevelOfDetail(**kwargs)

This flag sets or queries the level of detail of the instanced objects. The options are geometry, boundingBox, boundingBoxes. The default is geometry.

Derived from mel command maya.cmds.instancer

getObject(**kwargs)

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.

Derived from mel command maya.cmds.instancer

getObjectPosition(**kwargs)

This flag queries the given objects position. This object can be any instanced object or sub-object.

Derived from mel command maya.cmds.instancer

getObjectRotation(**kwargs)

This flag queries the given objects rotation. This object can be any instanced object or sub-object.

Derived from mel command maya.cmds.instancer

getObjectScale(**kwargs)

This flag queries the given objects scale. This object can be any instanced object or sub-object.

Derived from mel command maya.cmds.instancer

getPointDataSource(**kwargs)

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.

Derived from mel command maya.cmds.instancer

getRotationUnits(**kwargs)

This flag specifies the rotation units associated with the rotation flag. The options are degrees or radians. By default the attribute is degrees.

Derived from mel command maya.cmds.instancer

getValueName(**kwargs)

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

instancesForParticle(p, paths, instancerMatrix)

Returns (via reference) the DAG paths and instancer matrix for all instances generated by a specified particle

Parameters:
p : int

The index of the particle being queried.

paths : PyNode list

Visible DAG paths generated by particle p

instancerMatrix : Matrix

The transformation matrix that the instancer applies to the instanced paths to produce the final particle-instanced geometry. The final world matrix of each instance can be constructed by premultiplying the path’s inclusive world matrix by this matrix.

Return type:

int

Derived from api method maya.OpenMayaFX.MFnInstancer.instancesForParticle

particleCount()

Returns the number of particles feeding the active instancer

Return type:int

Derived from api method maya.OpenMayaFX.MFnInstancer.particleCount

removeObject(val=True, **kwargs)

This flag indicates that objects specified by the -object flag will be removed from the instancer node as instanced objects.

Derived from mel command maya.cmds.instancer

setCycle(val=True, **kwargs)

This flag sets or queries the cycle attribute for the instancer node. The options are noneor sequential. The default is none.

Derived from mel command maya.cmds.instancer

setCycleStep(val=True, **kwargs)

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).

Derived from mel command maya.cmds.instancer

setCycleStepUnits(val=True, **kwargs)

This flag sets or queries the cycle step unit attribute for the instancer node. The options are framesor seconds. The default is frames.

Derived from mel command maya.cmds.instancer

setLevelOfDetail(val=True, **kwargs)

This flag sets or queries the level of detail of the instanced objects. The options are geometry, boundingBox, boundingBoxes. The default is geometry.

Derived from mel command maya.cmds.instancer

setObject(val=True, **kwargs)

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.

Derived from mel command maya.cmds.instancer

setRotationUnits(val=True, **kwargs)

This flag specifies the rotation units associated with the rotation flag. The options are degrees or radians. By default the attribute is degrees.

Derived from mel command maya.cmds.instancer

Previous topic

pymel.core.nodetypes.InsertKnotSurface

Next topic

pymel.core.nodetypes.IntersectSurface

Core

Core Modules

Other Modules

This Page