Solidobject - Adobe ATMOSPHERE User Manual

Table of Contents

Advertisement

"object", //type - see the Inspector Palette drop down menu
//for property types available.
"target", //name - specify a unique name for each property.
null,
//value - the default value you would like to assign.
false,
//referenced - whether or not this property will be visible
//in the Scene Hierarchy palette.
true
//modify - whether or not this property can be modifi ed
);
getCustomPropertyCount()
Returns the count of the custom properties and actions created in the top section of the script (between the key
comment lines "//BEGIN_AUTHORING_PROPERTIES" and "//END_AUTHORING_PROPERTIES").
for ( i = 0; i < this.getCustomPropertyCount(); i++ )
{
... //do task for each property
}
getCustomPropertyName(index)
Returns the custom property name at the index specifi ed in the array of custom properties.
this.Name2 = this.getCustomPropertyName(2);
getCustomPropertyValue(name)
Likely the most common of the methods to be used. Retrieves the value for the property of known name. If the
user has modifi ed the default value using the Inspector Palette, the modifi ed value will be returned (it's stored in
both the ".atmo" project fi le and the ".aer" published fi le).
this.target = this.getCustomPropertyValue("target");
setCustomPropertyValue(name, value)
It's also possible to set the local variable for custom properties using this call.
this.setCustomPropertyValue("volume", "0.7");
callCustomPropertyValue(name)
Will trigger a custom action (function):
if (userAnswer = true)
{
callCustomPropertyValue("playSound");
}

SolidObject

A SolidObject is used to represent the surface that results from combining a number of primitives specifi ed in the
Builder. These can include subtractive and additive primitives, allowing for holes etc. The primitives within a solid
object are held rigidly relative to each other. However, the entire solid object may be manipulated using its orientation
315
ADOBE ATMOSPHERE
User Guide

Advertisement

Table of Contents
loading

Table of Contents