New Addon: Import Autodesk .max #22
@ -620,7 +620,7 @@ class ImportMaxFile:
|
||||
try:
|
||||
self.fp.seek(self.sectorsize * (sect + 1))
|
||||
except:
|
||||
print('IndexError: MAX sector index out of range')
|
||||
print('IndexError: Sector index out of range')
|
||||
sector = self.fp.read(self.sectorsize)
|
||||
return sector
|
||||
|
||||
@ -693,9 +693,6 @@ class ImportMaxFile:
|
||||
return self.root.name
|
||||
|
||||
def getproperties(self, filename):
|
||||
streampath = filename
|
||||
if not isinstance(streampath, str):
|
||||
streampath = '/'.join(streampath)
|
||||
fp = self.openstream(filename)
|
||||
data = {}
|
||||
try:
|
||||
@ -1296,7 +1293,8 @@ def get_arch_material(ad):
|
||||
material = Material()
|
||||
try:
|
||||
material.set('diffuse', get_color(ad, 0x1A))
|
||||
material.set('specular', get_color(ad, 0x02))
|
||||
material.set('specular', get_color(ad, 0x05))
|
||||
material.set('shinines', get_value(ad, 0x0B))
|
||||
except:
|
||||
pass
|
||||
return material
|
||||
|
Reference in New Issue
Block a user