Modify hierarchy nodes with MenuButton's items

Godot Version

3.5.1

Question

Hi everyone! :wave:

I’m trying to do something that should be easy at first, but I can’t find the way. I’m creating a MenuButton with its items to add it to Godot’s UI with the intention of modifying an animation’s keyframes but apparently MenuButton can’t talk with the scene tree, so I don’t know what I could do.

I want to create several scripts to make my life easier for editing the games, but something as basic seems impossible :S

Is there a way to achieve this???

Thanks in advance!