File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ def fix_materials():
258
258
# https://blender.stackexchange.com/a/129014
259
259
bsdf = material .node_tree .nodes ["Principled BSDF" ]
260
260
bsdf .inputs ["Metallic" ].default_value = 0.0
261
- bsdf .inputs ["Specular" ].default_value = 0.2
261
+ bsdf .inputs ["Specular IOR Level " ].default_value = 0.2
262
262
bsdf .inputs ["Roughness" ].default_value = 0.8
263
263
264
264
tex_emissive = material .node_tree .nodes .new ('ShaderNodeTexImage' )
@@ -291,7 +291,7 @@ def fix_materials():
291
291
"//SourceFiles/Textures/PolygonOffice_Texture_Sceen_Arcade_01.png"
292
292
))
293
293
material .node_tree .links .new (bsdf .inputs ['Base Color' ], tex_albedo .outputs ['Color' ])
294
- material .node_tree .links .new (bsdf .inputs ['Emission' ], tex_albedo .outputs ['Color' ])
294
+ material .node_tree .links .new (bsdf .inputs ['Emission Color ' ], tex_albedo .outputs ['Color' ])
295
295
296
296
# Set up the 5 Screen materials
297
297
for i in range (1 , 4 ):
@@ -304,7 +304,7 @@ def fix_materials():
304
304
"//SourceFiles/Textures/PolygonOffice_Texture_Sceen_0" + str (i ) + ".png"
305
305
))
306
306
material .node_tree .links .new (bsdf .inputs ['Base Color' ], tex_albedo .outputs ['Color' ])
307
- material .node_tree .links .new (bsdf .inputs ['Emission' ], tex_albedo .outputs ['Color' ])
307
+ material .node_tree .links .new (bsdf .inputs ['Emission Color ' ], tex_albedo .outputs ['Color' ])
308
308
309
309
310
310
You can’t perform that action at this time.
0 commit comments