Maniphest T96396

is_active_output stopped working correctly
Closed, Resolved

Assigned To
Jacques Lucke (JacquesLucke)
Authored By
Miro Horváth (dreamak)
Mar 13 2022, 11:30 AM
Tags
  • BF Blender
  • Nodes & Physics
  • Python API
Subscribers
Jacques Lucke (JacquesLucke)
Julien DUROURE (julien)
Miro Horváth (dreamak)
Pratik Borhade (PratikPB2123)

Description

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09

Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: rBc77597cd0e15 , 3.2 broken as well
Worked: Blender 3.0 release
Caused by rB7e712b2d6a0d: Nodes: refactor node tree update handling

Exact steps for others to reproduce the error

  • open , you should see blue cube
  • run the script, which should set "Red" Group Output as active and Cube should change to red color, but Green is set instead
  • you can see in the System Console that bpy.data.node_groups["A"].nodes["Red"].is_active_output is still False

Works as expected in 3.0

Revisions and Commits

rB Blender

Related Objects

Mentioned In
T96241: 3.1: Potential candidates for corrective releases
Mentioned Here
rB22a341d9d8d3: Fix T96292: unable to set active material output using Python
rB82e7956f12aa: Fix T96396: cannot set active node group output with Python
rB7e712b2d6a0d: Nodes: refactor node tree update handling
T96292: Unable to set active material output node using Python

Event Timeline

Miro Horváth (dreamak) created this task.Mar 13 2022, 11:30 AM
Julien DUROURE (julien) added a subscriber: Julien DUROURE (julien).Mar 13 2022, 11:31 AM
Miro Horváth (dreamak) added a comment.Mar 13 2022, 11:54 AM

Also changing active Group Output by clicking on it in Shader Editor and running script right away is giving wrong result as well.

Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Mar 14 2022, 5:41 AM
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.Mar 14 2022, 5:54 AM
Pratik Borhade (PratikPB2123) added projects: Nodes & Physics, Python API.
Pratik Borhade (PratikPB2123) added a subscriber: Jacques Lucke (JacquesLucke).

Hi, thanks for the report. I can confirm on latest master.
This is very similar to the other report which was fixed last week- T96292: Unable to set active material output node using Python
cc @Jacques Lucke (JacquesLucke)

Pratik Borhade (PratikPB2123) updated the task description.Mar 14 2022, 5:54 AM
Jacques Lucke (JacquesLucke) closed this task as Resolved by committing rB82e7956f12aa: Fix T96396: cannot set active node group output with Python.Mar 14 2022, 10:22 AM
Jacques Lucke (JacquesLucke) claimed this task.
Jacques Lucke (JacquesLucke) added a commit: rB82e7956f12aa: Fix T96396: cannot set active node group output with Python.
Pratik Borhade (PratikPB2123) added a comment.Mar 14 2022, 10:29 AM

@Jacques Lucke (JacquesLucke) hi, any thoughts on backporting both the commits for corrective release?

  • rB82e7956f12aa4ee06cb27d902cc5c518af1ef177
  • rB22a341d9d8d3d337f79df228ab2e4e0726f81430
Philipp Oeser (lichtwerk) added a commit: rBb125046c754a: Fix T96396: cannot set active node group output with Python.Mar 21 2022, 2:07 PM