Message 1 of 2
run python in background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm surely missing something of python or that is already documented in python for 3dsmax
but how do I execute this code in the background?
import time, threading
WAIT_SECONDS = 1
def foo():
print(time.ctime())
threading.Timer(WAIT_SECONDS, foo).start()
foo()
if I simply run this code in the listener it is executed only one time..
I would expect that print the time every second instead...
I'm probably missing something