Post #1901: Ja

📋 Metadata

🏷️ Tags

popup-dialog property-editor intermediate solved

  • Property Editor
  • Custom tabs
  • Python Scripting

💬 Content

Jakro:

I’m looking to have property drop down for what image the ‘image texture’ node uses in the node editor. Is this possible? I’m in 2.8 btw.

Don’t know how and where you want to use it. Here is a couple of hints. Works in Shader editor area:
Property tab:

C.space_data.node_tree.nodes['Image Texture'].image

Custom tab:

L.template_ID(C.space_data.node_tree.nodes['Image Texture'], "image", new="image.new", open="image.open")

🔗 View on Blender Artists