Adobe ATMOSPHERE User Manual page 345

Table of Contents

Advertisement

box = SceneGroup("./box.aer");
box.orientation = anchor.orientation;
position
The position (or min of bounds) of the Primitive in the world, expressed as a Vector.
anchor = stageModel.getPrimitive("anchorPoint");
box = SceneGroup("./box.aer");
box.position = anchor.position;
transform
The Transform of the Primitive representing the combined position and orientation. Presently this only applies
to Entrypoints and Anchors.
anchor = stageModel.getPrimitive("anchorPoint");
box = SceneGroup("./box.aer");
box.transform = anchor.transform;
name
The name attached to the primitive in the Builder.
if (foo.name == 'Head') { ... }
visibleInActorView
The boolean fl ag that mirrors the checkbox in the Builder "Visible in Actor View".
if (foo.visibleInActorView)
{
chat.print("Primitive is visible");
}
subtractive
The boolean fl ag that mirrors the checkbox in the Builder "Subtractive".
if (foo.subtractive)
{
chat.print("Primitive is subtractive");
}
bounds
The min and max extent of the Primitive in local coordinates, relative to the Primitive's SceneGroup's Eye
position and orientation, expressed as an array of two Vectors [min, max].
min = foo.bounds[0];
max = foo.bounds[1];
333
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents