How to set position of object in panel reference?
Posted: Fri Oct 05, 2018 1:18 am
Hi all,
We have one panel which contains a rectangle (Panel_1). This panel is referenced inside another panel (Panel_2).
We would like to set the position of the rectangle in a script on Panel_1 using something like "this.position(x,y);"
However, we would like the coordinates (x,y) to refer to the coordinates inside Panel_1, not Panel_2. So in this case, if multiple examples of Panel_1 are referenced, they would all be visible in their own location, not moved all to the same position.
Instead, what happens is that the coordinates refer to the location within Panel_2, and the rectangles all end up in exactly the same position.
Is there a way to make position commands refer to the position within the original panel? I've explored the panel reference options and documentation, and haven't managed to find anything.
Kind regards,
Angus Heyworth
We have one panel which contains a rectangle (Panel_1). This panel is referenced inside another panel (Panel_2).
We would like to set the position of the rectangle in a script on Panel_1 using something like "this.position(x,y);"
However, we would like the coordinates (x,y) to refer to the coordinates inside Panel_1, not Panel_2. So in this case, if multiple examples of Panel_1 are referenced, they would all be visible in their own location, not moved all to the same position.
Instead, what happens is that the coordinates refer to the location within Panel_2, and the rectangles all end up in exactly the same position.
Is there a way to make position commands refer to the position within the original panel? I've explored the panel reference options and documentation, and haven't managed to find anything.
Kind regards,
Angus Heyworth