Fixing weird issue with MP4 slipping through if statements

pull/117/head
Torrin Leonard 2022-05-31 08:03:52 -04:00
rodzic 3a874aea71
commit 8f3a95caf1
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -327,8 +327,8 @@ class BMNFTS_PGT_Input_Properties(bpy.types.PropertyGroup):
('AVI_RAW', '.avi (AVI_RAW)', 'Export NFT as AVI_RAW'),
('FFMPEG', '.mkv (FFMPEG)', 'Export NFT as FFMPEG'),
('MP4', '.mp4', 'Export NFT as .mp4'),
('PNG', ".png", "Export NFT as PNG"),
('TIFF', ".tiff", "Export NFT as TIFF")
('PNG', '.png', 'Export NFT as PNG'),
('TIFF', '.tiff', 'Export NFT as TIFF')
]
)

Wyświetl plik

@ -299,7 +299,7 @@ def render_and_save_NFTs(input):
if not os.path.exists(animationFolder):
os.makedirs(animationFolder)
if input.animationFileFormat == 'MP4':
if input.animationFileFormat == "MP4":
bpy.context.scene.render.filepath = animationPath
bpy.context.scene.render.image_settings.file_format = "FFMPEG"
@ -307,7 +307,7 @@ def render_and_save_NFTs(input):
bpy.context.scene.render.ffmpeg.codec = 'H264'
bpy.ops.render.render(animation=True)
if input.animationFileFormat == 'PNG':
elif input.animationFileFormat == 'PNG':
if not os.path.exists(animationPath):
os.makedirs(animationPath)
@ -315,7 +315,7 @@ def render_and_save_NFTs(input):
bpy.context.scene.render.image_settings.file_format = input.animationFileFormat
bpy.ops.render.render(animation=True)
if input.animationFileFormat == 'TIFF':
elif input.animationFileFormat == 'TIFF':
if not os.path.exists(animationPath):
os.makedirs(animationPath)