Determine layer positions x,y relative to other containers than the one it lives inside of
closed
F
Fredo Tan
closed
Actually we had this for a while already: functions for relative coordinates.
- toLayerX
- toLayerY
- toScreenX
- toScreenY
Learn more about the functions for relative coordinates:
https://www.protopie.io/learn/docs/formulas/functions#relative-coordinates
ProtoPie
Merged in a post:
Accessible absolute viewport coordinates of objects in a scene
Andrey Zhilin
Sometimes, when you're prototyping some really advanced custom gestures or sending touch info back and forth between two prototypes, it's required to compare touch coordinates to the bounding box of some action container, that can be within any other object with its own system of coordinates.
Since we have absolute viewport coordinates for touch points, it would be useful to just call the viewport coordinates of any object with a formula instead of a tiresome backtracking math
Claire Shin
Merged in a post:
Access screen coordinate properties of elements inside containers
davidicus x
Containers' children report their positions relative to their parent, and there's no way to get their screen positions. Especially troublesome with 3D rotated containers!