Node Socket Name Change results in Cycles Material Rendering Black (name is also identifier, should be read-only?) #53396

Open
opened 2017-11-26 04:46:00 +01:00 by lvxejay · 7 comments

System Information
Windows 10
Intel Core i7-5820k 4.1GHz
2x Nvidia GTX 970

Blender Version
Broken: 2.79 5bd8ac9

Short description of error
If you change the name of a Node Socket (not the socket's identifier) of a Cycles Shader Node during execution of a python script, Cycles will render the Material black.

Exact steps for others to reproduce the error
Download the blend file below:
socket_naming_bug.blend

Run the code in the text editor.
Switch to viewport preview.

To fix the problem, simply reset the two nodes, or add a new Material Output Node and a new Principled Node to the Node Tree. Connect the new nodes together and delete the old ones.

**System Information** Windows 10 Intel Core i7-5820k 4.1GHz 2x Nvidia GTX 970 **Blender Version** Broken: 2.79 5bd8ac9 **Short description of error** If you change the name of a Node Socket (not the socket's identifier) of a Cycles Shader Node during execution of a python script, Cycles will render the Material black. **Exact steps for others to reproduce the error** Download the blend file below: [socket_naming_bug.blend](https://archive.blender.org/developer/F1191012/socket_naming_bug.blend) Run the code in the text editor. Switch to viewport preview. To fix the problem, simply reset the two nodes, or add a new Material Output Node and a new Principled Node to the Node Tree. Connect the new nodes together and delete the old ones.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @lvxejay

Added subscriber: @lvxejay

Added subscriber: @brecht

Added subscriber: @brecht

The socket name is also the identifier, so you should not change it.

This is supposed to be read-only I think, though maybe it's needed to be able to change group nodes.

The socket name is also the identifier, so you should not change it. This is supposed to be read-only I think, though maybe it's needed to be able to change group nodes.
Author

This issue is part of a deeper problem. Sockets are not uniquely named. Unlike everything in else in Blender, multiple nodes can have the same socket names (even the same node can have the same socket names). I don't think this is good or consistent behavior. There's three things that could solve this issue...

  1. Socket Names (or maybe identifier's instead) follow the same unique naming conventions as datablocks and structs within Blender.
  2. You can no longer change Socket Names. Or, allow the user to change socket names as long as you...
  3. Disassociate the socket name with the socket identifier. This is not clearly outlined in the Python API, as the Socket Identifier is a 'unique", read only property for mapping sockets, and the name property is just the name. Most structs in Blender have this "name" property. It should behave the same way, consistently throughout the software.
This issue is part of a deeper problem. Sockets are not uniquely named. Unlike everything in else in Blender, multiple nodes can have the same socket names (even the same node can have the same socket names). I don't think this is good or consistent behavior. There's three things that could solve this issue... 1) Socket Names (or maybe identifier's instead) follow the same unique naming conventions as datablocks and structs within Blender. 2) You can no longer change Socket Names. Or, allow the user to change socket names as long as you... 3) Disassociate the socket name with the socket identifier. This is not clearly outlined in the Python API, as the Socket Identifier is a 'unique", read only property for mapping sockets, and the name property is just the name. Most structs in Blender have this "name" property. It should behave the same way, consistently throughout the software.
Member

Added subscribers: @JacquesLucke, @lichtwerk

Added subscribers: @JacquesLucke, @lichtwerk
Member

Can reconfirm, still an issue.

From @brecht 's comment, I will assume this will count as "Known Issue" for now, should be rectified though...

@JacquesLucke : will CC you here, not sure if this is also an Issue with Particle/Everything Nodes?

Can reconfirm, still an issue. From @brecht 's comment, I will assume this will count as "Known Issue" for now, should be rectified though... @JacquesLucke : will CC you here, not sure if this is also an Issue with Particle/Everything Nodes?
Philipp Oeser changed title from Node Socket Name Change results in Cycles Material Rendering Black to Node Socket Name Change results in Cycles Material Rendering Black (name is also identifier, should be read-only?) 2020-02-10 13:25:58 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 13:59:01 +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
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#53396
No description provided.