Select objects by texture (path)

I have an imported scene with nearly 4000 objects, I run Relink Bitmaps to fix the texture paths, but if I show all textures in viewport, max hangs and crashes due too the hundreds of duplicate textures.
There are literally 100's of objects with the same texture.but different material colours.
Is it possible to select objects via texture ? I've tried all other methods in max and none do what I need,I don't fancy doing this manually.
I found this thread of a similar problem....

http://www.polycount.com/forum/showthread.php?t=60923

but no solution other than it may be possible via maxscript.

thanks

Comments

Comment viewing options

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

Check this out new version

Check this out new version 1.1
http://www.scriptspot.com/3ds-max/scripts/select-objects-by-bitmaptex
I suggest you after finish your scene (with this tool) then
use this tool for cleaning
http://www.scriptspot.com/3ds-max/scripts/cleaner

bga

asymptote's picture

Thanks barigazy, my steps are

Thanks barigazy, my steps are now simply to select an object, pick material, run your script, apply material, then run soulburns attach all objects.
I optimize my scenes in no time ;)

barigazy's picture

ok, i'm glad that my little

ok, i'm glad that my little script help you

bga

barigazy's picture

Select Objects By BitmapTex

I just finis the script.
Try an tell me what do you think.
At least put some comment
http://www.scriptspot.com/3ds-max/scripts/select-objects-by-bitmaptex

bga

asymptote's picture

1. Diffuse only 2. I've

1. Diffuse only

2. I've Attached a summary info of the scene

3. I think so ;) I just need to select an object, and have max select all other objects using the same texture,Max has just about every selection method but this, then attach them to one mesh and apply a single texture, of course I can do the last steps manually.
What seems to happening as they all have separate materials max is loading hundreds of duplicates of the same texture.

4. No, code gives me migraine ;)

thanks for looking.

AttachmentSize
full_track_relinked.txt 1005.82 KB

Comment viewing options

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