I get that I can obtain an object's .ActivePrimitive.ICETrees and it
lists me them, but how do I know which are simulated? How can I tell
where they are in the stack?
Any help appreciated.
Cheers,
-- Alan
For anyone curious, my Python solution follows:
# ---------------------------------
xsi = Application
obj = xsi.Selection(0)
markers = ["secondaryshapemarker","postsimulationmarker","simulationmarker","animationmarker","shapemarker","modelingmarker"]
opstack = obj.ActivePrimitive.ConstructionHistory
for op in opstack:
if any([op.FullName.endswith("."+marker) for marker in markers]):
lastMarker = op.FullName
if xsi.ClassName(op) == "ICETree":
print op.FullName+" is under marker: "+lastMarker.split(".")[-1]
# ---------------------------------
Thanks Stephen! (and Xavier at the studio. ;)
-- Alan