Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4177

Is there a way to measure time since last execution of a python/C# script

$
0
0

I essentially wish to have a C# or python component that does the following

time_since_last_execution = time_now - time_when_this_component_was_last_executed
time_since_last_execution > 10s:
   do_Something()
else:
   do_something_else()

The “time_when_this_component_was_last_executed”-part is where I struggle

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 4177

Latest Images

Trending Articles



Latest Images