User Guide

ADOBE ATMOSPHERE 339
User Guide
Viewpoint Object Structure
MTSBaseObject
These methods are inherited by all Viewpoint objects, and are useful for determining basic information about the
object in question.
Methods
getBaseMetatype()
Returns an integer that describes the Viewpoint type of the object’s base class.
if ( a.baseMetatype() != b.baseMetatype() )
{
chat.print(“Not the same base type”);
}
getBaseMetatypeName()
Returns the Viewpoint base type as a 4-character string.
chat.print( “Object base type = “ + a.getBaseMetatypeName() );
getMetatype()
Returns an integer that determines the Viewpoint type of the object.
if ( a.metatype() != b.metatype() )
{
chat.print(“Not the same type”);
}
getMetatypeName()
Returns a string that contains the Viewpoint type of the object as a 4-character string.
chat.print( “Object type = “ + a.metatypeName() );
getName()
Returns the name of the object.
chat.print( “This object is called “ + object.getName() );
getProperty(index or name)
Returns the value of a Viewpoint internal property either by index or via the 4-character name returned by
getPropertyName(); below.
scale = object.getProperty(‘scl_’);
// - or -
scale = object.getProperty(2);
getPropertyCount()
Returns the number of properties for that object.