Hello, I want to rebuild mesh normals for a stripped morphology of meshes in grasshopper. I saw a script that used C# script to do this. Can I do the same in grasshopper python? I am writing a program, but I am new to python might be some mistakes. Can anyone help me whit how to do this with python?
Thank you Kevin. I was missing the type hint step along with the understanding that a method can be applied to a list directly. I was trying to take each mesh element through loop and apply this method.
If you leave it set to Item Access and input a list or tree grasshopper will run your script once for each item iterating through the list or tree (this is the easiest method if you don’t need to operate on lists or trees).
If you set it to List Access you can iterate through the list as you were trying to do initially.
If you set it to Tree Access, you can use the DataTree methods to access your data. You can also use the ghpythonlib.treehelpers module to transform trees to nested lists, and vice versa.