This script was created in order to help artists with collecting and re-pathing bitmaps (textures) that are coming into the scene files from all over the places.
This tool will let you automatically re-name the bitmaps based on dynamic names as well as your defined static names. It will then copy all the bitmaps to a single directory of your choosing and automatically re-path the bitmaps in your scene, so that you don't have to manually do a thing.

Comments (15)
Comment policy
find "windows.processPostedMessages() " and make it comment like "--windows.processPostedMessages()". done.
also it work in max 9 too if you make delete @ and make the path "//". BTw you need avg extension.
Same message in 2010 64 :(>>
Same message in 2010 64 :(
>> MAXScript Rollout Handler Exception: -- Unknown property: "processPostedMessages" in #Struct:windows(
getMAXHWND:,
getChildHWND:,
getDesktopHWND:,
getChildrenHWND:,
addChild:,
sendMessage:) <<
Edit: Ahh, just seem your version requirement, that's a shame...thanks anyway.
max 2009 error message
this is what happen when using it in max 2009 ...
>> MAXScript Rollout Handler Exception: -- Unknown property: "processPostedMessages" in #Struct:windows(
getMAXHWND:<fn>,
getChildHWND:<fn>,
getDesktopHWND:<fn>,
getChildrenHWND:<fn>,
addChild:<fn>,
sendMessage:<fn>) <<
Great script, thanks for your work! I gave it a try with my new project ( it's about how to download free swf player ) and it worked perfectly. Cheers!
The line causes the problem in max 2009 is line 189:
--windows.processPostedMessages()
Error with the collect process
This is what the listener says:
Copied: C:\Maps 01\AS2_leather_01.jpg to: C:\Maps\MyProject_0001.jpg
Retargeted: C:\Maps 01\AS2_leather_01.jpg to: C:\Maps\MyProject_0001.jpg
-- Error occurred in i loop; filename: C:\Program Files\Autodesk\3ds Max 2009\UI\MacroScripts\duberbitmapcollector.mcr; position: 6762
-- Frame:
-- i: 1
-- called in btnCollect.pressed(); filename: C:\Program Files\Autodesk\3ds Max 2009\UI\MacroScripts\duberbitmapcollector.mcr; position: 6833
-- Frame:
-- allInputBitmaps: #("C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\Wood_39_seamless_1024.jpg", "C:\Maps 01\Wood_39_seamless_1024.jpg", "C:\Maps 01\Wood (93).JPG", "C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\AS2_leather_01.jpg", "C:\Maps 01\Granite (10).JPG", "C:\Maps 01\Granite (1).JPG", "C:\Maps 01\11db9_RedkenSpikeyHair.jpg", "C:\Maps 01\style-102.jpg", "C:\Maps 01\1218-01_hair_in_tub_li.jpg", "C:\Maps 01\aamir-hair-style.jpg", "C:\Maps 01\land08.jpg", "C:\Maps 01\01.JPG", "C:\Maps 01\01.JPG", "C:\Maps 01\46_towel03_diff.jpg", "C:\Maps 01\46_towel03_disp.jpg", ...)
>> MAXScript Rollout Handler Exception: -- Unknown property: "processPostedMessages" in #Struct:windows(
getMAXHWND:<fn>,
getChildHWND:<fn>,
getDesktopHWND:<fn>,
getChildrenHWND:<fn>,
addChild:<fn>,
sendMessage:<fn>) <<
i really need help .. every time i click the collect button it stops on the line 189 and i get error message
please see the attached picture ..
Attachments
Without having tested, this looks amazingly useful ;) Thanks
Actually, that shouldn't be a problem.
I'll see about that in the near future as I'm very busy these days. Thanks for the input. :)
By the way, it supports HDRs already.
Great Script
Hi,
Great script it is really handy to gather all those assets up at the end of a project and prepare the scene for archiving. Is there any chance you can include .ies files and .hdr files in the collection too?? xrefs and Vrayproxy's would be a welcom addition as well. :)
Error ?
Hello,
really nice script ! Thank you for sharing :)
I got an error on the script launch but it still works and begin to collect files and do his stuff ; then the same error appears again and stop the script :
Copy of the listener :
>> MAXScript Rollout Handler Exception:
-- Runtime error: No method found which matched argument list << (this is the error message)
So it stops on the line 73 :
(line73) local curFileExt = dnPath.GetExtension(curBmp)
Any idea ?
Config :
XP64
MaxDesign2012 SP2
Maybe some plugins can cause errors ?
Anyway thank you !
Hey, bobmorane, this is weird. It seems that you have an old installation of .NET, because the dnPath is a .NET class and its method.
Try updating your .NET via the windows update, that should help.
Error
Ah! Of course, my apologies, gentlemen. :) The bitmapHDR is a finalRender specific thing, I forgot about that.
Here's an update.
Attachments
max 2012
error in line 128:
join allBitmaps (for o in getClassInstances bitmapHDR processChildren:True collect o.fileName)
message: --Type error getClassInstances requires Maxclass, got: undefined
cant run it on max 2012