PDA

View Full Version : How do you combine ZScripts?



Bruce Gregory
09-18-02, 07:52 PM
I recorded several ZScripts that I want to combine into one, with buttons for each script all visible simultaneously. When I run the scripts, they work if loaded one at a time, but when I pasted them together in my text editor and separated each button by some space with the following command: [IButton,"LayersOFF","",[ISet,zscript:space,.25], and run the script, I get the message "Interface item not found." Probably something simple, but I am no programmer. I did, by the way, read "ZScripts 101" and looked at every page concerning ZScripts, but this topic is not covered, nor can I find the proper command for separating buttons with space (formatting). They did show how to separate text and graphics with space - are the same commands applicable for buttons?

Thank you very much,

Bruce Gregory

banez
09-18-02, 08:36 PM
chose the LOADER.txt Combind.zip (http://www2.zbrushcentral.com/zbc_uploads/user_file-1032406482qeg.zip)
all you need to do is Make ONE text file in a note pad for as many buttons as you want a sample would be
[SectionBegin,"Teeth"]
< zscriptinsert,"teeth.txt" >
[SectionEnd]
you put the same name of your recorded zscipt in the above ^^^ code like i did.
C/C/P them out of the ZIP because i had to space the < Bracket > in the forum because it wouldn't show up.

ALL Text File Must Be in The SAME Folder To Work

Bruce Gregory
09-18-02, 09:22 PM
Thanks EZ:

I actually read a little more in the "All about ZScripts section of the QuickLinks and found that bit about "zscriptinsert" and just listed the names of the other ZScripts. The error message I was getting was because I didn't have the .psd file that is created when you record a ZScript in the same directory as the .txt file.

What I produced was rather awkward, though, because for anyone to use it, they need all of the separate files, instead of it all being neatly tied up in one package.

Thanks for your quick attention,

Bruce Gregory

drjjwow
09-18-02, 10:44 PM
one thing you could do is exam other scripts that bring up other scripts ie.. the pinic basket script by pix..

banez
09-18-02, 10:54 PM
yup you don't have the .PSD in the same folder you will get that error.

you can make a List of alot of buttons using the [IButton]code but the problem is when you make a button to that Text file is NOW when you have to go back and try another zscript you have to chose (zscript load)
if you use [SectionBegin] its allways there you click it to open it and click it again to close it no need to chose load zscript and go searching for your next zscript.
CLICK CLICK Thats it :tu:

aurick
09-19-02, 01:05 AM
Please remember that sometimes it just doesn't work to combine scripts in this manner. If both scripts use variables with the same name, the two scripts can conflict with each other and create problems. It doesn't sound like that happened here, but it's something to remember.

Incidentally, Pixolator will soon be releasing a "command center" ZScript to allow you to easy and quickly switch with just one click between your favorite ZScripts. No programming required. :) I've seen an early version of it, and it's really handy!

Bruce Gregory
09-19-02, 02:28 PM
Aurick:

Just as I suspected. I am just now getting into ZScripts, and I was wondering if there would be more utility in this area shortly forthcoming. You probably can't say much, but will there be more provided in the way of access to ZBrush internals with ZScripts?

hopefully,

Bruce Gregory