Object Hierarchy | Related C++ Class: ICEAttribute
ICEAttribute
v7.0
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.
# # 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) ) |