#✅ | Get Element IDs of Element and it's Parent

1 messages · Page 1 of 1 (latest)

olive sundialBOT
#

You can absolutely do that—just grab the button’s identifier (right-click it → Copy Element Identifier per the Element Identifiers page) and then use placeholders for its position/size (see the Placeholders page, specifically elementposx and elementwidth).
For example, give your floating text an X position like:

{"placeholder":"calc","values":{"decimal":"true","expression":"{"placeholder":"elementposx","values":{"id":"your_button_id"}} + {"placeholder":"elementwidth","values":{"id":"your_button_id"}} + sin(tickCount*0.1)*10"}}

Replace your_button_id with the ID you copied and tweak the sine math (sin(...) * amplitude) to control the sway. That way the text always sits right next to the button without manual offsets. 😊

#

Unfortunately there isn’t a built-in variable that magically exposes “parent” IDs—FancyMenu doesn’t track a parent/child relationship that you can query that way. You’ll still need to manually copy the button’s identifier (right-click the element → Copy Element Identifier) and paste it into the placeholder where you need it (like elementposx/elementwidth).
If you want to reuse the text+button combo elsewhere, just duplicate both elements in the editor so the text keeps pointing at the specific button ID it’s meant to follow. That’s the only reliable way to keep their relationship intact across layouts.

#
Thread Marked as Solved

This support thread has been marked as solved by @torpid grail.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!