Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- ob = bpy.context.object
- mat = ob.material_slots[ob.active_material_index].material
- nodes = mat.node_tree.nodes
- for x in nodes:
- if x.select and x.type == 'TEX_IMAGE' and x.image:
- x.image.colorspace_settings.name = 'Non-Color'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement