I’m a newbie with python and scripting. Just starting to learn.
I have a .blend file with multiple scenes. I want to quickly be able to change all the render settings on all the scenes so I can batch render them. This is what I have so far:
import bpy bpy.context.scene.render.resolution_x = 1920 bpy.context.scene.render.resolution_y = 1080 bpy.context.scene.render.filepath = "//../Renderizados/" bpy.context.scene.file_format = 'H264' bpy.context.scene.format = 'AVI' bpy.context.scene.codec = 'H264' bpy.context.scene.audio_codec = 'MP3' bpy.context.scene.audio_bitrate = 192
The first three commands work fine. But the following ones all come up with the same error in the console ‘Scene’ object has no attribute ‘file_format’, ‘format’, ‘codec’, etc…
What’s going wrong? How can this be done?