Post #4627: Maybe some one can help me out. I have command for setting all selected image no
📋 Metadata
- Author: RobertLe
- Date: 2023-01-28 20:54:54
- Type:
question - Quality Score: 7/10
- Replies (1): post_04633
🏷️ Tags
macro python-scripting intermediate unsolved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Maybe some one can help me out. I have command for setting all selected image nodes to linear. Works fine in the pie menu.
However, if the image node is in a group it doesn’t work anymore. Any idea?
Here is the command:
[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"]