User Guide
523
radius
Syntax
modelResourceObjectReference.radius
member(whichCastmember).modelResource(whichModelResource).radius
Description
3D model property; when used with model resource of type #sphere or #cylinder, allows you to
get or set the radius of the model.
The
radius property determines the sweep radius used to generate the model resource. This
property’s value must always be set to greater than 0.0, and has a default value of 25.0.
Example
This example shows that the radius of the model resource Sphere01 is 24.0:
put member("3D World").modelResource("Sphere01").radius
-- 24.0
ramNeeded()
Syntax
ramNeeded (firstFrame, lastFrame)
Description
Function; determines the memory needed, in bytes, to display a range of frames. For example,
y o u c a n t e s t t h e s i z e o f f r a m e s c o n t a i n i n g 3 2 - b i t a r t w o r k : i f
ramNeeded() is larger than freeBytes(),
then go to frames containing 8-bit artwork and divide by 1024 to convert bytes to kilobytes (K).
Examples
This statement sets the variable frameSize to the number of bytes needed to display frames 100 to
125 of the movie:
put ramNeeded (100, 125) into frameSize
This statement determines whether the memory needed to display frames 100 to 125 is more
than the available memory, and, if it is, branches to the section using cast members that have
lower color depth:
if ramNeeded (100, 125) > the freeBytes then play frame "8-bit"
See also
freeBytes(), size