kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Fixing weird issue with MP4 slipping through if statements
rodzic
3a874aea71
commit
8f3a95caf1
|
@ -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')
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue