Grasshopper Player hooked

Hi,
I’m trying to elaborate some custom tools in Grasshopper, and use them with grasshopper player and/or compiling them into plug-in via Grasshopper ScriptCompiler.

Evrything works well into grasshopper document, but when I use the Player (including context bake component) or the rhp plug-in, evrything is right on the first run, but the second time I play the solution, it seems to calculate data from previous run, and it also keep render the solution in viewport, even if I didn’t picked any geometry for the new run. I hope I explained the problem clearly.

It also happen with the wall solution example downloaded from:

Thanks in advance for help

1 Like

Im experiencing the same issue.

Is any way to clean the “cache, memory …” after each Grasshopper player execution?

Thank you.

Which version of Rhino are you running?
I believe this issue was fixed recently. I’m not certain right now which version the fix went into, but try updating to the latest R7 service release candidate, or R8 WIP.

I had Version 7 SR11 and have upgraded to: 7.11.21293.9001, ( 7.12.21292 is latest release candidate).

Actually it improved the performance, but not fully solved the problem. I’ll wait for regular release fix then.

Thank you¡

Hi there,

I’m having the same issue. Tried to find a solution but all i found, was several people reporting the same problems.
My conclusion so far is, it only happens only when Grasshopper has been open since I started Rhino.

Here are other posts for this problem:

How to close or disable grasshopper player preview after use? - Grasshopper - McNeel Forum

Is there a way to get someone from McNeel to have a look into it? They thought they’ve fixed it with an older release, but it still exists.

Thanks for your help!

I bypass redraw, so preview is set to off
and Yes should by fixed as quickly as possible.

Hi -

As you might have seen in related threads, we have looked into this but haven’t been able to reproduce the issue. I’ve been trying again now, using different versions of Rhino on both Windows and Mac, using several of the definitions that are referred to in those threads. I can’t make this happen. If you have detailed steps and a definition, I’m happy to try more…
-wim

1 Like

I created a simple file. To reproduce follow these steps:

  • start rhino
  • draw some geo
  • start grasshopper player and follow the steps
  • do it twice with different numbers or different geo
  • now start grasshopper => the ghosting starts

Me with clean Rhino and Grasshopper Player:
only the actual choosen objects are previewed

open grasshopper - an all the last states are previewed (thats what I mean by ghosting):

Grasshopper Player used again: third set of objects to be seen:

To lock the solver didn’t help. Closing grasshopper doesn’t help. Only closing and reopening Rhino helps.

I hope with this instructions you’ll be able to reproduce the problem?

I’ve got version 7.12 Rhino (Rhino 7 SR12 2021-11-9 )

ghosted_preview.gh (6.5 KB)

How do you bypass it?

Hi Jess -

I’m afraid not, no.


-wim

even with different preview options it’s like this with my RH

First I thought it’s because I usually don’t use a context bake and just jump out of the process.
Or because of the use of certain plugins…
Or because it doesn’t like blocks…
But neither exclusion helped.

But i’ll keep trying. As soon as I might find something, I’ll let you know :slight_smile:

@wim
Open Rhino (here 7.13)
Open Grasshopper and close Grasshopper
Run GhPlayer (example by Jess) definition
and other when values are entered, there is not automatic redraw refresh, except when I click in the window.
Ghost

@interkinactive
Preview was set to off, value input does not generate visual feedback, sadly
ghosted_preview.gh (6.4 KB)

Hello Wim,

I set a relevant example using only python script in this thread :

I made a GrasshopperPlayerOnce Rhino command if you need. Have a look here:

By the way, for a V2 I succeeded to adapt the c# script in a ghpython, it would be great to make a python script directly. If the issue is not solved until then :smiley:

Hello, the problem of ghosted preview is related to Remote Control Panel
If you close it from Rhino or Unselect it from Grasshopper > View the ghosted preview disappears

1 Like

Confirm it here, thanks @anon39580149
But there is not automatic redraw refresh,, example when i enter new distances then for display refresh I need to move the viewport briefly.

I think that the developers must do something with RCP and fix this error

Try this simple code with python and plug it to the output

1 Like

@anon39580149 ok, tested, nothing happens without moving viewport.
Worked, i forgot brackets, painless solution, thank you :+1:

To avoid ghosted preview without close RCP

image