Skip to content

Instantly share code, notes, and snippets.

@madjin
Created April 6, 2023 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madjin/78afbd306788e9d59fc21bbf336535b0 to your computer and use it in GitHub Desktop.
Save madjin/78afbd306788e9d59fc21bbf336535b0 to your computer and use it in GitHub Desktop.
remove specular from model in blender
import bpy
for mat in bpy.data.materials:
if not mat.use_nodes:
mat.specular_intensity = 0
continue
for n in mat.node_tree.nodes:
if n.type == 'BSDF_PRINCIPLED':
n.inputs["Specular"].default_value = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment