Skip to content

Instantly share code, notes, and snippets.

@iCyP
Created February 4, 2019 14:36
Show Gist options
  • Save iCyP/ebce187e2d60f719cac583054c1b6925 to your computer and use it in GitHub Desktop.
Save iCyP/ebce187e2d60f719cac583054c1b6925 to your computer and use it in GitHub Desktop.
all shadeless and rim false
import bpy
for obj in bpy.context.selected_objects:
if obj.type == "MESH":
if obj.material_slots is not None:
for mats in obj.material_slots:
mats.material.use_shadeless = True
if mats.material.texture_slots is not None:
for ts in mats.material.texture_slots:
if ts is None:
continue
if ts.texture_coords == "NORMAL":
ts.use_map_color_diffuse = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment