Post #4321: Try in the command tab:
📋 Metadata
- Author: Motiomancer
- Date: 2022-05-14 02:59:21
- Type:
answer - Quality Score: 8/10
- Reply to: post_04320
- Replies (1): post_04323
🏷️ Tags
macro scripting advanced solved
⚙️ Related PME Features
- 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