Jump to content
  • 0

Timedelay in python?



  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Just use the OnUpdate built in function, example:


def SetSleepFunction(self, time):
	self.function_sleep_time = app.GetGlobalTimeStamp() + time
def OnUpdate(self):
	if self.function_sleep_time and self.function_sleep_time < app.GetGlobalTimeStamp():
		self.function_sleep_time = None
        	# Your action


I write the code very fast for you understand the idea, but you need to declare the variable also and adapt it for you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.