ICEAttribute

Object Hierarchy | Related C++ Class: ICEAttribute

Inheritance

SIObject

ICEAttribute

Introduced

v7.0

Description

ICEAttribute contains the information describing an attribute data set that belongs to scene objects such as geometries and properties. ICEAttribute objects can be accessed through Geometry.ICEAttributes and ProjectItem.ICEAttributes. Note: ICE is pretty strict about optimization so if an attribute is not being used to drive something visible in the scene, it will not get pulled. You must force ICE to require the underlying attribute in order to access the %ICEAttribute object.

Methods

GetDataArray2DChunk GetDataArrayChunk IsClassOf operator IsEqualTo operator

Properties

Application AttributeCategory Categories ContextType
CustomDataTypes DataArray DataArray2D DataType
ElementCount FullName operator Help IsConstant
IsDefined IsReadonly Name operator NestedObjects
Origin OriginPath Parent StructureType
Type operator      
       

Examples

Python Example

#
# This example shows how to access all attributes on a geometry.
#
from win32com.client import constants
xsi = Application
xsi.CreatePrim("Cone", "MeshSurface", "", "")
attrs = xsi.Selection(0).ActivePrimitive.Geometry.ICEAttributes;
for attr in attrs:
	xsi.LogMessage( "*******************************************************************" )
	xsi.LogMessage( "Name: " + attr.Name )
	xsi.LogMessage( "DataType: " + str(attr.DataType) )
	xsi.LogMessage( "StructType: " + str(attr.StructureType) )
	xsi.LogMessage( "ContextType: " + str(attr.ContextType) )
	xsi.LogMessage( "IsDefined: " + str(attr.IsDefined) )	
	xsi.LogMessage( "IsConstant: " + str(attr.IsConstant) )	
	xsi.LogMessage( "Readonly: " + str(attr.IsReadonly) )
	xsi.LogMessage( "AttributeCategory: " + str(attr.AttributeCategory) )
	xsi.LogMessage( "Element count: " + str(attr.ElementCount) )