7

I have 8 python scripts and I need to lunch them at once. For one script, I used

blender --background --python script1.py

for the eight scripts, I tried this command but it does not work.

blender --background --python *.py
ideasman42
  • 47,387
  • 10
  • 141
  • 223
BetterEnglish
  • 2,000
  • 4
  • 29
  • 53

1 Answers1

5

You can have multiple --python tags. For example:

blender --background --python script1.py --python script2.py

This will execute the scripts in the order they are added in the command above. Add as many --python arguments as you need (there is no limit on the number of scripts you can run).

ideasman42
  • 47,387
  • 10
  • 141
  • 223
Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125
  • I have already tried this but it did not work – BetterEnglish Jun 25 '15 at 19:22
  • Then I think you may need to add more information to your question as this method worked just now when I tried it. Are you getting any errors? – Ray Mairlot Jun 25 '15 at 20:04
  • I think the problem is that they run in sequence and not in parallel, but they do all 'run at once' depending on your meaning of the term. They do not run 'simultaneously' – the_5imian Jun 02 '20 at 19:22