Adobe ATMOSPHERE User Manual page 357

Table of Contents

Advertisement

instance.preliteColor = [ 1, 0, 0, ]; //set to red
usePreliteColor
switches between the default value or the newly defi ned color.
instance.usePreliteColor = true; //use newly defi ned color
renderLayer
controls the order in which layers are rendered.
sphereIns.renderLayer
coneIns.renderLayer
boxIns.renderLayer
Methods
getChild(index or name)
gets the child instance specifi ed by the name or index.
childInstance = instance.getChild("Foot");
getChildCount()
gets the number of child instances
numChildren = instance.getChildCount();
getGeometry()
returns a reference to the geometry used by the instance.
geometry = instance.getGeometry();
getInstance2d
- or -
getGeometry2d()
contains the 2d text object defi ned using ‹LayerData› in an instance.
textObject = instance.getInstance2d(); //get the
‹LayerData› object
getMaterial(index or name)
gets a reference to the material with the name or index.
paintMaterial = instance.getMaterial("paint");
getMaterialCount()
gets the number of materials associated with the instance.
numMaterials = instance.getMaterialCount();
= 0;
= 1;
= 2;
345
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents