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

View File

@ -168,9 +168,8 @@ DIFSECT = 0xFFFFFFFC # (-4) denotes a DIFAT sector in a FAT
FATSECT = 0xFFFFFFFD # (-3) denotes a FAT sector in a FAT FATSECT = 0xFFFFFFFD # (-3) denotes a FAT sector in a FAT
ENDOFCHAIN = 0xFFFFFFFE # (-2) end of a virtual stream chain ENDOFCHAIN = 0xFFFFFFFE # (-2) end of a virtual stream chain
FREESECT = 0xFFFFFFFF # (-1) unallocated sector FREESECT = 0xFFFFFFFF # (-1) unallocated sector
MAX_STREAM = 2 # element is a stream object
STGTY_STREAM = 2 # element is a stream object ROOT_STORE = 5 # element is a root storage
STGTY_ROOT = 5 # element is a root storage
TYP_NAME = 0x0962 TYP_NAME = 0x0962
INVALID_NAME = re.compile('^[0-9].*') INVALID_NAME = re.compile('^[0-9].*')
@ -656,27 +655,6 @@ class ImportMaxFile:
entry = self.direntries[sid] entry = self.direntries[sid]
return self._open(entry.isectStart, entry.size) return self._open(entry.isectStart, entry.size)
def get_type(self, filename):
try:
sid = self._find(filename)
entry = self.direntries[sid]
return entry.entry_type
except:
return False
def getclsid(self, filename):
sid = self._find(filename)
entry = self.direntries[sid]
return entry.clsid
def get_size(self, filename):
sid = self._find(filename)
entry = self.direntries[sid]
return entry.size
def get_rootentry_name(self):
return self.root.name
################### ###################
# DATA PROCESSING # # DATA PROCESSING #