User Guide
900 Chapter 14: Properties
Example
This example assigns the number of sound channels of the SWA streaming cast member Duke
Ellington to the field cast member Channel Display:
-- Lingo syntax
myVariable = member("Duke Ellington").numChannels
if myVariable = 1 then
member("Channel Display").text = "Mono"
else
member("Channel Display").text = "Stereo"
end if
// JavaScript syntax
var myVariable = member("Duke Ellington").numChannels;
if (myVariable = 1) {
member("Channel Display").text = "Mono";
} else {
member("Channel Display").text = "Stereo";
}
numParticles
Usage
member(whichCastmember).modelResource(whichModelResource).\
emitter.numParticles
modelResourceObjectReference.emitter.numParticles
Description
3D property; when used with a model resource whose type is #particle, allows you to get or set
the
numParticles property of the resource’s particle emitter. The value must be greater than 0
and no more than 100000. The default setting is 1000.
Example
In this example, ThermoSystem is a model resource of the type #particle. This statement sets the
number of particles in ThermoSystem to 50000.
member("Fires").modelResource("ThermoSystem").emitter.\
numParticles = 50000
See also
emitter
numSegments
Usage
member(whichCastmember).modelResource(whichModelResource).\
numSegments
Description
3D property; when used with a model resource whose type is #cylinder, allows you to get or set
the numSegments property of the model resource.
The
numSegments property determines the number of segments running from the top cap of the
cylinder to the bottom cap. This property must be greater than or equal to the default value of 2.