Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import bpy
  2.  
  3. ob = bpy.context.object
  4. mat = ob.material_slots[ob.active_material_index].material
  5. nodes = mat.node_tree.nodes
  6. for x in nodes:
  7.     if x.select and x.type == 'TEX_IMAGE' and x.image:
  8.         x.image.colorspace_settings.name = 'Non-Color'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement