New Addon: Import Autodesk .max #105013

Closed
Sebastian Sille wants to merge 136 commits from (deleted):nrgsille-import_max into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 24d74b9abb - Show all commits

View File

@ -1312,7 +1312,7 @@ def adjust_material(obj, mat):
matShader = PrincipledBSDFWrapper(objMaterial, is_readonly=False, use_nodes=True)
matShader.base_color = objMaterial.diffuse_color[:3] = material.get('diffuse', (0.8,0.8,0.8))
matShader.specular_tint = objMaterial.specular_color[:3] = material.get('specular', (1.0,1.0,1.0))
matShader.specular = objMaterial.specular_intensity = material.get('reflect', 1.0)
matShader.specular = objMaterial.specular_intensity = material.get('reflect', 0.5)
matShader.roughness = objMaterial.roughness = 1.0 - material.get('shinines', 0.6)
matShader.emission_color = material.get('emissive', (0,0,0))