Compiled gh file ignores CustomPreview

Hi all,

I have a grasshopper file using HumanUI which works great. When I compile it to a .rhp, it seems to install fine, and even functions normally (there’s a “bake” that returns the proper geometry). But the .gh file has a CustomPreview component so you can see the model prior to baking. This preview is the only thing that is not working.

Additionally: If I use the plugin without the preview and then close it (by closing the HumanUI window), everything is fine until I re-run the plugin. I get an error message when I try to run the plugin a second time: “No output contextual components in definition.”

Is there a trick to get the CustomPreview component to work with a compiled .gh/.rhp?

tx,

dh