Infinite while loop freezez in GhPython

I believe you’ll need to avoid the loop and trigger the Python component somehow, such as connecting anything that changes when the model changes (instead of the Button below):


time_date_2019Jul8a.gh

import datetime
now = datetime.datetime.now()
Y = now.year
M = now.month
D = now.day
h = now.hour
m = now.minute
s = now.second
1 Like