View Full Version : A suggestion of idea for the "script brains Gurus"
Frenchy Pilou
10-25-02, 12:11 AM
Can you easy put on a key(left/right arrow key for exemple) the size of the tool brush ?
You are drawing and when you push the "key" the size of the brush changes in real time ?
A script can make this or it's only works on in sequential(in this case mouse is the same)time ?
Pilou
Fouad B.
10-25-02, 12:21 AM
yes!! Great Idea !!
use the buttons OR hit the Letter on your keyboard
S for small M for medium L for Large ::sizeME.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035530767bch.txt)
Frenchy Pilou
10-25-02, 04:22 AM
Hi Ez
It's a good beginning !
But now, can you take the current size of the brush tool size=B and
when pusch "S"--->B=B-10 ,
"L"--->B=B+10
with tests if B<1 then B=1
and if B>129 then B=128 or similar.
I don't know if script autorized test :)
Pilou
Hey, I simply modified
[IButton,"S-Small","Made by EZ",[ISet,Draw :Draw Size,42],,,'S']
to
[IButton,"S-Small","Made by EZ",[ISet,Draw :Draw Size,Draw :Draw Size+10],,,'S']
and it works.
I did a zscript, my first. I used EZ's as a template.
brushsize.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035545931gha.txt)
PS: those graemlins in the last post were a result of UBB translation.
I added a slider to change the increment. :)
brushsize.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035549465ivy.txt)
kelly_b_c
10-25-02, 06:21 AM
Is there a reason that the arrow keys can't be used as the shortcut keys? I am not too up to date on my ZScripting so I am not sure myself. I think I will try adding this little script to my default ZScript, and maybe a few others. I have always wanted something that changed brush size with just a keystroke. Thanks!!
What would really be great is the ability to map shortcut keys to the wheel on the mouse. Now that would be Heaven.
This one is my favorite
Ken B's Common Tools (http://www.pixolator.com/zbc-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=003976)
Frenchy Pilou
10-25-02, 08:52 AM
Hi Keith
I try your first "txt".
Great effort ! That works fine !
I don't try your second because
a slider is like a move of mouse :)
The interest of a press key is draw in the same time to change the size of tools.
There something wrong with the "S" ?
I find the little error :) and repare it :)
brush_size.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035564255evw.txt)
I have swearing to never programming :D
Damned I restart :) I am now a perjurer :o
Now more difficult !
The Key "Alternate" for "push" don't work with "D" or "I"
because this shortcurts still exist :)
WHat don't use arrows key ?
I know there are not on Mac but yes on Pc :)
Pilou :cool:
Ps I don't save the script because I Have only demo 1.23b , just edit the "txt" so try it, at home that works fine :)
Mentat7
10-25-02, 09:02 AM
Can you assign brush sizes to number keys? For example:
1=10
2=20
3=30
4=50
6=60
etc.
Or are these already taken?
Well the slider is to change the value it goes up or down by. Say, you could make it go up by 10 or 5 or 1 or even 128. In the first version it goes up or down up 10 only.
Here's an update with mentat's suggestions.
brushsize.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1035643570srz.txt)
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.