0
$\begingroup$

I want blender to execute the part of my code, then wait for about 30 sec and execute the rest code. Is it possible? I want something like setTimeout in js if not, then how do I execute one script, and then another one by one via bash or python script?

$\endgroup$
5
  • $\begingroup$ If you simply want to run script one a after another it's better to use the CLI with multiple -P or --python parameters. Using a timer for the purpose of executing multiple scripts would be a bad code design, because you don't want to trigger the execution of the next script before the previous has finished. $\endgroup$ – Robert Gützkow Jul 26 '19 at 9:41
  • $\begingroup$ That being said, Blender has modal operators and timers however this wouldn't be the right use case. If I understood your question right. $\endgroup$ – Robert Gützkow Jul 26 '19 at 9:42
  • $\begingroup$ @rjb but if I use -P do scripts launch all at once or in load order of -P? $\endgroup$ – cxnt Jul 26 '19 at 9:48
  • $\begingroup$ In order, as far as I'm aware. $\endgroup$ – Robert Gützkow Jul 26 '19 at 10:29
  • $\begingroup$ @rjg good, that's what I needed, thanks $\endgroup$ – cxnt Jul 26 '19 at 10:40

Browse other questions tagged or ask your own question.