Mapping a shortcut to toolbar buttons in the Event Pan/Crop window

Ayal wrote on 9/10/2023, 2:05 PM

Hello,

I've recently been needing to click several of the the toolbar buttons in the Event Pan/Crop window, specifically the Move Freely, Move in X only, Move in Y only toggle. For those that don't understand what I'm talking about, this is where this toolbar is located in the Event Pan/Crop window:

Some of those buttons say that their behavior can be modified but holding down a modifier key like "Shift", "Ctrl", or "Alt", but I couldn't find a way to toggle them without having to actually click them.

I've looked through the scripting FAQ and API but couldn't really find anything that would help me, and in the "Customize Keyboard..." menu I couldn't find anything beyond being able to assign a shortcut to the Tools.Video.VideoEventPanCrop item in order to open the window. Does anyone have a solution or have a way to add this functionality?

Thanks

Comments

Grazie wrote on 9/11/2023, 12:35 AM

Some of those buttons say that their behavior can be modified but holding down a modifier key like "Shift", "Ctrl", or "Alt", but I couldn't find a way to toggle them without having to actually click them.

@Ayal - Indeed. I/We've had a similar issue with keystroke automation for the Cursor Selection. One of the Scripting Gurus set me up with a workaround. So, I'm guessing scripting, is the only way forward as well.

Good post! - I like anything that makes my VP experience quicker and less fiddly, that will allow me to get to my ideas - fast!

jetdv wrote on 9/11/2023, 11:45 AM

Cursor selection is totally different than the Pan/Crop window. Scripting cannot access those buttons.

Grazie wrote on 9/11/2023, 11:49 AM

Cursor selection is totally different than the Pan/Crop window. Scripting cannot access those buttons.

@Ayal - So, there you have it, straight from a Scripting Guru🙏

Ayal wrote on 9/11/2023, 11:51 AM

That's a shame, I might need to figure out a way to do it in AutoHotKey or something instead then... Thanks for the replies @jetdv @Grazie