User Guide
ADOBE ATMOSPHERE 345
User Guide
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 = 0;
coneIns.renderLayer = 1;
boxIns.renderLayer = 2;
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();










