Maniphest T74245

Baking via Python API refuses to save to external file
Closed, Duplicate

Assigned To
None
Authored By
Kenzie (kenziemac130)
Feb 26 2020, 10:22 PM
Tags
  • BF Blender
Subscribers
Kenzie (kenziemac130)
Richard Antalik (ISS)

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: rB77d23b0bd76f
Worked: ???

Short description of error
When attempting to bake to an external image using the following snippet, blender will still try to bake to an Internal image.

Exact steps for others to reproduce the error

or...

Blank blend file->Scripting->Create New Python Script, Paste and Run:

import bpy

bpy.ops.object.bake(save_mode= 'EXTERNAL', type='DIFFUSE', pass_filter={'INDIRECT'}, filepath="/tmp/indirect.png", width=512, height=512, margin=16, use_selected_to_active=False, cage_extrusion=0.0, use_split_materials=True, use_automatic_name=True, uv_layer="")

Event Timeline

Kenzie (kenziemac130) created this task.Feb 26 2020, 10:22 PM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).Feb 28 2020, 3:57 PM

Looking at code, this is still not implemented, so will merge with older report.

Richard Antalik (ISS) closed this task as a duplicate of T48693: bpy.ops.object.bake().Feb 28 2020, 3:57 PM