Commit b2a99afa authored by frankie's avatar frankie 💬

adding first generation step

parent 6417d64b
......@@ -76,4 +76,4 @@ repository, with minimised javascript and css.
[Commission des arts numériques de la fédération wallonie-bruxelles](www.arts-numeriques.culture.be/)
* Creative Industries Fund NL.
![This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png), http://creativecommons.org/licenses/by-nc-sa/4.0/
![This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png) - http://creativecommons.org/licenses/by-nc-sa/4.0/
import os,re,subprocess
import time
exe_path = '/opt/blender-2.79-linux-glibc219-x86_64/./blender'
template_path = 'generate_automatic.blend'
max_run = 30
modify_render_files = True
launch_render = True
launch_legs = True
blend_exec = '/opt/blender-2.79b-linux-glibc219-x86_64/./blender'
template_path = 'generate.blend'
generation_script = 'scripts/main.py'
max_run = 1
current_run = 0
previous_run_time = time.time()
......@@ -19,7 +16,7 @@ def launch_generation():
print( "\t####################################################")
print( "\t############# starting run " + str(current_run) + '/' + str(max_run) + " #############" )
print( "\t####################################################")
p1 = subprocess.Popen( [ exe_path, template_path ] )
p1 = subprocess.Popen( [ blend_exec, os.path.abspath( template_path ), '-P', os.path.abspath( generation_script ) ] )
p1.wait()
total_run_time = time.time() - previous_run_time
previous_run_time = time.time()
......@@ -31,10 +28,13 @@ def launch_generation():
for i in range( 0, max_run ):
launch_generation()
'''
# usefull to modify the frame gaps specified in 'render-file.py'
if modify_render_files:
p1 = subprocess.Popen( [ 'python', 'render_file_modifier.py' ] )
p1 = subprocess.Popen( [ 'python', 'scripts/render_file_modifier.py' ] )
p1.wait()
'''
if launch_render:
p1 = subprocess.Popen( [ 'python', 'runner_01_render.py' ] )
p1.wait()
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment