Skip to main content
Inspiring
May 1, 2025
Question

JSFL or CEP: trigger Fit in Window (or fire off a keyboard shortcut?)

  • May 1, 2025
  • 0 replies
  • 91 views

i'm working on a custom extension to speed up my workflow. Click a single button, do a bunch of stuff.

 

One of the things i want to automate as part of that batch is to fit the Scene view in the window.  There are multiple different ways to do this as a user:

1. Click View > Magnify > Fit in Window in the menu

2. Double-click the Hand icon

3. Select "Fit in Window" from the zoom dropdown on the Scene panel

i have the menu method mapped to a keyboard shortcut, so that's another way to go about it. 

i just need a way to somehow trigger that functionality from my CEP extension (whether by hitting one of the above methods, or triggering that keyboard shortcut, or running a JSFL Command that triggers a keyboard shortcut, or SOMETHING... i'll even hit an autohotkey script if i need to) but i'm completely stuck as to how to do it. Is it possible?

- Ryan