AddParticles

Introduced

3.0

Description

Adds particles to a cloud.

Scripting Syntax

AddParticles( [InputObj], [ParType], Positions, [Velocities], [World Referential] )

Parameters

Parameter

Type

Description

InputObj

String

The particle cloud to which the particles will be added

Default Value: If not specified a new cloud will be created

ParType

String

The particle type describing the new added particles

Default Value: If not specified the first particle type in the particle type container will be used. If none exist a new particle type will be created

Positions

Array

The positions of the new particles in a flat array.

Velocities

Array

The velocities of the new particles in a flat array.

Default Value: Added particles have a zero velocity.

World Referential

Boolean

If true, positions and velocities are expressed in world coordinates.

Default Value: True

Return Value

Returns the particle cloud as an Operator.

Examples

VBScript Example

' Create a particle force
set myParticleCloud = CreateParticleCloud()
set myParticleEmitter = CreatePrim( "Sphere", "MeshSurface", "ParticleEmitter" )
AddParticleEmitter myParticleCloud, myParticleEmitter

' Create a particle cloud
Set oParticleCloud = CreateParticleCloud()

' Add particles to the cloud
aPositions = Array( -6.4986, 3.3704, -0.337, 7.89 )
AddParticles oParticleCloud,, aPositions

See Also

CreateParticleCloud

Particle

ParticleCloud

ParticleCloudPrimitive



Autodesk Softimage v7.5