How to get current frame in code

I wanna make a button that saves the frame, and when you press another button it takes you to that frame. how do I get that frame?

You should be able to use the value project.currentFrameNumber.

Fun fact, you can also use the value project.currentFrameName to get the name of the active frame on the highest layer!

1 Like

thanks so much! it really helped me. (iā€™m making a pause button and continue button for le tingy 2, where it saves your progress and time)