Grasshopper Player running GH file repetitively

Hello,

I am noticing an issue with the -GrasshopperPlayer command. First some background:

  • I am Building a toolbar with buttons that run Grasshopper definitions via the -GrasshopperPlayer command.
  • If I open Rhino and press the button, it runs the Grasshopper definition (herein DEF1) no problem

Now the problem:

  • If I open DEF1 in Grasshopper, save and close it, and then (in the same session of Rhino) click the button from the toolbar that runs DEF1 via -GrasshopperPlayer, it will run over and over (probably a total of 10 times, but most times I shut it down since it is making an API call).
  • Sometimes if I click a different button in the toolbar that doesn’t even run DEF1, it will still run DEF1 over and over simply because I had opened it during that Rhino session.

Again, if I don’t open any GH definitions directly during the session, all is well. It is only when running a GH file via a toolbar button, when it was opened previously in GH, that I have this issue. Not sure if it matters, but each GH definition uses multiple Hops components.

Clear as mud? Let me know if I should record a video to demonstrate and if you have any questions.

Thanks,
Joseph

Hi Joseph -
In a quick test, I’m not seeing that here.
Could you please run the Rhino SystemInfo command and copy-paste the result here?
-wim

Hi Wim,

Thank you for your response. I have been doing some testing as well, and I think I have isolated the issue to the GH definitions that have multiple Hops components. These Hops components make callouts to an API service (Autodesk Forge), and sometimes it can take a while to get a response. I will try to create the simplest example that does what I described and upload it.

Here is my SystemInfo

Rhino 7 SR18 2022-5-4 (Rhino 7, 7.18.22124.03001, Git hash:master @ b2a1120bcb32e1f6da66a421cd7162a18a9f0cd9)
License type: Not For Resale Lab, build 2022-05-04
License details: Cloud Zoo

Windows 10.0.19044 SR0.0 or greater (Physical RAM: 32Gb)

Computer platform: LAPTOP  - Plugged in [97% battery remaining]

Non-hybrid graphics configuration.
  Primary display and OpenGL: NVIDIA Quadro P1000 (NVidia) Memory: 4GB, Driver date: 12-13-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 472.91
    > Integrated accelerated graphics device with 4 adapter port(s)
        - Secondary monitor is laptop's integrated screen or built-in port
        - Windows Main Display attached to adapter port #1

Secondary graphics devices.
  Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 11-15-2021 (M-D-Y).
    > Integrated graphics device with 3 adapter port(s)
        - Secondary monitor is laptop's integrated screen or built-in port

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: 12-13-2021
  Driver Version: 30.0.14.7291
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 4 GB

Rhino plugins that do not ship with Rhino
  %USERPROFILE%\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\Bullant\1.5.11.0\bullant.rhp	"bullant"	1.5.11.0
  %USERPROFILE%\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\ColorPicker\6.0.0\ColorPicker.rhp	"ColorPicker"	
  %USERPROFILE%\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\EleFront\4.2.2\ElefrontProperties.rhp	"ElefrontProperties"	1.0.0.0
  %USERPROFILE%\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\NVIDIADenoiser\0.4.1\NVIDIADenoiser.Windows.rhp	"NVIDIADenoiser.Windows"	0.4.1.0

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 7\Plug-ins\Commands.rhp	"Commands"	7.18.22124.3001
  C:\Program Files\Rhino 7\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	7.18.22124.3001
  C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	7.18.22124.3001
  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\RhinoCycles.rhp	"RhinoCycles"	7.18.22124.3001
  C:\Program Files\Rhino 7\Plug-ins\Grasshopper\GrasshopperPlugin.rhp	"Grasshopper"	7.18.22124.3001
  C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	7.18.22124.3001
  C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp	"Displacement"	
  %USERPROFILE%\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\PanelingTools\2021.3.2.446\PanelingTools.rhp	"PanelingTools"	

Thanks,
Joseph