@inno,
1
what are your thoughts on using general containers like ‘data’ instead of dedicated components such as ‘int’ or ‘float’? Similarly, would you use ‘geometry’ over more specific types like ‘brep’ or ‘mesh’?
To keep things tidy in my scripts, I usually follow the data format of the dataflow—for instance, if the input is a mesh or a surface, I stick to those specific nodes. However, when I want to reuse parts of the script, I often encounter issues where the same logic needs to handle a ‘brep’ instead, and I end up redoing sections of the definition. The same happens with floats and integers.
The plane orientation example by @ale2x72 is a good illustration of this challenge. I presume that using dedicated nodes might be faster than generalized ones, although I could be wrong here. Also, I wonder how node casting checks (like testing input compatibility or format conversion) might play into this decision—are they worth incorporating to avoid issues down the line?
I’m curious to hear how others approach this—do you prioritize flexibility by using general containers, or do you stick with more specific components for clarity, performance, and casting reliability?
2
Like most I’ve used various ways to organize and document Grasshopper definitions, but I’m wondering if there could be a more unified approach to improve the workflow. Currently, the only methods some combo of Scribbles, Panels with text, labeled groups, Clusters and personalized group color schemes. While these solutions work, they can feel a bit scattered, and each user tends to develop their own system, which can lead to inconsistencies in collaborative settings or when sharing files here.
Wouldn’t it be great if someone clever at McNeel (or David Rutten himself) came up with a more unified implementation to document/comments? For example, built-in tools (AI supported) that allow standardized tagging, group logic visualization, or even predefined color schemes could greatly enhance clarity and reusability.