I have just come across the same issue, this time when trying to use rhinoscript syntax and a button to switch from layoutspace to model space and back again.
This is necessary in order for me to bake objects into model space and prevent them from baking into layout space.
Here is a minimal example. The problem occurs when you go into the layout, so the layout is the active view, and then run the script.
MouseClickNotWorking.3dm (150.3 KB)
MouseClickNotWorking_V0.0.gh (7.2 KB)
Here is my system info:
Rhino 7 SR8 2021-7-15 (Rhino 7, 7.8.21196.05001, Git hash:master @ 45c1fd6dc85c7c1cce8c0bbe6f3e16481ae9abfa)
License type: Commercial, build 2021-07-15
License details: Cloud Zoo
Windows 10.0.19042 SR0.0 or greater (Physical RAM: 64Gb)
Computer platform: LAPTOP - Plugged in [100% battery remaining]
Hybrid graphics configuration.
Primary display: Intel(R) UHD Graphics (Intel) Memory: 1GB, Driver date: 9-5-2020 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptopās integrated screen or built-in port
- Secondary monitor attached to adapter port #1
Primary OpenGL: NVIDIA Quadro RTX 4000 with Max-Q Design (NVidia) Memory: 8GB, Driver date: 7-7-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 462.98
> Integrated accelerated graphics device with 4 adapter port(s)
- Video pass-through to primary display device
OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPUās maximum)
Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High
Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 7-7-2021
Driver Version: 27.21.14.6298
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8 GB
Rhino plugins that do not ship with Rhino
C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\V7\VRayForRhino.rhp āV-Ray for Rhinoā
Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp āCommandsā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp āRenderer Development Kitā
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp āRhino Renderā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp āRDK_EtoUIā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp āRenderer Development Kit UIā
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp āSnapshotsā
C:\Program Files\Rhino 7\Plug-ins\IronPython\RhinoDLR_Python.rhp āIronPythonā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp āRhinoCyclesā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\Grasshopper\GrasshopperPlugin.rhp āGrasshopperā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp āToolbarsā 7.8.21196.5001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp ā3Dconnexion 3D Mouseā
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp āDisplacementā