Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_operators/screen_play_rendered_anim.py
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | def execute(self, context): | ||||
| frame_end = scene.frame_end | frame_end = scene.frame_end | ||||
| if preset == 'INTERNAL': | if preset == 'INTERNAL': | ||||
| opts = [ | opts = [ | ||||
| "-a", | "-a", | ||||
| "-f", str(rd.fps), str(rd.fps_base), | "-f", str(rd.fps), str(rd.fps_base), | ||||
| "-s", str(frame_start), | "-s", str(frame_start), | ||||
| "-e", str(frame_end), | "-e", str(frame_end), | ||||
| "-j", str(scene.frame_step), | "-j", str(scene.frame_step), | ||||
| "-c", str(prefs.system.memory_cache_limit), | |||||
| file, | file, | ||||
| ] | ] | ||||
| cmd.extend(opts) | cmd.extend(opts) | ||||
| elif preset == 'DJV': | elif preset == 'DJV': | ||||
| opts = [ | opts = [ | ||||
| file, | file, | ||||
| "-speed", str(fps_final), | "-speed", str(fps_final), | ||||
| "-in_out", str(frame_start), str(frame_end), | "-in_out", str(frame_start), str(frame_end), | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||