Created
April 6, 2023 00:35
-
-
Save madjin/78afbd306788e9d59fc21bbf336535b0 to your computer and use it in GitHub Desktop.
remove specular from model in blender
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 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