Post #4321: Try in the command tab:

📋 Metadata

🏷️ Tags

macro scripting advanced solved

  • Macro Editor
  • Python Scripting
  • Command Tab

💬 Content

Try in the command tab:

Shader Editor:

[setattr(x.image.colorspace_settings, "name", 'Linear') for x in C.active_object.active_material.node_tree.nodes if x.select and x.type == "TEX_IMAGE"]

Compositor:

[setattr(x.image.colorspace_settings, "name", 'Linear') for x in C.scene.node_tree.nodes if x.select and x.type == "IMAGE"]

❤️ 1 likes


🔗 View on Blender Artists