Select Objects By BitmapTex

14 votes
Version: 
1.6
Date Updated: 
05/26/2012
Author Name: 
Branko Živković

•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• VERSION 1.6
v15
With this tool you can quickly perform certain operations that normally require more time to perform, such as:
. Selecting all scene objects by choosing a specified bitmap texture used in the current scene file. >>>
. Selecting objects with the same material as the first object in the selection.
. Selecting all scene objects by choosing a specified modifier from the other objects.
. Cleaning all unwanted modifiers or materials from selection.
. Attaching or detaching objects with given options.

Additional Info: 

••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Usage:
All commands and options are self-explanatory.
If you have problems or questions please post them on this page.
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.1]
-> Fixed some minor bugs
-> Optimized code
-> Added attach method (works with geometry objects only) with options:
...#1: Specify new name for attached object
...#2: Auto assigne material from the Material Editor (active mtl slot)
...#3: Place pivot at center of newly attached object
...#4: Automatically remove the texture filename from dropdown list
...#5: Add newly attached object to specified layer
NOTE: If the name (from edittext field) matches the layer name (from Layer Manager) then new object
will be added in that layer else it be placed in the new layer (with name from edittext).
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.2]
-> Improved performance and code optimizations
-> New options:
...#1: *Advanced Select By Material* (perform searching inside groups)
...#2: *Convert Selections To Editable Poly* objects
...#3: Select all objects with specified modifier
...#4: Added cleaning method (for unwanted modifiers and materials)
...#5: Added *Detach* operation with some options
...#6: Object wirecolor colorpicker
...#7: *Assigne Random Wirecolor* when perform Attach | Detach operations
...#9: *Exclude Groups From The Process* option
NOTE: Attach | Detach operations works only with Editale Poly types of objects.
Detach operation not supports options:
-- *Exclude Groups From The Process*
-- *Remove Bitmap Name From List*
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.3]
-> Code optimizations
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.4]
-> Improved detach method (now supports multiple selected objects)
-> Also you have two new options (radiobuttons):
...#1: *Detach Selection To Elements*
...#2: *Detach By Face Material ID*
NOTE: All objects that have only one material ID assigned will be excluded from process.
...#1: *Sort List Names By Nodes Count* (sort texture list by greatest number of assigned textures first)
NOTE: if this option is not checked then list will be sorted alphabetically.
...#2: Added button for cleaning the texture dropdown list.
...#3: *Open / Close Layer Manager Dialog* checkbutton
...#4: *Clean Empty Layers* button
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.5]
-> A few bugs fixed
-> New options:
...#1: *Select By Object Layer* (select all objects that are placed in the same layer as selected object)
...#2: *Select Faces By Face MtlID* (select all faces of EPoly that are used the same face ID as selected face)
...#3: *Detach Types* dropdown list (replaced radiobuttons)
-- *Selection To Elements*
-- *By Face Material ID*
-- *Selected Faces* [NEW] (supports multiple selected object with already selected faces)
NOTE: You can use this (last) option in combination with *Select Faces By Face MtlID* button.
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Update: [version 1.6]
-> New option:
...#1: *Assigne Sub-Material Name* (every detached object will have sub-material name)

••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• Requested: by asymptote

Version Requirement: 
2010+
AttachmentSize
bga_selectobjectsbybitmaptex_v.1.5.ms19.71 KB
bga_selectobjectsbybitmaptex_v.1.6.ms20.1 KB

Comments

Comment viewing options

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

...

"Clean Selected Objects" works on selected objects.
You have 3 options ie checkboxes. So you can remove the specified modifier from selection, all modifiers from selection and all materials from selection. Just check one option.

barigazy

hansolocambo's picture

One of most amazing scripts around, but ?

Very well done with a nice UI and all. Damn impressive mate. Thanks !

I'm facing a problem that of course can be solved by hand, but on hundreds of textures it takes a lot of time :
I have a mesh with hundreds of parts and about a dozen different Bitmap used. But it's been auto generated by a software that creates one Standard material for each object even if 50 more objects share the same bitmap. So thanks to your script, I can select all those objects and, by hand, assign the same material/bitmap. But I was excpecting the "Clean Selected Objects" to do that automatically which it does not.
Could you please advise ?

Thanks ;)

stanley_asbeek's picture

Edit mesh

Hi,
Your script looks great, unfortunately it doesn't work with edit mesh objs.
I often work with object that can't be converted to poly and need to stay as mesh. (otherwise the geo wigs out)
Would it be possible to get this working with edit mesh?

Thanks
Stan

barigazy's picture

...

This tool is pretty much self-explanatory. Maybe someone have free time to make video for you

barigazy

Nicholas87's picture

Help me

I hope Guy can make tutorial by video to introduce this Plugin's function ,Thanks so much

barigazy's picture

...

Send me test scene and I will check tomorow

barigazy

Wilbert's picture

With me on Max 2013 x64 the

With me on Max 2013 x64 the bitmap textures will also not load into the dropdown box. No error messages. 'Collect Scene BitmapTex's FileNames' does nothing.

ccrusher's picture

Wow, fast response. I

Wow, fast response.
I actually ment just to remove the entry from list.

barigazy's picture

Yep.It is possible. Are you

Yep.It is possible. Are you want to attach all objects that share same textures (from any map slots) and then remove material from newly attached object or jus from script list?

barigazy

ccrusher's picture

Great

Thanks a lot for this extremely handy script !!

I am not familiar with MAXScript, but is it possible to get some automation to it ?

My suggestion would be:

Collect BitmapTex-> for each entry in the list do for example select, attach and clean materials until the list is done.

It would be a huge timesaving function for our workflow.
Thx

Comment viewing options

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