I'm looking for some way to determine the relative order of objects. So, given Object A and Object B, I want to know which one is in front of the other.
I'm aware that I can change the order, e.g., deliberately move Object A immediately in front of or immediately behind Object B, but that's not what I want to do.
My immediate goal here is to be able to change the order to put a particular object behind a specified shaperange (e.g., put it immediately behind the "back-most" shape in a shaperange).
I would look at
Thank you for the suggestion, Mek.
Shape.ZOrder appears to give me useful information about object order within a layer. The problem is that I want to be able to work with objects across multiple layers.
I thought that I could get what I need by using Shape.Layer.AboluteIndex to check layer order, then Shape.ZOrder if the shapes are on the same layer.
However, Shape.Layer.AbsoluteIndex does not appear to return the correct result for a Master layer! It appears to return the same value as Shape.Layer.Index.
how about shape.TreeNode
Tested Shape.Layer.AboluteIndex on 2f019 and got unique number for each layer