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):
I’d start with this?
[date_time]
Oh, wait… Time is fixed to the moment you first put it on the canvas and doesn’t change. Kind of useless, isn’t it.
Here’s a Python thing; every time you push the button (or otherwise trigger the ‘x’ input?), the date/time updates:
import datetime
now = datetime.datetime.now()
Y = now.year
M = now.month
D = now.day
h = now.hour
m = now.minute
s = now.second
[date_time]
time_date_2019Jul8a.gh (5.5 KB)
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