Batch Loader

Version: 
2.0
Date Updated: 
10/26/2012
Author Name: 
Anubis

Quick Merge/Import multiple files.

UI v.1.7

Features:

  • Merge multiple .MAX files
  • Import multiple .* files (ie all that can be imported)!
  • Log all files where failed to load to Listener (if any)
  • Multiple history for recent used paths available
  • Limit count of recent paths to keep in history added
  • Group option available
  • Layer option available
  • Attach option available
  • "Auto" option (if is checked no prompt for Merge/Import) *
  • Dialog window is resizeable
  • Auto rename duplicated objects on import

[*] If "Auto" is unchecked then default Max Merge/Import dialog appear for each file.
It is slower alternative, but it is important and useful in some cases.

Additional Info: 

I noticed that there is interest in scripts like "Batch Merge".
I also read the comments and requests, so here's what I created.

Version history:

  • 1.0 - initial version
  • 1.1 - minor code polish up
  • 1.2 - INI file previously saved to Scripts folder, now saved within script source file location
  • 1.3 - added minimal dialogue size when the dialogue is resized
  • 1.4 - suppress the name conflict dialogue when imports and "Auto" option is on (now auto rename)
  • 1.5 - create layer per file using it file name as label
  • 1.6 - minor fixes
  • 1.7 - attach per file as mesh or poly
  • 1.8 - suppress additional imports dialogue; browse for folder dialogue start in recent path
  • 1.9 - auto renaming rewriten (as the auto suggested name is not always correct, now append count digits)
  • 2.0 - now check (by name) for existing layer and create new only if not exist

(TodoList: Remove stored paths that no more exist)

Version Requirement: 
3ds Max 9+
AttachmentSize
batchloader_19.ms9.84 KB
batchloader_20.ms10.01 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asymptote's picture

@ barigazy, maybe, but I'd

@ barigazy, maybe, but I'd like Batch Loader to do this automatically for me so both areas are relevant :P

barigazy's picture

...

Hey asymptote
You question is more for forum topic :)

barigazy

asymptote's picture

Renaming Imported Files.

More of a question than a request, but is it possible to rename 3ds files when the original name is longer than 8 digits ?

eg:

Original filename is "Driver_Status_green.3ds"

Imported filename is "Status_g00"

Is it beyond the capabilities of the 3ds file format and/or Maxscript, that the imported file can be renamed to the original file automatically ?

Thanks

headd's picture

Great script...

Is there any way to:

- Read subfolders? Let's say i want to merge multiple max files that each has it's own directory.
This script, http://bit.ly/19Af8e5, manages reading subfolders great.

- Merge multiple max files and keep their individual layers, while adding the file name as prefix, something like:
teapot.max_layerA
teapot.max_layerB
teapot.max_layerC
box.max_layer0
box.max_layerA

Thanks

barigazy's picture

...

I'm glad to hear that your problem is solved.
I hope that Anubis will integrate this into the new update.

;)

barigazy

rachka's picture

barigazy thank you!

thanks barigazy! everything's OK now!

barigazy's picture

...

Also not forget to use sort method as I explained in my previous post (lines 128,147,158)

barigazy

barigazy's picture

...

I hope this can solve problem.

--Replace line 172 ei next code
for i = 1 to sel.count do append seqFiles listFiles[sel[i]]
--with this
for p in listFiles do
(
	for i in sel where matchPattern p pattern:("*"+mlb_files.items[i]) ignoreCase:on do append seqFiles p
) 

barigazy

barigazy's picture

...

I found the problem.
You need to sort "Listitems" array before load in to multilist box.

barigazy

barigazy's picture

...

Hey guys I think that this is not right place for discussion. Can someone open new threat in forum section or use threat posted below as example and we continue discussion there.
BTW sorting problem can be solved using qsort method. Take a look this EXAMPLE

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.