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 c56dcef5a3 - Show all commits

View File

@ -813,7 +813,7 @@ class ChunkReader():
long, ofst = get_long(data, ofst)
if (short == 0x8B1F):
short, ofst = get_long(data, ofst)
if (short in (0xB000000, 0xa040000)):
if (short in (0xB000000, 0xA040000)):
data = zlib.decompress(data, zlib.MAX_WBITS|32)
print(" reading '%s'..." %self.name, len(data))
while offset < len(data):
@ -1232,7 +1232,7 @@ def adjust_material(obj, mat):
elif (uid == VRAY_MTL): # VRayMtl
refs = get_reference(mat)
material = get_vray_material(refs[1])
elif (uid == CORO_MTL): # Corona
elif (uid == CORO_MTL): # CoronaMtl
refs = get_references(mat)
material = get_corona_material(refs[0])
elif (uid == ARCH_MTL): # Arch