feat(fusion): adding scripts (with bug which needs to be fixed)

This commit is contained in:
Jakub Jezek 2020-08-19 18:44:26 +02:00
parent 2701e152de
commit 152a00f945
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3
15 changed files with 547 additions and 74 deletions

View file

@ -23,7 +23,7 @@ class CreateTiffSaver(avalon.api.Creator):
workdir = os.path.normpath(os.environ["AVALON_WORKDIR"])
filename = "{}..tiff".format(self.name)
filepath = os.path.join(workdir, "render", "preview", filename)
filepath = os.path.join(workdir, "render", filename)
with fusion.comp_lock_and_undo_chunk(comp):
args = (-32768, -32768) # Magical position numbers
@ -43,4 +43,3 @@ class CreateTiffSaver(avalon.api.Creator):
# Set file format attributes
saver[file_format]["Depth"] = 1 # int8 | int16 | float32 | other
saver[file_format]["SaveAlpha"] = 0