View Full Version : "zscriptInsert" and Button Formatting
Bruce Gregory
09-19-02, 10:42 PM
Davey or Anyone:
When you use the <zscriptInsert> command, it puts the referenced script button right where you put it in the script, right? However, I have written a script that calls for about 20 other scripts (they are all recorded ZScripts). (I did it that way because I couldn't figure out how to cut and paste everything together without many errors occurring). So, if I want to organize my buttons so that they appear in an orderly "across the screen" fashion, which command should I use? I have tried [penmove x,y] but the results are not predictable by me, anyway. Scripting is hard, let's go to the mall.
Thank you very much,
Bruce Gregory
Don't use the insert command. Instead, use IButtons, with a FileNameSetNext followed by IPress,ZScript:Load
For Example:
<BLOCKQUOTE>quote:</font><HR>
[IButton,"Golden Idol","Load Rusted Golden Idol Script",[FileNameSetNext,RustedGoldenIdol\RustedGoldenIdol. txt][IPress,ZScript:Load]]
<HR></BLOCKQUOTE>
Using this method, you have total control over where the buttons are in relation to each other. The PenMove command will have predictable results. You also completely avoid confusion from buttons being named the same thing (like a dozen "Play" buttons).
And remember: Pixolator will soon be releasing a very cool ZScript command center. I'd recommend waiting for it to come out, to be honest. It'll be worth the wait!
Lets say your comman center you have 20 Buttons to 20 zscripts.txt
if you use IButton it will load the script you used but when your done you have to RE Load your comman center back in threw zscript Load so whats the purpose?
if you use
[SectionBegin,"HERE"]
[SectionEnd]
it will collasp and open Each and every button to your 20 zscript and ALL will stay in the tutorial veiw window so there will be no need to chose (zscript load) once you run one of your zscript off your 20 comman center.
if your runing 20 Buttons i Wouldn't run [penmove] and start moving them all over the place your going to have a mess sooooooooooo best to start on the top left and when you get so many buttons going across the top is to drop a roll of buttons down you can do that by using [PD] now if you want to drop the roll down with more spacing use 2 pd like
[PD]
[PD]
Here is a Sample ::Pd.zip (http://www2.zbrushcentral.com/zbc_uploads/user_file-1032525811xgy.zip) Load the LOADER.TXT Thats the comman center.
just a Demo and ALL Text/txt file Must Be in the SAME Folder to work
The left arrow on the keyboard allows you to return to the previously loaded ZScript without having to use the ZScript:Load button. So it's easier to get a good look with IButtons rather than sections.
Although the sections option is a very good alternative, it still leaves you with no control over what is inside the section once the Insert command is used. It also requires that sections expand and collapse, which means that it's necessary to scroll the ZScript window a lot, where it's not necessary at all with IButtons.
That left arrow key is a very handy thing!
if you have 20 IButtons the arrow keys nice for (previous) or (Next) BUT to make a zscript to be previous or next you have to load the zscript "First"....
so for that to work right you have to load 20 zscripts,,,1 by 1and thats time consuming..
you can break the buttons up so you don't have to skroll like Button 1 threw 10 and 11 threw 20 and give each buttons names to identfiy them.
Go here ::
ControlCenter.zip (http://www2.zbrushcentral.com/zbc_uploads/user_file-1032556209cav.zip) Load the MAINLOADER.txt thats your control center
Bruce Gregory
09-20-02, 03:11 PM
Aurick:
Thank you for your speedy attention, that was precisely the bit of information I was lacking. Is the "Rusted Golden Idol" scripts and good one to take a look at for a demonstration of this principle - or is the a better example?
EZ:
Thank you, as well. I have been studying those examples you sent me and have learned a lot. What a great community of people we have here, eh?
sincerely,
Bruce Gregory
LOL It was just the first script that popped into my head when I was writing the example, and I used it because it showed a subdirectory in use. I'm not sure that I even got the name of the file or the path exactly right. Its use was for illustration, only. :)
Bruce Gregory
09-20-02, 05:22 PM
Aurick:
I tried your technique and the buttons appear all nicely arranged as I planned, but when pushed, (one at a time), the button layout disappears and the ZScript window shows only the ZScript who's button I just pressed.
I ended up using your default Zscript as a reference, (one must use the forward slash and not the backslash). Is this one of those situations where you need a "back to index" button. If so, that is not my objective, but rather to present 2 rows of buttons that launch prerecorded ZScripts on command, but the button layout never vanishes. Maybe this cannot be done with recorded zscripts, yet. Still, there's no telling when the "bonus upgrade" will arrive, and in the meantime, I have work to get done, so I must put something together that will assist me.
Functionally, using "zscriptInsert" works, but puts everything on its own line, requiring much scrolling in the window. Is there any other way?
hopefully,
Bruce Gregory
you said"Functionally, using "zscriptInsert" works, but puts everything on its own line, requiring much scrolling in the window. Is there any other way?,,,,,,,,,,,,,,,,,,,,,,,,,,
im runing screen resolution 1024 x 768 out of 2 SET i dont have to skroll at all if soooooooooooooo break it up even smaller like 1 threw 5 and 6 threw 11
Bruce Gregory
09-20-02, 06:29 PM
EZ:
You wouldn't want to show me (in zscript form) just what you are talking about, would you? For the sake of argument, let's say we need 20 buttons with long labels, 16 of which need to be on one line. Can you do it with "zscriptInsert"?
Thanks for your replies,
Bruce Gregory
the Longer the labels means the shorter you can keep it on the same Line.
The Tutorail View window can Only handly so much Space.
which means you would have to drop the Buttons or what ever down a Line..
WHICH you can still get by with OUT Skrolling like in the sample i posted with 20 fake scripts
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.