Object Hierarchy | Related C++ Class: ICETree
ICETree
v7.0
The ICETree object represents a node graph and holds all the effect nodes together. It serves as a container for objects such as ICENode and ICECompoundNode. The ICETree is attached to the Primitive being modified and acts like the evaluation entry-point for the entire graph. ICETree objects can be created with the ApplyOp command by passing the ICETree preset as argument.
#Simple example for creating a ICETree object. Application.CreatePrim("Grid", "MeshSurface", "", "") t = Application.ApplyOp("ICETree", "grid", "", "", "", 0) # The new ICETree returned by ApplyOp is encapsulated within an ISIVTCollection at position 0 Application.LogMessage( Application.ClassName( t(0) ) ) |
#Simple example for accessing a ICETree object. Application.CreatePrim("Grid", "MeshSurface", "", "") Application.ApplyOp("ICETree", "grid", "", "", "", 0) x3DGrid = Application.Selection( 0 ) trees = x3DGrid.ActivePrimitive2.ICETrees for t in trees: Application.LogMessage( Application.ClassName( t ) ) |