[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7
@ -4,6 +4,24 @@ from blender_kitsu import (
|
|||||||
prefs,
|
prefs,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@contextlib.contextmanager
|
||||||
|
def override_render_path(self, context, render_file_path):
|
||||||
|
"""Overrides the render settings for playblast creation"""
|
||||||
|
rd = context.scene.render
|
||||||
|
# Filepath.
|
||||||
|
filepath = rd.filepath
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Filepath.
|
||||||
|
rd.filepath = render_file_path
|
||||||
|
|
||||||
|
yield
|
||||||
|
|
||||||
|
finally:
|
||||||
|
# Filepath.
|
||||||
|
rd.filepath = filepath
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def override_render_settings(self, context, render_file_path):
|
def override_render_settings(self, context, render_file_path):
|
||||||
"""Overrides the render settings for playblast creation"""
|
"""Overrides the render settings for playblast creation"""
|
||||||
|
Loading…
Reference in New Issue
Block a user