PDA

View Full Version : Adding MaterialList and MaterialPack Functionality



Digits
01-25-02, 07:55 AM
Hi folks

After fooling around with MaterialPack and MaterialList especially to create my own groups of commonly used Materials I wished for a way to automatically load them into my Zbrush Document. Come to find out it is very easy to do! Since the Zbrush Palette is limited to only 65 materials this script will only load the first 65 entries in the MaterialPack or any MaterialList directory that you have created.

Check it out! Just copy and paste the following in your existing MaterialList or MaterialPack Zscript.

//************************************************** ***************
//-------------------LOAD MATERIAL Pack----------------------------
//Loads the first 65 materials into Zbrush Document Automatically
//Works with Pixolator's MaterialList and MaterialPack Zscript
//To Use Open MaterialList or MaterialPack in NotePad
//And Paste the button at the bottom of the Script
//Or Position it as desired
//By Digits
//************************************************** ***************
[PD]
[iButton,"Load Material Pack ","Load Material",
[varset,matsel,0]
[Note,"Loading Materials",,1]
[loop,65,
[ISet,Material:ItemInfo,matsel]
[FileNameSetNext,matfile(matsel)]
[IPress,Material:Load]
[VarInc,matsel]
[Ipress,Material:ShowUsed]
]
[Note,"All Done!",1]
,,[TextCalcWidth,123456789012345678]]

Digits
01-25-02, 08:11 AM
******WARNING*******

Don't run this script on any existing Zbrush Document that you have because it will overwrite any materials that you have currently in the document. If you accidently do this, don't save the file :)

Only use this script when you are starting a new project or you don't care

Like I always say "Get Loaded!"

banez
01-25-02, 08:30 AM
cool Thank for the I.N.F.O.
ill Try it later on im trying to get My comp back in order i got it a Mess

boozy floozie
01-25-02, 10:03 AM
Many thanks for this generous posting.
The Flooze

Stonecutter
01-25-02, 10:48 AM
Hey Floyd, you old sea-dog! ;)
First, thanks for the great script addition...This one is right up my alley!

Second, Thanks for the scarey warning! Really jump-started the old pump!
:cool: :tu: :tu: :tu:

juandel
01-25-02, 11:09 AM
ha! that comes in mucho handy, Digits! :tu: :tu: :tu:

first thing i’ll do is disregard your warning and load a few .zbr docs to have a look at them with new material(s?) all over :D :D :D

- juandel

DeeVee
01-25-02, 02:16 PM
Thanks for sharing Digits. A very useful and timely script.

Muvlo
01-25-02, 09:11 PM
Good idea. :u: You have a very good habit of making scripts that make perfect sense. :)