Introduced
3.0
Description
Connects an initial state to a particle simulation.
Scripting Syntax
ConnectParticleInitState( InputObj, InitCloud )
Parameters
|
Parameter |
Type |
Description |
|
InputObj |
The particle cloud that is simulated or the simulation operator |
|
|
InitCloud |
The particle cloud acting as the initial state |
Examples
VBScript Example
' ' Demonstrates creating, disconnecting and connecting an initial state to a particle simulation ' NewScene , false ' First, create a particle cloud set myParticleCloud = CreateParticleCloud()(0) set myParticleEmitter = CreatePrim( "Sphere", "MeshSurface", "ParticleEmitter" ) AddParticleEmitter myParticleCloud, myParticleEmitter ' Go to frame 40 and create an initial state for the cloud SetValue "PlayControl.Key", 40 SetValue "PlayControl.Current", 40 refresh SetParticleInitState myParticleCloud , 1 ' Disconnect that initial state DisconnectParticleInitState myParticleCloud ' Get the initial state property set InitState = Dictionary.GetObject(myParticleCloud & "_InitState") ' Reconnect the initial state ConnectParticleInitState myParticleCloud, InitState
See Also
Autodesk Softimage v7.5