Hello,
I’ve been following the YouTube tutorial “Using Galapagos with View Analysis in Grasshopper” by Rethinking BIM (https://www.youtube.com/watch?v=Ip2u9i4m6V0) trying to analyse the ideal placement of a fictional building.
But when connecting everything with ‘ViewPercent’ an error occurs saying "1. Solution exception:‘NurbsCurve’ object has no attribute 'ToBrep’2 ".
Both, "_geometry" and "context_" inputs expect to receive Breps or Meshes.
While on normal grasshopper you can implicitly cast a closed planar curve to a surface (and so to a brep), I guess your python script is expecting to find a brep or mesh, but finding a curve it throws an error.
Replace your top geometry parameter (the one connected to the panel in my screenshot) with a surface or better a brep parameter.
Hi Gesa;
The required input for the geometry is either a brep or a mesh for the component to work, but currently in you’re script your input is curves so that’s the reason it’s not working.