Error with custom nodes and node editor #60384

Closed
opened 2019-01-10 06:38:15 +01:00 by Jonathan Dent · 7 comments

possibly related to #60382.

When I view the node editor with appleseed as the render engine, all my nodes appear in the add list:
image.png

When I try to add a node, I get this:

Traceback (most recent call last):
  File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 131, in invoke
    result = self.execute(context)
  File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 122, in execute
    self.create_node(context)
  File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 92, in create_node
    node = tree.nodes.new(type=node_type)
RuntimeError: Error: Cannot add node of type AppleseedasBlackbodyNode to node tree 'Material_tree'

No other details are provided. So I have no idea why the error is occurring or how to fix it.

For the sake of completeness, I've attached the full terminal log plus the Python file we use for creating the nodes and node tree.

nodes.py

Untitled-1.txt

possibly related to [#60382](https://developer.blender.org/T60382). When I view the node editor with appleseed as the render engine, all my nodes appear in the add list: ![image.png](https://archive.blender.org/developer/F6237274/image.png) When I try to add a node, I get this: ``` Traceback (most recent call last): File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 131, in invoke result = self.execute(context) File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 122, in execute self.create_node(context) File "d:\blender-git\blender28\bin\Release\2.80\scripts\startup\bl_operators\node.py", line 92, in create_node node = tree.nodes.new(type=node_type) RuntimeError: Error: Cannot add node of type AppleseedasBlackbodyNode to node tree 'Material_tree' ``` No other details are provided. So I have no idea why the error is occurring or how to fix it. For the sake of completeness, I've attached the full terminal log plus the Python file we use for creating the nodes and node tree. [nodes.py](https://archive.blender.org/developer/F6237461/nodes.py) [Untitled-1.txt](https://archive.blender.org/developer/F6237464/Untitled-1.txt)
Author

Added subscriber: @jdent02

Added subscriber: @jdent02
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Havent look in depth, but the AppleseedOSLNode polls for AppleseedNodeTree whereas the nodetree itself is called AppleseedOSLNodeTree, could this be the cause?

Havent look in depth, but the `AppleseedOSLNode` polls for `AppleseedNodeTree` whereas the nodetree itself is called `AppleseedOSLNodeTree`, could this be the cause?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Besides that it would be helpful when you try to remove everything from the file that is not necessary to reproduce the bug.
Also currently the script you provided does not run on its own, which makes it hard to reproduce the issue.

Besides that it would be helpful when you try to remove everything from the file that is not necessary to reproduce the bug. Also currently the script you provided does not run on its own, which makes it hard to reproduce the issue.
Author

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Jonathan Dent self-assigned this 2019-01-10 13:49:06 +01:00
Author

Good Lord that's embarrassing, must've been doing stuff too late into the evening.

Philipp, you are correct.

Good Lord that's embarrassing, must've been doing stuff too late into the evening. Philipp, you are correct.
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#60384
No description provided.