I want to get the current time stamp constantly so that I can use it as suffix of a file name.
I added the following script in GhPython component, and it freezes once I click OK.
There is no such issue if I just run it as a normal Python script.
May I ask if this is related to the Python used in Grasshopper, and how to solve this issue?
now = datetime.datetime.now()
…output = now.strftime("%Y-%m-%d_%H-%M")