3D Lingo Dictionary > O-S > sizeRange |
![]() ![]() ![]() |
sizeRange
Syntax
member(whichCastmember
).modelResource (whichModelResource
).sizeRange.startmodelResourceObjectReference
.sizeRange.start member(whichCastmember
).modelResource (whichModelResource
).sizeRange.endmodelResourceObjectReference
.sizeRange.end
Description
3D property; when used with a model resource whose type is #particle
, this property allows you to get or set the start
and end
property of the model resource's sizeRange
. Particles are measured in world units.
The size of particles in the system is interpolated linearly between sizeRange.start
and sizeRange.end
over the lifetime of each particle.
This property must be an integer greater than 0, and has a default value of 1.
Example
In this example, mrFount is a model resource of the type #particle
. This statement sets the sizeRange
properties of mrFount. The first line sets the start value to 4, and the second line sets the end value to 1. The effect of this statement is that the particles of mrFount are size 4 when they first appear, and gradually shrink to a size of 1 during their lifetime.
member("fountain").modelResource("mrFount").sizeRange.start = 4 member("fountain").modelResource("mrFount").sizeRange.end = 1
![]() ![]() ![]() |