I would like to build a text file using data obtained in grasshopper.
The ultimate goal is for each line of the text file to look like this:
{ “x”: x component from point , “y”: *y component from point *, “angle”: angle value from atan2 function},
For example:
{ “x”: 25, “y”: 25, “angle”: 150},
{ “x”: 25, “y”: 26, “angle”: 151},
…
I can print this data in this format in the python script editor for each python script cycle. Is there a way I can add a new line to a block of text with each cycle and then stream it to a .txt? So far whenever I try GH wants follow its own index structure for handling points.
5 posts - 4 participants
