Skip to content

[BUG] bpy.types.NodeTreeInterface SocketMenu only exists in versions greater than Blender 4.1 #140

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
LPG-VERSION opened this issue Dec 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LPG-VERSION
Copy link

bpy.types.NodeTreeInterface SocketMenu only exists in versions greater than Blender 4.1

OS:WindowsX64
blender version:4.0.2
bug:when clicking on a material with a custom node group in the material panel, an exception occurs. just create a custom node group and it will be reproduced
addon_version:3.3.0

exception:
Python: Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\shader\operator.py", line 171, in execute
self._process_node_tree(node_tree)
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\shader\operator.py", line 108, in _process_node_tree
self._tree_interface_settings(ntp_nt)
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\ntp_operator.py", line 789, in _tree_interface_settings
self._process_items(None, panel_dict, items_processed, ntp_nt)
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\ntp_operator.py", line 771, in _process_items
self._create_socket(item, parent, panel_dict, ntp_nt)
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\ntp_operator.py", line 653, in _create_socket
self._set_tree_socket_defaults(socket, socket_var)
File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\NodeToPython\ntp_operator.py", line 572, in _set_tree_socket_defaults
if type(socket_interface) is bpy.types.NodeTreeInterfaceSocketMenu:
AttributeError: 'module' object has no attribute 'NodeTreeInterfaceSocketMenu'

@LPG-VERSION LPG-VERSION added the bug Something isn't working label Dec 23, 2024
@BrendanParmer BrendanParmer self-assigned this Dec 23, 2024
@BrendanParmer
Copy link
Owner

Thanks for the bug report! I was able to reproduce the issue, and it's been resolved with #141

@LPG-VERSION
Copy link
Author

this is a great plugin that solves many problems,thank you for your work

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants