Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import multiple files

Import multiple files

Ability to import multiple files, like STP, STL, OBJ or FBX at once. A checkbox that automatically renames the imported model in 3Ds Max to the name of the file.

It's insane that we need scripts for such a basic functionality in one of the worlds oldest and most used 3D software.

3 Comments
jibijib
Collaborator

I do import a lot of FBX's - it does get tiring having to import them one at a time.

teratron
Advocate

+1000

teamSP26J
Advocate

Here is my python script, you can modify it. Save it in scripts folder and then just make a macroscript in usermacros foldre that runs it.

 

multiImport.py


try: # older DCC versions
from PySide2 import QtWidgets, QtGui, QtUiTools
except: # newer DCC versions
from PySide6 import QtWidgets, QtGui, QtUiTools

import pymxs
rt = pymxs.runtime

def main():
dialog = QtWidgets.QFileDialog()

files = dialog.getOpenFileNames(None, "Multi Importer", "","All Files (*.*);; All Supported Files (*.fbx *.step);; FBX (*.fbx);; STEP (*.step)")
for f in files[0]:
rt.importFile(f, rt.name("noPrompt"))


if __name__ == "__main__":
main()


multiImport.mcr

 

macroScript multiImport category:"MyTools"(
python.ExecuteFile ((GetDir #scripts)+"\multiImport.py")
)
 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report