ScriptSpot

Script

Bitmap Collector

By loocas · 2012-08-08

Version
1.00
Version requirement
3ds Max 2011
Date updated
2012-08-08
Votes
4
Download
Download
Description

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.

Here's a quick video demonstrating how it works

Additional Info

Installation: Copy the duberBitmapCollector.mcr to the UserMacros folder. Additionally copy the duberBitmapCollector.ini to the plugcfg folder, or, modify lines 23 and 24 of the script to point to your preferred path. This way your defaults will be saved for each session.

Tags: bitmap, maxscript, collector, duber

Comments (15)

fajar · 2012-11-17

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 :(>>

asymptote · 2012-10-24

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

Ralf120 · 2012-10-11

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>) <<

Giles88 · 2012-10-08

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!

Ralf120 · 2012-10-05

The line causes the problem in max 2009 is line 189:
--windows.processPostedMessages()

Error with the collect process

Ralf120 · 2012-09-29

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>) <<

Ralf120 · 2012-09-29

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

br0t · 2012-09-26

Without having tested, this looks amazingly useful ;) Thanks

loocas · 2012-09-26

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

grasshopper · 2012-09-12

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 ?

bobmorane888 · 2012-08-30

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 !

loocas · 2012-08-31

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

loocas · 2012-08-09

Ah! Of course, my apologies, gentlemen. :) The bitmapHDR is a finalRender specific thing, I forgot about that.

Here's an update.

Attachments

n0name · 2012-08-09

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

fajar · 2012-08-09

cant run it on max 2012