Created
February 4, 2019 14:36
-
-
Save iCyP/ebce187e2d60f719cac583054c1b6925 to your computer and use it in GitHub Desktop.
all shadeless and rim false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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