Node Wrangler addon : No node_tree for my reroute #75689

Closed
opened 2020-04-13 19:00:51 +02:00 by Jean-Yves Grosbeau · 8 comments

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: GeForce GTX 860M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.75

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-11 15:16, hash: blender/blender@85de07e64c
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Node Wrangler (3, 36)
Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer

Short description of error
When you edit a nodegroup, if the nodegroup is not the active node and you want to add a reroute in the group it raises an error :

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\blender-2.83-85de07e64c96-
windows64\2.83\scripts\addons\node_wrangler.py", line 2939, in execute
    nodes, links = get_nodes_links(context)
  File "C:\Program Files\Blender Foundation\blender-2.83-85de07e64c96-
windows64\2.83\scripts\addons\node_wrangler.py", line 990, in get_nodes_links
    tree = tree.nodes.active.node_tree
AttributeError: 'ShaderNodeRGB' object has no attribute 'node_tree'

Exact steps for others to reproduce the error
Open the file, enable the Node Wrangler addon, and try to add a reroute to the invert node.

NoRerouteError.blend

Thanks

**System Information** Operating system: Windows-8.1-6.3.9600-SP0 64 Bits Graphics card: GeForce GTX 860M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.75 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-11 15:16, hash: `blender/blender@85de07e64c` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Node Wrangler (3, 36) Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer **Short description of error** When you edit a nodegroup, if the nodegroup is not the active node and you want to add a reroute in the group it raises an error : ``` Traceback (most recent call last): File "C:\Program Files\Blender Foundation\blender-2.83-85de07e64c96- windows64\2.83\scripts\addons\node_wrangler.py", line 2939, in execute nodes, links = get_nodes_links(context) File "C:\Program Files\Blender Foundation\blender-2.83-85de07e64c96- windows64\2.83\scripts\addons\node_wrangler.py", line 990, in get_nodes_links tree = tree.nodes.active.node_tree AttributeError: 'ShaderNodeRGB' object has no attribute 'node_tree' ``` **Exact steps for others to reproduce the error** Open the file, enable the Node Wrangler addon, and try to add a reroute to the invert node. [NoRerouteError.blend](https://archive.blender.org/developer/F8469437/NoRerouteError.blend) Thanks

Added subscriber: @Jean-YvesGrosbeau

Added subscriber: @Jean-YvesGrosbeau

No relation with the node wrangler addon but as reported in blender/blender#75680, when you open the attached blend file you can see the nodegroup user count is false.

No relation with the node wrangler addon but as reported in blender/blender#75680, when you open the attached blend file you can see the nodegroup user count is false.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

@Jean-YvesGrosbeau Do I understand correctly that the error only occurs in this file because it was corrupt by blender/blender#75680?

@Jean-YvesGrosbeau Do I understand correctly that the error only occurs in this file because it was corrupt by blender/blender#75680?

No there is nothing to do with blender/blender#75680. It happens e.g. , when you have several node editors in your interface at the same time, and in one of them you have a nodegroup in edit mode and in the other node editor another node, which is not a group, is selected. So when you try to add the reroute in the group in edit mode the code try to edit to the selected node which is not the nodegroup in which you want to add the reroute.

No there is nothing to do with blender/blender#75680. It happens e.g. , when you have several node editors in your interface at the same time, and in one of them you have a nodegroup in edit mode and in the other node editor another node, which is not a group, is selected. So when you try to add the reroute in the group in edit mode the code try to edit to the selected node which is not the nodegroup in which you want to add the reroute.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Fixed by 0bc87fda6.

Fixed by 0bc87fda6.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-01-23 14:13:17 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#75689
No description provided.