TokensFix: No camera render
This commit is contained in:
parent
77b3f0e83e
commit
955332bf02
Notes:
blender-bot
2023-02-13 21:52:02 +01:00
Referenced by issue blender/blender#78651, Oscurart Tool exception when rendering without scene camera (compositor)
|
@ -30,7 +30,7 @@ def replaceTokens (dummy):
|
|||
"$Scene":bpy.context.scene.name,
|
||||
"$File":os.path.basename(bpy.data.filepath).split(".")[0],
|
||||
"$ViewLayer":bpy.context.view_layer.name,
|
||||
"$Camera":bpy.context.scene.camera.name}
|
||||
"$Camera": "NoCamera" if bpy.context.scene.camera == None else bpy.context.scene.camera.name}
|
||||
|
||||
renpath = bpy.context.scene.render.filepath
|
||||
|
||||
|
|
Loading…
Reference in New Issue