Grasshopper

algorithmic modeling for Rhino

C# Script-component and 'Memory load *.GHA assemblies...'

Dear all,

I am currently trying to use Grasshoppers C# Script-component to access and work with classes provided by the assembly 'karamba.gha' which is part of Karamba.

In order that it works one needs to uncheck the ''Memory load *.GHA using COFF byte arrays''-option in the Grasshopper Developer settings dialog. Otherwise the system does not recognize that the 'karamba.gha' assembly selected for the C# Script-component and that loaded on startup of GH are the same. The following error message then results when casting objects:

Is there an elegant way to run such scripts without having to manually deactivate the ''Memory load *.GHA using COFF...'' option?

Best,

Clemens

Views: 1205

Replies to This Discussion

Hi Clemens,

I suspect the whole memory loading thing is going to change soon. What I'd like to do is always load from disk and then switch to memory loading in a last ditch attempt if there's a weird error.

In the meantime, the COFF loading is a setting which is stored inside the Grasshopper xml settings and can be accessed via the Grasshopper SDK. Unfortunately changing the setting after GHAs have been loaded is obviously not going to do much good. 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thank you for your reply.

Best,

Clemens

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service