Jump to content

Search Material 0.3

   (1 review)

1 Screenshot

About This File

Search Material is a helper plugin to filter the materials in the Material Manager. Enter part of the name of a material, and all materials which do not match by name will be hidden.

 

A "Search" menu item is provided in the Material Manager's menu, as a shortcut to activate the plugin.

Unfortunately, it can not be integrated into the GUI as is the search functionality of the Object Manager.

As a workaround you can drag and dock the plugin window into your layout and save it that way for future usage.

 

Version 0.2 sees the addition of a toggle switch which allows to show or hide the materials matching the entered text.

 

Original thread:

https://www.core4d.com/ipb/forums/topic/114163-material-manager-needs-search-feature/

 

Note: plugin is written to work with R16 upto R23.

Will probably work on R25, and next (???)

 

If you download, use, and appreciate this plugin, please consider adding a comment or review.

Any feedback is much appreciated and motivates me to keep providing plugin solutions for the community.

 


What's New in Version 0.3   See changelog

Released

Version 0.3 introduces an extra Python file, which users can edit, to ignore specific materials.

 

With the help of user @DALIIwe have provided a default setup to ignore the Corona Sky material, which is hidden by default. Any search action would potentially result in this material to show up. Instead, with the new functionality added, this material gets ignored in any search action, and thus remains hidden.

The extra Python file is available in subfolder "modules" and named IgnoreTheseMaterials.py

As a user you can add your own, or edit the current settings to ignore any material.

 

Thanks again to DALII for bringing up the issue, and for the time spent investigating and testing the updated plugin.


User Feedback

Recommended Comments



Thanks Dast for this - it's very helpful.

 

Currently it seems to be case sensitive. Would it be possible to add case sensitivity as a preference?

 

Link to comment
31 minutes ago, Mike A said:

Currently it seems to be case sensitive.

Thanks for the feedback!

You are correct. I missed testing the plugin with lower and uppercase. My bad.

However, I don't see the point in providing a preference for this. I assume that making it case insensitive would be good enough.

Version 0.2 will have this update, but I am waiting for some more feedback before releasing the update, as I am sure I must have overlooked other minor but obvious annoyances.

Link to comment

Case insensitive would be fine for me : )
Many thanks for your generosity in providing this - much appreciated!

 

Link to comment
1 hour ago, Smolak said:

Strange but it totallydoesn't work for me. After that I have only doubled menu line :

1. Does the Python console show anything ?

2. Could you remove the plugin, then relaunch Cinema4D and make a screenshots of your Material Manager with every menu item selected.

As I see from your screenshot you're using R21 or above. Apparently the menu items have changed since R20, which might be the cause of your issue.

MaterialManagerR20.png.57e3437d42d08e18c2e2713419e96fbb.png

 

Link to comment

There´s info on the bottom about functionality thru versions...

 

"Note: plugin is written to work with R16 upto R20. Not tested on R21/S22. Will not work with R23 (yet). "

Link to comment
Guest Cairyn

Posted

Well, xrange does not exist in Python 3 any more, it must be range now (but that is functionally equivalent).

Since the code is encrypted, you can't change it yourself though.

Link to comment

New version 0.2 has been uploaded, which should solve all issues mentioned above (see also the Details tab, for more info)

 

Since different version of Cinema4D have different Material Manager menu I have decided to simply append a Search menu item at the end of the existing menu, instead of trying to insert it into an existing one. As this would clash with other plugins adjusting these menus as well.

 

I have also added a toggle button, which allows to show or hide the materials that match the entered text.

 

Big thanks to user bezo for beta-testing the latest version.

Link to comment

Many Thanks Dash! Very useful tool and thank you very much for taking your valuable time in developing this magic solution.

 

Cheers.

Link to comment
6 minutes ago, jacobite said:

Many Thanks Dash!

Dash ? I feel like some laundry detergent ... 🤣

You're welcome! But it's far from magic.

Link to comment

This sounds great, but I feel dumb now. I can't see how to use this. I put your folder into my C4D folder, then hit Run Script, but I get an "Unknown script file." error. Little help please.

Link to comment
20 minutes ago, BigAl3D said:

This sounds great, but I feel dumb now. I can't see how to use this. I put your folder into my C4D folder, then hit Run Script, but I get an "Unknown script file." error. Little help please.

This isn't a script but a plugin. So make sure to have the folder inside the Cinema4D's Plugin folder.

No need to hit Run Script, as the plugin is loaded when Cinema4D starts.

If all is well, the plugin should have added a "Search" menu item into your Material Manager. You can use that menu item to launch the plugin's search dialog window. Or you can do the same from the Plugins menu.

Link to comment
On 4/8/2022 at 1:53 AM, bhenksuhendra said:

Waiting update for R25. 

The plugin was updated for R23 to support Python 3. This also works for R25, no further update required.

Link to comment
On 12/22/2022 at 3:46 AM, mamatlau said:

Any plan on updating for 2023 version? Couldn't load the plugin.

It's working for me with version 2023.1.0

1. "Search Material" being a Python plugin its welcome message shows up in the Python console window

2. The plugin is running as the additional "Search" menu item is present in the Material manager.

3. Pressing the Search menu item does open the plugin's option window to accept user input for searching and filtering.

 

221219894_Cinema4D2023_1_0SearchMaterial.png.5e1c311b9ee73c0e914a58eaa386adc0.png

Link to comment

I'm currently using 2023.1.3 and in the console it says "Search Material v0.2 - unsupported version" The menu in the material manager is shown "search" but didn't have any sub-menu. 

Link to comment
Guest Massimo Frattesi

Posted

Actually, even me with version 2023.1.0 gives the same error: "Search Material v0.2 - unsupported version".

Link to comment

Tested successfully with version 2023.1.3 as well.

Should you get the "unsupported version" message showing up in the console, then I am afraid you're running (as the message implies) an unsupported version of Cinema4D.

Link to comment

2023.1.3 works for me!

But it looks like the plugin always creates a material called 'Mat' with a Sky texture applied when it is used the first time in each new project. Kind of strange behavior. After that I can delete the material and it won't appear again. 

 

Anyway, really great little plugin to work with in big scenes! Thank you!

Link to comment
1 hour ago, DALII said:

... looks like the plugin always creates a material ...

That is weird.

The plugin retrieves all available materials from the scene, and only changes the flag to show or hide

 

material.ChangeNBit(c4d.NBIT_OHIDE, showorhide)

 

Nowhere in the code does it actually create any material.

 

Link to comment

Did a quick test: This only happened with our new / template scene. In a blank new project everything worked fine, as it should be. 

It looks like it is fixed, if I use 'Delete Unused Materials' before executing the script the first time. Maybe there is an old material somehwere unused in the cache / system / or whatsoever (?)

 

Seems fixed now! Thank you for pointing out that it had to be on our end! 

 

 

Link to comment
2 minutes ago, DALII said:

Seems fixed now! Thank you for pointing out that it had to be on our end!

Glad the issue got resolved.

And many thanks for the feedback. I really do appreciate the follow up response.

Link to comment

×
×
  • Create New...