pymel.core.nodetypes.NParticle

Inheritance diagram of NParticle

class NParticle(*args, **kwargs)

class counterpart of mel function nParticle

The nParticle command creates a new nParticle object from a list of world space points. If an nParticle object is created, the command returns the names of the new particle shape and its associated particle object dependency node. If an object was queried, the results of the query are returned. Per particle attributes can be queried using the particleId or the order of the particle in the particle array. If an object was edited, nothing is returned.

floatValue(val=True, **kwargs)

Used only in per particle attribute edit. Specifies that the edit is of a float attribute and must be followed by the new float value.

Derived from mel command maya.cmds.nParticle

getAttribute(**kwargs)

Used in per particle attribute query and edit. Specifies the name of the attribute being queried or edited.

Derived from mel command maya.cmds.nParticle

getCache(**kwargs)

Turns caching on/off for the particle shape.

Derived from mel command maya.cmds.nParticle

getConserve(**kwargs)

Conservation of momentum control (between 0 and 1). Specifies the fraction of the particle shape’s existing momentum which is conserved from frame to frame. A value of 1 (the default) corresponds to true Newtonian physics, in which momentum is conserved.

Derived from mel command maya.cmds.nParticle

getCount(**kwargs)

Returns the number of particles in the object.

Derived from mel command maya.cmds.nParticle

getDynamicAttrList(**kwargs)

Returns a list of the dynamic attributes in the object.

Derived from mel command maya.cmds.nParticle

getGridSpacing(**kwargs)

Spacing between particles in the grid.

Derived from mel command maya.cmds.nParticle

getInherit(**kwargs)

Inherit this fraction (0-1) of emitting object’s velocity.

Derived from mel command maya.cmds.nParticle

getJitterBasePoint(**kwargs)

Base point (center point) for jitters. The command will create one swatch of jitters for each base point. It will pair up other flags with base points in the order they are given in the command line. If not enough instances of the other flags are availble, the last one on the line with be used for all other instances of -jpb.

Derived from mel command maya.cmds.nParticle

getJitterRadius(**kwargs)

Max radius from the center to place the particle instances.

Derived from mel command maya.cmds.nParticle

getLowerLeft(**kwargs)

Lower left point of grid.

Derived from mel command maya.cmds.nParticle

getName(**kwargs)

name of particle object

Derived from mel command maya.cmds.nParticle

getNumJitters(**kwargs)

Number of jitters (instances) per particle.

Derived from mel command maya.cmds.nParticle

getOrder(**kwargs)

Used in per particle attribute query and edit. Specifies the zero-based order (index) of the particle whose attribute is being queried or edited in the particle array. Querying the value of a per particle attribute requires the -attribute and -id or -order flags and their arguments to precede the -q flag.

Derived from mel command maya.cmds.nParticle

getParticleId(**kwargs)

Used in per particle attribute query and edit. Specifies the id of the particle whose attribute is being queried or edited. Querying the value of a per particle attribute requires the -attribute and -id or -order flags and their arguments to precede the -q flag.

Derived from mel command maya.cmds.nParticle

getPerParticleDouble(**kwargs)

Returns a list of the per-particle double attributes, excluding initial-state, cache, and information-only attributes.

Derived from mel command maya.cmds.nParticle

getPerParticleVector(**kwargs)

Returns a list of the per-particle vector attributes, excluding initial-state, cache, and information-only attributes.

Derived from mel command maya.cmds.nParticle

getShapeName(**kwargs)

Specify the shape name used for geometry instancing. DO not confuse this with the -n flag which names the particle object.

Derived from mel command maya.cmds.nParticle

getUpperRight(**kwargs)

Upper right point of grid.

Derived from mel command maya.cmds.nParticle

setAttribute(val=True, **kwargs)

Used in per particle attribute query and edit. Specifies the name of the attribute being queried or edited.

Derived from mel command maya.cmds.nParticle

setCache(val=True, **kwargs)

Turns caching on/off for the particle shape.

Derived from mel command maya.cmds.nParticle

setConserve(val=True, **kwargs)

Conservation of momentum control (between 0 and 1). Specifies the fraction of the particle shape’s existing momentum which is conserved from frame to frame. A value of 1 (the default) corresponds to true Newtonian physics, in which momentum is conserved.

Derived from mel command maya.cmds.nParticle

setInherit(val=True, **kwargs)

Inherit this fraction (0-1) of emitting object’s velocity.

Derived from mel command maya.cmds.nParticle

setName(val=True, **kwargs)

name of particle object

Derived from mel command maya.cmds.nParticle

setOrder(val=True, **kwargs)

Used in per particle attribute query and edit. Specifies the zero-based order (index) of the particle whose attribute is being queried or edited in the particle array. Querying the value of a per particle attribute requires the -attribute and -id or -order flags and their arguments to precede the -q flag.

Derived from mel command maya.cmds.nParticle

setParticleId(val=True, **kwargs)

Used in per particle attribute query and edit. Specifies the id of the particle whose attribute is being queried or edited. Querying the value of a per particle attribute requires the -attribute and -id or -order flags and their arguments to precede the -q flag.

Derived from mel command maya.cmds.nParticle

setShapeName(val=True, **kwargs)

Specify the shape name used for geometry instancing. DO not confuse this with the -n flag which names the particle object.

Derived from mel command maya.cmds.nParticle

vectorValue(val=True, **kwargs)

Used only in per particle attribute edit. Specifies that the edit is of a vector attribute and must be followed by all three float values for the vector.

Derived from mel command maya.cmds.nParticle

Previous topic

pymel.core.nodetypes.NComponent

Next topic

pymel.core.nodetypes.NRigid

Core

Core Modules

Other Modules

This Page