TokensFix: No camera render

This commit is contained in:
Eugenio Pignataro 2020-07-06 09:03:45 -03:00
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)
1 changed files with 1 additions and 1 deletions

View File

@ -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