ClassName (Application)
Description
Returns the class name of a Softimage object. The name returned is the most derived class supported by the object.
For example, as shown in the hierarchy information, a ClusterProperty supports SIObject, ProjectItem, Property, and ClusterProperty. Because ClusterProperty is the last class listed (the "leaf" or "most-derived") it is the name returned by this method.
This method is very important for determining what type an object is and what Object Model methods and properties are available on it.
Unlike SIObject.Type, this method is available for all objects including non-SIObject ones like SIVector3, PPG, and Image.
In some cases calling this method may not return enough information to fully distinguish between different types of objects. For example, various geometries, lattices, forces all return X3DObject as their ClassName.
Note: This method returns the same information as TypeName(obj) in VBScript and can be used by languages that do not support the TypeName() function. However unlike VBScript's TypeName(), this method fails when passed strings, numbers and other standard data types. It only works for actual Softimage objects.
Note: With each release of Softimage more objects are added to the Object Model, which adds new classes to the hierarchy. This means that the value returned by this method may start returning a new ClassName, which could potentially break existing scripts that were hardcoded to expect certain behavior from this method.
Scripting Syntax
Application.ClassName( Object )
C# Syntax
String Application.ClassName( Object in_pObject );Parameters
|
Parameter |
Type |
Description |
|
Object |
Object |
Object to describe |
Return Value
See Also
Examples
• See Application.ClassName.1.js
• See Application.ClassName.2.pys
Autodesk Softimage 2011