AddParticleObstacle
 
 
 

AddParticleObstacle

Introduced

v1.0

Description

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

Scripting Syntax

AddParticleObstacle( [Target], [InputObj] );

Parameters

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

Default Value: Selected objects

InputObj String Obstacle object

Examples

VBScript Example

'Create a particle obstacle
set myParticleCloud = CreateParticleCloud()
set myParticleEmitter = CreatePrim( "Sphere", "MeshSurface", "ParticleEmitter" )
AddParticleEmitter myParticleCloud, myParticleEmitter
set myParticleObstacle = CreatePrim( "Sphere", "MeshSurface", "ParticleObstacle") 
AddParticleObstacle myParticleCloud, myParticleObstacle

See Also

CreateParticleCloud ApplyParticleShader AddParticleEmitter AddParticleObstacle AddParticleForce Particle ParticleCloud ParticleType