SpriteIndex (Particle)

Description

Returns or sets the sprite index for the particle as a Long. The sprite index refers to a frame in the image clip associated with the particle's ParticleType property. You can set the image clip to be used by the particle via the particletype. The sprite index is only used when the particletype's shape type is set to sprite.

C# Syntax

// get accessor
Int32 rtn = Particle.SpriteIndex;

// set accessor
Particle.SpriteIndex = Int32;

Examples

VBScript Example

'
'  Example demonstrating how to read and write the 
'  SpriteIndex property of a particle
'
set myParticleCloud = CreateParticleCloud(,"Grid")(0)

for i = 0 to myParticleCloud.Particles.Count - 1
   set myParticle = myParticleCloud.Particles(i)

   myParticle.SpriteIndex = 2
   LogMessage myParticle.SpriteIndex
next


Autodesk Softimage v7.5