Skip to content

Commit

Permalink
Fix resetting ffmpeg options
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed Jul 10, 2023
1 parent 54c9553 commit 5a01116
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dublast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name" : "DuBlast",
"author" : "Nicolas 'Duduf' Dufresne, Kevin C. Burke (@blastframe)",
"blender" : (2, 81, 0),
"version" : (3,3,0),
"version" : (3,3,1),
"location" : "Properties > Output Properties > Playblast, 3D View > View menu",
"description" : "Create playblasts: Quickly render and play viewport animation.",
"warning" : "",
Expand Down
16 changes: 9 additions & 7 deletions dublast/playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def execute(self, context):
use_stamp_note = render.use_stamp_note
stamp_note_text = render.stamp_note_text

codec = render.ffmpeg.codec
scformat = render.ffmpeg.format
codec = render.ffmpeg.codec
constant_rate_factor = render.ffmpeg.constant_rate_factor
gopsize = render.ffmpeg.gopsize
audio_codec = render.ffmpeg.audio_codec
Expand Down Expand Up @@ -309,12 +309,7 @@ def execute(self, context):
scene.frame_step = frame_step
render.filepath = filepath
render.image_settings.file_format = file_format
render.image_settings.color_mode = color_mode
render.image_settings.quality = quality
render.image_settings.compression = compression
render.image_settings.color_depth = color_depth
render.use_stamp = use_stamp
render.stamp_font_size = stamp_font_size

render.ffmpeg.format = scformat
render.ffmpeg.codec = codec
render.ffmpeg.constant_rate_factor = constant_rate_factor
Expand All @@ -323,6 +318,13 @@ def execute(self, context):
render.ffmpeg.audio_codec = audio_codec
render.ffmpeg.audio_bitrate = audio_bitrate

render.image_settings.compression = compression
render.image_settings.color_mode = color_mode
render.image_settings.quality = quality
render.image_settings.color_depth = color_depth
render.use_stamp = use_stamp
render.stamp_font_size = stamp_font_size

render.stamp_foreground = stamp_foreground
render.stamp_background = stamp_background

Expand Down

0 comments on commit 5a01116

Please sign in to comment.