bpy.data.node_groups is not accessible via the Python console #68053
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#68053
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Debian 10
Graphics card: Intel HD 4000
Blender Version
Broken: v 2.81 Alpha, Date 2019-07-30 20:50, Hash: 5359b7a03307 (latest daily linux 64-bit)
The following expression in the python console produces a key not found error:
In the scripting workspace, the executed python expressions window displays the same map access working if you go in the shader editor and perform some sort of action that operates on the
node_groups
map, such as changing the default shader specular value. The case sensitivity does not seem to matter - sometimes the printout window shows the string as "Shader Nodetree", sometimes as "Shader NodeTree".Exact steps for others to reproduce the error
bpy.data.node_groups["Shader NodeTree"]
in the consoleAdded subscriber: @gekko
Added subscriber: @lichtwerk
Confirmed, checking...
Will put on my desk for investigation
Added subscriber: @mont29
Changed status from 'Open' to: 'Archived'
That is not technically a bug, although it is confusing (and a pain to handle in C code as well), 'root' node trees are not regular data-blocks, and are not available from
bpy.data
. They are closer to some private data of their owner (material, light, scene data-blocks), and should only be accessed through them. Thanks for the report anyway.@mont29: should we tweak the data-path-reporting to their respective owner then? (or is this this even imposiible? -- havent checked code yet...)
(inclined to repoen as TODO with low prio for my desk -- this has been bugging me as well, just feels like a bug -- same goes for #68054...)