Is there a way to rename materials/banks?
I have had huge success! Your suggestion worked perfectly! I downloaded a file renamer (free) if anyone needs one. It’s a small easy program.
Link: http://www.sofotex.com/Batch-File-Renamer-download_L21385.html
Also, for those that still have MaterialPack… works the same way. Rename all files named MP***.psd to T**.psd and also the MP***.zmt to ZL***.psd.
Now, I have all my materials on hand with one click! Thanks again for your generosity!
ps… a future suggestion, I would love to have something like this for alphas. I have collected so many, and scattered through different scripts. Not to mention the ones I’ve made! :))
Damn man thats terrific!!!
Thanks a lot or your amazing scripting work!
Thank you! Works perfectly, I can see that I’m gonna be busy organizing my materials.
Once again, thanks for the comments everyone. I also want to thank Pixolator for the inspiration for the MATS utility (and his earlier material managers as well.) As the old saying goes, “We stand on the shoulders of Giants.”
Wenna, glad that worked out!
ABOUT CUSTOM LABELING
There have been several questions about saving custom names for each material and whether this could be done. I thought about that and may later try to add something to ZMATS (v1.1) that will make this possible. Two thousand generically named materials in five generically named directories could tend to be confusing.
I do wish ZScript had more and better options for user input than the StrAsk command. Maybe with the coming SDK someone will write one.
Andre,
As Aminuts said, all you need do is take those files you now have in the ZStartup subdirectory (your label 5) and drop them into the subdirectory named ZMATS (the folder in the list you label as 4).
When you startup ZBrush2 again, look in the Zplugin menu under the PSNAP group and you should see a button named ZMats. Click that and the ZMATS interface should pop right up.
Let me know how it goes?
Sven
Yeah, I want to give special credit to this guy who tested ZMATS early on. We all should thank him for the LIGHTBULB icon in each material window that links to the lighting-setup files that were active when the material was saved. Brilliant idea and great feedback, my friend!
Sven
My error was looking for a separated thumbnail different from PSNAP and not INSIDE PSNAP, was all the time correct but i didnt see earlier¡
Thanks and excuse me please¡
Andreseloy
haha like you said Sven, we stand on the shoulders of giants!
was very happy to see it available when i got back from work.
Sven,
This is brilliant! It works beautifully and will be very useful. I think the way you’ve solved the cavity shader issue is very smart. Thanks!
Just a couple of little little points: I found I needed to switch Fibers on in the Render menu to get them to show in ZMats (only a problem if you do as I did and simply loaded a material from elsewhere and pressed Save). And… I’m not sure I like my interface colors changed (I have my ZScript buttons/sliders set the color I like them!) Otherwise perfect.
And Sven, if you don’t mind…
For anyone that wants to rapidly batch convert Material List or Material Pack files here’s a little zscript utility. Load the zscript, press the button and select the first file such as ‘ML001.zmt’ (ignore anything named zero such as ‘ML000.zmt’). Up to 100 files (of both types) will be converted and put in the ‘FileOutput’ folder. Just copy them to an empty ZMats bank. Should work on Macs too!!
Thank you so much Sven_ superb little script that works perfectly!
Hi Marcus,
Thanks for the feedback and the nice little conversion utility.
I have to plead guilty on the changing button and slider colors. I was experimenting with saving and restoring the user’s original color choices but got sidetracked on something else. Ultimately my intent was to make the color change a user option. I forgot to disable the button color changes but didn’t realize that code was still in the script until after I posted ZMATS… since these are the colors I use for my own interface.
In the next release I will fix that. By the way, the main reason I changed the button and slider colors in the first place was that the original ZList and MaterialsList spheres had transparent backgrounds. Since many users have not customized their interfaces, the five material windows displayed the material spheres against the default dark crimson button colors.
Also thanks for pointing to the fibers issue… There is a sneaky problem with that too. Since the material spheres are generated at 1 to 1 scale, the bushier fibers tend to overgrow the material window! You can see how solving this could get complicated. I just left it up to the user to decide when and how fiber materials would be stored.
You (and all the other scripters who write ambitious ZScripts) know the complicated code you must sometimes write to maintain the feeling of simplicity and convenience in the user’s interface. Actually, for me that is one of the most interesting challenges. I think the ZBrush software is a pretty good resolution of this delicate balance: versatility vs ease-of-use.
Anyway, thanks again for making the conversion process (MaterialList to ZMATS) simple and relatively painless!
For anyone who hasn’t down-loaded Pixolator’s MaterialList of 100 free original materials you’ll find that HERE.
Another similar group of 100 free original materials (called FleshPack) can be found at Glen Southern’s website.
later, Sven
Hi Sven,
You’re absolutely spot on when you say that scripting is a balancing act. I quite understand your reasoning behind both the button color and the fibers issue. Neither is much of a problem and I do like the grey color you’ve choosen! (The inability to change the button/slider colors without changing the user’s settings was frustrating for me when writing ZSwatch. Dark red is no the best color to judge other colors next to it!)
So, what next?
Thank you very much for this plugin Sven and to the tester that worked on it with you. This will come in very handy. I have it installed and have saved some of my mats and all works well. Now I am off to convert my old mats.
Thanks
JIM
If no one has thanked you enough, allow me…Thankyou thankyou thankyou. I love this script
If Pix doesn’t object, and Southern doesn’t object, I have renamed all of the materials (on my computer) in Pix’s material pack and Southern’s skin pack to match the naming on this ZMats script. I saved Southern’s in BankB and Pix’s in BankC and they all work perfectly, with icons and everything. If these 2 guys (and Svengali, of course) don’t object, I would be happy to zip the 2 banks into a file that others can add to their ZMats folders.
Let me know, and it will be done!
Sven gave me an earlier version of his " Z-mats"script and i think its great !
I’m glad everyone can use it now…this is a very talented guy , and i hope he
will surprise us in the future with other great things
jantim
This is awesome Sven, a truly awesome plug-in, thanks so much
Could I just add something though (a bit cheeky but hey)…
As much as I love the ZMATS plug-in, it would be really cool (IMHO) if you also had the option to pull up a whole bank onto the screen at once, so that you can browse easier & quicker (kinda like what 3DSMax’s material manager does) Maybe even be able to delete & name them???
Oh & before I go, ZALPHAS plug-in maybe???
Thank you again
PS Hey Slosh thanks for the offer of the ZMATS folders, I just read this to late, already done it (must login more often)
Svengali vbmenu_register(“postmenu_191081”, true);
Thanks for your great zscript,it would be really cool,
i test it at once, here is my result:
[
and i hope that i could name these zmts:D
Thank you again
Attachments
Once more, thanks all. ZMATS is a utility I use all the time myself. It’s so easy you get addicted to trying out all those different materials on an object. It’s makes whipping up and saving variations on a material simple.
tdrs: The rendering of the sample spheres are influenced by whatever ZBrush settings are in effect, so I can’t say exactly why you are getting those odd results. Some materials are extra sensitive to lighting and color of the object - especially those materials from Froyd. What happens of you restart ZBrush and use the lighting and coloring that Froyd recommends. That’s worked fine for me when I added his materials to my own library and I was glad that ZMATS stores lighting and color with each material.
As for naming materials, perhaps that will be added to the next version.
Bucky: The thing about a utility like this is that access has to be fast. I’m already doing some cheats so that the materials display almost immediately. I’m afraid generating a full screen of mat-samples and keeping it up to date would kill quick access. In the future the promised SDK might provide a way to do this.
A ZALPS utility might be neat - As would a ZMODS and a ZTEXS?
Slosh: I think your offer to post the converted libraries is generous and would make a lot of people happy. However, you really need to get permission from the makers of the original libraries. Explain to them what you want to do and why. Then, it’s up to them.
I suspect that in the next few weeks there may be new libraries posted from other ZBrush users as well. One issue will likely be finding a server that can store large files and that can handle the traffic.
Sven
This is really very good of you to share your hard work and talent with us Sven! small_orange_diamond
small_orange_diamond
It is really MUCH appreciated!
All the best.