New macros conflict with Nudge and cause camera issues through ZoomLens

Rhino 8 Commercial
Version 8.12.24282.07001

Hello,
With the latest update it seems there were camera controls added in the keyboard options using Ctrl+PageUp/Down and Shift+PageUp/Down.
First of all, this causes a conflict with the nudge commands setup in the modelling aids.

Second: When pressing Shift+PageUp/Down (we have it set to nudge 5mm in modeling aids), it triggers the following error:

*Command: '_ZoomLens
Click and drag in perspective viewport to adjust lens length, or type lens length ( In Out ): _Out
Cannot adjust camera lens length in parallel viewport.
*
After this the camera does not function properly anymore while running another command, after attempting pan/rotate/zoom, the view will snap back to the initial position. The command however does react as if the camera has been updated, for example while placing points or using scale or rotate functions. After finishing the command the camera will update to its final position.
Besides this behaviour both the crosshair and guiding lines are not visible while running commands. Any points placed while for example drawing a curve are not visible while the command is running.

To reproduce:

  • Open a rhino file
  • Set your Shift nudge to 5mm in modelling aids if not set already
  • Press Shift+PageUp or Down to trigger the error
  • draw a curve and try to place points and manipulate the camera while running the command.
  • finish the command

Our solution for now is to delete the added keyboard commands to restore the nudge functionality.

I can see that if you change the default nudge setting. Normally you need to use Alt to nudge

1 Like

This is correct. The error and subsequent behaviour still gets triggered by running Zoomlens however. It seems both are seperate issues.

Hey Gijs,

Hopefully you can still take a look at this. Because the problem caused by double key bindings by using standard rhino options is still there. We can now manually solve this, but gives trouble with new installtions.

regards Reinder

Which EVERYONE changes first thing. The rationale for that being the default is really sketchy, trying to help hapless users who just randomly pound the keyboard from screwing up their obviously otherwise pristine geometry. The ability to rotate the view with the keyboard is something that would normally be an obscure accessibility feature.

I have no issue removing those from the defaults, I don’t even know why these were added.
RH-84449 Zoomlens keyboard shortcuts cause conflicts with nudge

Yes, and: When you run ZoomLens and click the In or Out option from the command bar, it triggers weird camera behaviour during commands as explained in my original post.

After investigation, these zoomlens shortcuts have been in Rhino forever, so this won’t be fixed.
The only difference in Rhino 8 is that they are now exposed.

That is expected behavior, there is no lens length in orthogonal views. Probably you are hovering over the top view when you are reaching for that command option?

@Gijs This behavior is new, due to the addition of the keyboard macros for Shift + PgDn and Shift + PgUp, which overide the usual behavior.

Without the keyboard macros the response to Shift + PgDn or Shift + PgUp depends on the Nudge keys setting. V7 and earlier did not have keyboard macros.

With the keyboard macros the response to Shift + PgDn or Shift + PgUp is always ZoomLens, independent of the Nudge setting.

No keyboard macros for Shift + PgDn or Shift + PgUp:

“Arrow keys” selected: Shift + PgDn and Shift + PgUp function as nudge keys. (Lens zoom is not affected.)**

“Alt + arrow keys” selected: Shift + PgDn and Shift + PgUp change the lens zoom.

Why were the keyboard macros for Shift + PgDn and Shift + PgUp added as defaults? What problem do they solve?

Did you test this? It seems these shortcuts were always there, just not listed, see YT
Edit:
It also seems that they were overridden when the nudge keys were set to not using Alt.
I’ve reopened the YT

Yes, I checked V7 and V4. No keyboard macros.

Correct.
The keyboard macros in Options > Keyboard which were recently added override the override.

In V8 without the keyboard macros the short cuts are still overridden when the nudge keys were set to not using Alt - just like in V7 and previous. No changes to code needed.

Remove the keyboard macros as default and the problem is solved. If someone needs to override the override they can easily add the keyboard macros.