07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling appearance<br />

Saving a particle system<br />

There are two ways you can save the Particle system that you have created:<br />

If you use the member3D.saveWorld() command, then save your movie, <strong>Director</strong> saves the current state of your<br />

world, including the state of any Particle system that you have created. See Saving the 3D world for more details.<br />

Saving the entire world may not be practical, especially if you want to compare slight variations in the Particle<br />

system that you are working on. The alternative is to save the current state of a Particle system as a property list,<br />

and then use that property list to regenerate the Particle system at a later time. The Particles.dir movie uses the<br />

second system to generate the different demonstration Particle systems. It includes a script named Particle Script,<br />

which has two main handlers:<br />

Particle_GetScriptText(a3DMember, aParticleName)<br />

Particle_SetProperties(a3DMember, aParticleName, aPropList). You can use the first to generate a string that<br />

you can paste into a Script member. This will create a new script. Calling the Particle_GetPropertyList() handler<br />

of this new script returns a property list that you can use with the Particle_SetProperties() handler of the Particle<br />

Script.<br />

Using the Particle Script<br />

To test this for yourself, you can follow the steps below.<br />

Creating a new script that will regenerate a Particle modelResource<br />

1 Make some changes to the properties of the Particle Test modelResource.<br />

Last updated 8/26/2011<br />

198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!