AddParticleForce

Introduced

v1.0

Categories

simulation

Description

Adds a particle force object. If the object does not have a particle force property then it is added. This object is connected to a particle cloud object.

Scripting Syntax

AddParticleForce( [Target], [InputObj] );

Parameters

Parameter Type Description
Target String List of particle-emitting objects.

Default Value: Selected objects

InputObj String Force object

Examples

VBScript Example

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

See Also

CreateParticleCloud ApplyParticleShader AddParticleEmitter AddParticleObstacle AddParticleForce SIAddParticleForce Particle ParticleCloud ParticleType