How do I get a target's parent reference frame item? Meaning its direct parent frame, that is shown in the GUI by default under "Target position with respect to:"of the target properties window.
I tried
at first, but that fails if a target is in a folder.
A way that seems to work is:
which gets the first of all subsequent reference frames for a target.
Is there a cleaner way to get the frame item?
Kind regards,
Maarten
I tried
Code:
target.Parent()
A way that seems to work is:
Code:
frame = robolinkutils.getAncestors(target,robolink.ITEM_TYPE_FRAME)[0]
Is there a cleaner way to get the frame item?
Kind regards,
Maarten