User Guide
148 Chapter 8: 3D Objects
Motion
Represents a predefined animation sequence that involve the movement of a model or a
model component.
Individual motions can be set to play by themselves or with other motions. For example, a
running motion can be combined with a jumping motion to simulate a person jumping over
a puddle.
You can create a reference to a motion by using the
motion property of the 3D Member object.
The
motion property gets the motion at a specified index position in the list of motions. In
Lingo, you use the
motion property directly from the 3D Member object to create a reference. In
JavaScript syntax, you must use the
getPropRef() method to create a reference.
The following example creates a reference to the fourth motion of the 3D cast member
athlete
and assigns it to the variable
myMotion.
-- Lingo syntax
myMotion = member("athlete").motion[4]
// JavaScript syntax
var myMotion = member("athlete").getPropRef("motion", 4);
Renderer Services
Represents the global object that contains a property list whose values impact common rendering
properties for all 3D cast members and sprites.
You can access the global renderer services object using the top level
getRendererServices()
function.
The following example accesses the renderer property of the global renderer services object and
assigns the value to the variable
myRenderer.
-- Lingo syntax
myRenderer = getRendererServices().renderer
// JavaScript syntax
var myRenderer = getRendererServices().renderer;
Method summary for the Renderer Services object
Property summary for the Renderer Services object
Method
getHardwareInfo()
Property
modifiers
primitives
renderer
rendererDeviceList
textureRenderFormat