Thanks for the reply.
The main reason is to improve the efficiency of my work.
In my work, “move all frames in a layer at once” is frequently used.
To do this, I have to use the Move Tool in 2⃣ layer states.
This means that I have to go back and forth between the canvas and the timeline frequently.
Doing this over and over again was quite a burden.
I thought that if I could use a shortcut to specify 1⃣ and 2⃣ arbitrarily, I could narrow down the range of pen movement and work more efficiently.
I tried app.command.GotoNextLayer() and app.command.GotoPreviousLayer(), but they didn’t do what I was looking for because they moved the pen in the 1⃣ state.
Translated with www.DeepL.com/Translator (free version)