Custom nodes appear in search results for tree types that don't support them #104313

Closed
opened 2023-02-03 01:06:31 +01:00 by Netherby · 11 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: a95bf1ac01
Worked: 3.3

Short description of error
Custom nodes created for custom node trees now appear in the search results when adding nodes to the built-in tree types (Shader, Geometry, etc)

Exact steps for others to reproduce the error
Exact steps are somewhat complicated since you need to have python script create a custom node tree type along with nodes to go in it and register them... But if you have an add-on or script that creates custom nodes not meant to show up in the Shader node tree and search for them by name while in the Shader node editor they now appear in the search results and can be added to the tree since 3.4. In the previous version they did not appear in search results and could not be added in this way.

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `a95bf1ac01` Worked: 3.3 **Short description of error** Custom nodes created for custom node trees now appear in the search results when adding nodes to the built-in tree types (Shader, Geometry, etc) **Exact steps for others to reproduce the error** Exact steps are somewhat complicated since you need to have python script create a custom node tree type along with nodes to go in it and register them... But if you have an add-on or script that creates custom nodes not meant to show up in the Shader node tree and search for them by name while in the Shader node editor they now appear in the search results and can be added to the tree since 3.4. In the previous version they did not appear in search results and could not be added in this way.
Author

Added subscriber: @JerahmyPocott

Added subscriber: @JerahmyPocott
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Hi, thanks for the report. Can not reproduce here with python Custom Node template.
Could you check again in latest 3.5 builds with factory settings?: https://builder.blender.org/download/daily/

Hi, thanks for the report. Can not reproduce here with python `Custom Node` template. Could you check again in latest 3.5 builds with factory settings?: https://builder.blender.org/download/daily/
Member

Added subscriber: @lone_noel

Added subscriber: @lone_noel
Member

Hi, there was a report similar to this a while a go in #101259. @JerahmyPocott, could you check if that sounds like the same issue to you?
If that's the case, you might need to update your custom nodes. There was a solution discussed in the comments, see #101259#1423746 and the few posts following

Hi, there was a report similar to this a while a go in #101259. @JerahmyPocott, could you check if that sounds like the same issue to you? If that's the case, you might need to update your custom nodes. There was a solution discussed in the comments, see #101259#1423746 and the few posts following
CarlottaKrajcik commented 2023-02-03 06:49:57 +01:00 (Migrated from localhost:3001)

Added subscriber: @CarlottaKrajcik

Added subscriber: @CarlottaKrajcik
CarlottaKrajcik commented 2023-02-03 06:49:57 +01:00 (Migrated from localhost:3001)

This comment was removed by @CarlottaKrajcik

*This comment was removed by @CarlottaKrajcik*

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges
Author

Yes this appears to be the same issue where the template order causes the problem. Using the 'Custom Nodes' template included in Blender, having the node class defined as

class MyCustomNode(Node, MyCustomTreeNode): # Node appears incorrectly in search

class MyCustomNode(MyCustomTreeNode, Node): # Now is hidden as expected

Previously examples showed the order as the first case.. Going forward, I assume the Blender class should always be the last template in custom nodes and sockets?

Yes this appears to be the same issue where the template order causes the problem. Using the 'Custom Nodes' template included in Blender, having the node class defined as ``` class MyCustomNode(Node, MyCustomTreeNode): # Node appears incorrectly in search class MyCustomNode(MyCustomTreeNode, Node): # Now is hidden as expected ``` Previously examples showed the order as the first case.. Going forward, I assume the Blender class should always be the last template in custom nodes and sockets?
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:09 +01:00
Member

Since this is same as #101259, I'll close this report.
Thanks @lone_noel

Since this is same as #101259, I'll close this report. Thanks @lone_noel
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-02-16 13:31:34 +01:00
Pratik Borhade added
Status
Duplicate
and removed
Status
Archived
labels 2023-02-16 13:31:45 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 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#104313
No description provided.