← All ideas
  • Published 10 May 2024

Expose to python if the Viewer node is enabled or not

As far as I could figure out it is not possible to check in python the state between this:

gn_viewer_off.png

and:

gn_viewer.png

It would be great if it get's exposed cause it allow's to make addons that provide extra functionallity for debugging.

docs.blender.org/api/current/bpy.types.GeometryNodeViewer.html

100%

Development Status: Open

Upvote 5 Downvote 0
clankill3r
10 May 2024

3 Comments

W_Cloud

Now I use this method to find the name of active Viewer node.

import bpy for area in bpy.context.screen.areas: if area.type == "SPREADSHEET": view_name = area.spaces[0].viewer_path.path[-1].ui_name

1
clankill3r Author

Thx, might be usefull some day. The downside is that the spreadsheet editor has to be open. For the rest nice find!

clankill3r Author

Maybe it can be exposed using the mute option. Since viewer nodes can't get muted. That way no new properties have to be introduced.