MoI discussion forum
MoI discussion forum

Full Version: Keyboard shortcut to Open edit size flyout

From: shayno
21 Mar 2019   [#1]
I import and resize a lot of objects and I wish to select a solid then use a keyboard shortcut to open the edit size flyout with either the X or the Y highlighted
perhaps a second keypess to toggle between the x and the Y
is this possible ?
Many thanks
shayne
From: Michael Gibson
21 Mar 2019   [#2] In reply to [#1]
Hi shayne, if you set this up on a keyboard shortcut it should launch the edit size flyout:

script: /* Show edit size menu */ var pp = moi.ui.propertiesPanel; if (pp.show && pp.numSelectedObjects > 0) { moi.ui.findElement( 'PropSizeContainer' ).onmousedown(); }

When the flyout is open you can just start typing numbers and keyboard focus will automatically go to the first field. You can also press Tab to put focus on the first field and also use Tab to move focus to the next field.

Hope that does what you want!

- Michael
From: shayno
24 Mar 2019   [#3]
Thanks Michael

I am using ver 3 and get this error




thanks
shayne

Image Attachments:
ScreenShot125.jpg 


From: Michael Gibson
24 Mar 2019   [#4] In reply to [#3]
Hi shayne, sorry yeah that one needs v4. Here is a version that should work with either V3 or V4 :

script: /* Show edit size menu */ var pp = moi.ui.propertiesPanel; if (pp.show && pp.numSelectedObjects > 0) { moi.ui.sidePane.PropSizeContainer.onmousedown(); }

- Michael
From: shayno
26 Mar 2019   [#5]
Thanks Michael

perfect
cheers
shayne