I’m having trouble serialising and deserialising a custom type that I have made for Grassopper.
It’s specifically the reading that seems to be the issue. When I’m debugging with VS Read never seems to get called. Whereas Write gets called regularly. I can also confirm that everything is being properly written when inspecting the .gh file. I’m just not sure though why Read wouldn’t get called.
Also I’ve chosen to inherit from the IGH_GeometricGoo interface instead of GH_GeometricGoo<T> not sure if that might have anything to do with it.
Below I have a shortened excerpt of the class and specifically the two methods.
public class Manipulator : IGH_GeometricGoo
public bool Read(GH_IReader reader)
this.Name = reader.GetString("Name");
this.Manufacturer = (Manufacturer)reader.GetInt32("Manufacturer");
Plane bPlane = new Plane();
GH_Convert.ToPlane(reader.GetPlane("RobBasePlane"), ref bPlane, GH_Conversion.Both);
this.RobBasePlane = bPlane
public bool Write(GH_IWriter writer)
GH_Plane gH_RobBasePlane = new GH_Plane(this.RobBasePlane);