Changeset View
Changeset View
Standalone View
Standalone View
tests/python/cycles_render_tests.py
| Show All 14 Lines | def get_arguments(filepath, output_filepath): | ||||
| basedir = os.path.dirname(dirname) | basedir = os.path.dirname(dirname) | ||||
| subject = os.path.basename(dirname) | subject = os.path.basename(dirname) | ||||
| args = [ | args = [ | ||||
| "--background", | "--background", | ||||
| "-noaudio", | "-noaudio", | ||||
| "--factory-startup", | "--factory-startup", | ||||
| "--enable-autoexec", | "--enable-autoexec", | ||||
| "--debug-memory", | |||||
| "--fail-on-memleak", | |||||
| filepath, | filepath, | ||||
| "-E", "CYCLES", | "-E", "CYCLES", | ||||
| "-o", output_filepath, | "-o", output_filepath, | ||||
| "-F", "PNG"] | "-F", "PNG"] | ||||
| # OSL and GPU examples | # OSL and GPU examples | ||||
| # custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.shading_system = True"] | # custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.shading_system = True"] | ||||
| # custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.device = 'GPU'"] | # custom_args += ["--python-expr", "import bpy; bpy.context.scene.cycles.device = 'GPU'"] | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||