Maniphest T93403

Hotkeys conflict between Shader Nodes, Compositing Nodes, GeoNodes and Texture Node Editor.
Confirmed, Normal

Assigned To
None
Authored By
Oxicid (Oxicid)
Nov 26 2021, 12:30 PM
Tags
  • BF Blender
  • User Interface
  • Good First Issue
Subscribers
Campbell Barton (campbellbarton)
Dalai Felinto (dfelinto)
Oxicid (Oxicid)
Pratik Borhade (PratikPB2123)

Description

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68

Blender Version
Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: rBc842a90e2fa1
Worked: (newest version of Blender that worked as expected)

Short description of error
I have hotkeys on frequently used nodes in shader editor. When I switch to Compositing, first of all I have hotkeys already assigned to similar nodes (I did it in shader editor, but they are automatically assigned in compositing). Secondly, I get an error in Compositing - Not a shader or geometry node tree.

Exact steps for others to reproduce the error

  1. Apply the "I" button to the "Invert" node in the shader editor
  2. Switch to Compositing or Texture Node Editor
  3. Call the invert node with the I button

You get the following error

Python: Traceback (most recent call last):
  File "D:\BF_daily_build\2.93.0\blender-2.93.7-candidate+v293.4ec6cc412d7f-windows.amd64-release\2.93\scripts\startup\bl_operators\node.py", line 138, in invoke
    result = self.execute(context)
  File "D:\BF_daily_build\2.93.0\blender-2.93.7-candidate+v293.4ec6cc412d7f-windows.amd64-release\2.93\scripts\startup\bl_operators\node.py", line 129, in execute
    self.create_node(context)
  File "D:\BF_daily_build\2.93.0\blender-2.93.7-candidate+v293.4ec6cc412d7f-windows.amd64-release\2.93\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 ShaderNodeInvert to node tree 'Geometry Nodes'
  Not a shader node tree


location: <unknown location>:-1


Event Timeline

Oxicid (Oxicid) renamed this task from Hotkeys conflict between Shader Nodes, Compositing Nodes and Texture Node Editor. to Hotkeys conflict between Shader Nodes, Compositing Nodes, GeoNodes and Texture Node Editor..Nov 26 2021, 12:30 PM
Oxicid (Oxicid) created this task.
Oxicid (Oxicid) added a comment.Nov 26 2021, 12:38 PM

The following categories should be added to the hotkeys settings, to avoid conflicts between hotkeys

Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Nov 26 2021, 1:14 PM
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Needs Information from User.EditedNov 26 2021, 1:35 PM

Hi, thanks for the report. I am not able to reproduce this on master and 2.93.7 (4ec6cc412d7f)

To reproduce the error. Could you please provide exact reproducing steps? I manually changed the shortcut. Not sure if I understand the use of py script.

Can you reproduce this issue with factory settings?: FileDefaultsLoad Factory Settings

Oxicid (Oxicid) added a comment.EditedNov 26 2021, 3:04 PM
In T93403#1260503, @Pratik Borhade (PratikPB2123)

ShadingCtrl+AColorInvertright mouse buttonAssign ShortcutI

Now everything will work fine in the shading mode, but in other node editors, when you press "I" you will get an error.

PS. And the .py file is not a script, but saved hotkeys

Pratik Borhade (PratikPB2123) changed the task status from Needs Information from User to Confirmed.Nov 30 2021, 4:59 PM
Pratik Borhade (PratikPB2123) added projects: Nodes, User Interface.

Hi, thanks for clarifying. Can confirm now :)

Pratik Borhade (PratikPB2123) updated the task description.Nov 30 2021, 5:05 PM
Dalai Felinto (dfelinto) edited projects, added Good First Issue; removed Nodes.May 9 2022, 11:47 AM
Dalai Felinto (dfelinto) added a subscriber: Dalai Felinto (dfelinto).

Agree that each of the node editors should have their own set of shortcuts, even if it means duplicating the shortcuts for the nodes that do work across different editors.

Dalai Felinto (dfelinto) added a subscriber: Campbell Barton (campbellbarton).May 9 2022, 11:47 AM