toggle between 2 drawing modes
- malcooning
- Posts: 2114
- Joined: 29 Mar 2006, 12:43
- Location: Tel Aviv
- Contact:
toggle between 2 drawing modes
I would like to have the 3rd button on my pen to toggle between 2 drawing modes, in this case Color mode and Erase mode.
Is there a script that allows me to go back and forth between 2 modes?
Is there a script that allows me to go back and forth between 2 modes?
Asaf | asafagranat.com
toggle between Color and Erase: tog-color-erase.grg
With my Intuous 3 pen I use the lower rocker switch set to "right click" so when it is held down, the tip can be used to erase... and it works with any pen or brush mode. Can't you use that?
If not, and you need a simple script to toggle between color/erase mode, this script should do it... unzip into George folder, assign Tog-Color-Erase.grg script to key-shortcut, set 3rd button to shortcut key.
Sven
If not, and you need a simple script to toggle between color/erase mode, this script should do it... unzip into George folder, assign Tog-Color-Erase.grg script to key-shortcut, set 3rd button to shortcut key.
Sven
- Attachments
-
- Tog-Color-Erase.zip
- (503 Bytes) Downloaded 749 times
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
Sven, I'm interested in this script as a key command too but can't figure out how to assign a George script to a key. I have the script in my George folder but can't find it anywhere in the Assign column of key commands.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
- malcooning
- Posts: 2114
- Joined: 29 Mar 2006, 12:43
- Location: Tel Aviv
- Contact:
Re: toggle between 2 drawing modes
@Sven, thanks alot. That's what I was looking for.
I do use the right-click button to erase, but it's not quite an erase. It is more like an undo brush.
well, there's an inconsistency here:
in CustomBrush, the right-click acts as an undo brush. it'll let you erase your drawing with your brush. but it does not behave like the erase mode. the Erase mode gives you more pixel flexibility, really using the full gamut of the brush transparency. Try it with more complex/grainy brushes and you'll see the difference. What's more, is that thes right-click function is valid only for a while. If you change a frame and then return, the right-click won't let you erase your previous strokes. This happens also when you change brushes and return to the previous one. In order to keep erasing you can then only switch to Erase mode. Lastly, if your CustomBrush has a certain wet profile (i.e. flat at the bottom) you won't be able to use the right-click to erase anything. It just doesn't do anything, and the Erase mode does it well.
In all other brush modes (pen, oil etc.) the right-click let's you erase without limit and it is in deed equivalent to the Erase mode.
Cheers!
@Paul, take the .grg file from Sven and open it in Notepad or Wordpad. Select all (Ctrl+A) and copy all the text. Go to TVP, make a new action, select a "embedded George script". Paste the text you copied into the empty George text box, and confirm. now the button works.
I do use the right-click button to erase, but it's not quite an erase. It is more like an undo brush.
well, there's an inconsistency here:
in CustomBrush, the right-click acts as an undo brush. it'll let you erase your drawing with your brush. but it does not behave like the erase mode. the Erase mode gives you more pixel flexibility, really using the full gamut of the brush transparency. Try it with more complex/grainy brushes and you'll see the difference. What's more, is that thes right-click function is valid only for a while. If you change a frame and then return, the right-click won't let you erase your previous strokes. This happens also when you change brushes and return to the previous one. In order to keep erasing you can then only switch to Erase mode. Lastly, if your CustomBrush has a certain wet profile (i.e. flat at the bottom) you won't be able to use the right-click to erase anything. It just doesn't do anything, and the Erase mode does it well.
In all other brush modes (pen, oil etc.) the right-click let's you erase without limit and it is in deed equivalent to the Erase mode.
Cheers!
@Paul, take the .grg file from Sven and open it in Notepad or Wordpad. Select all (Ctrl+A) and copy all the text. Go to TVP, make a new action, select a "embedded George script". Paste the text you copied into the empty George text box, and confirm. now the button works.
Asaf | asafagranat.com
Re: toggle between 2 drawing modes
and once this button created, you can assign this button-command to a key (it should appear in the right-list of the shortkeys configuration panel).
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
Thanks guys. I followed your instructions but when I click on the action button of the custom panel, I get the message: Brush mode available only with custombrush...@Paul, take the .grg file from Sven and open it in Notepad or Wordpad. Select all (Ctrl+A) and copy all the text. Go to TVP, make a new action, select a "embedded George script". Paste the text you copied into the empty George text box, and confirm. now the button works.
What does it mean? What have I done wrong?
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
Re: toggle between 2 drawing modes
Asaf, I see what you mean... but the erase functionality of the right-click-to-erase feature changes depending on whether "drying" is checked or not.
Paul, Asaf's embedded George Script instructions are probably the easiest to setup.
Since most of my scripts are pretty long, and I am constantly tweaking them, I use another way to assign ANY script to a button:
1. Put the .grg script in the George folder
2. Create a button and give it a unique name
3. Go into edit mode for the button
4. Click to add a new line and select "set script" from the options
5. This opens a File selection window where you will go to the George directory and select the .grg file you want assigned to the button
6. Click ok
7. Assign the new button to a key, as you would with any other, in the shortcuts window.
I maintain a separate, undisplayed custom panel where I "hide" all buttons like this which are meant to be assigned to a key and NOT meant to be a displayed as part of the interface.
Sven
Paul, Asaf's embedded George Script instructions are probably the easiest to setup.
Since most of my scripts are pretty long, and I am constantly tweaking them, I use another way to assign ANY script to a button:
1. Put the .grg script in the George folder
2. Create a button and give it a unique name
3. Go into edit mode for the button
4. Click to add a new line and select "set script" from the options
5. This opens a File selection window where you will go to the George directory and select the .grg file you want assigned to the button
6. Click ok
7. Assign the new button to a key, as you would with any other, in the shortcuts window.
I maintain a separate, undisplayed custom panel where I "hide" all buttons like this which are meant to be assigned to a key and NOT meant to be a displayed as part of the interface.
Sven
Re: toggle between 2 drawing modes
Paul Fierlinger wrote:I get the message: Brush mode available only with custombrush...
What does it mean? What have I done wrong?
The script is designed to only work with cutbrushes, thus the error message.
I'll try to modify it to work with any tool and post that here as well.
Sven
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
Sven, I followed your easy to follow instructions and when I try to use the key I still get the message: Brush mode available only with custombrush...
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
THANKS! I can't wait to start using this script for the same reasons Asaf described (I wonder how he got it to work )Svengali wrote:Paul Fierlinger wrote:I get the message: Brush mode available only with custombrush...
What does it mean? What have I done wrong?
The script is designed to only work with cutbrushes, thus the error message.
I'll try to modify it to work with any tool and post that here as well.
Sven
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
Re: toggle between 2 drawing modes
Paul,
I think Asaf was using it with a cutbrush not a penbrush... that's why it worked for him.
Try this version: Tog-Color-Erase-any.grg
Sven
I think Asaf was using it with a cutbrush not a penbrush... that's why it worked for him.
Try this version: Tog-Color-Erase-any.grg
Sven
- Attachments
-
- Tog-Color-Erase-any.zip
- (424 Bytes) Downloaded 732 times
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
Yes! Now it works... but... I am a bit disappointed. I thought it will toggle between a pen brush and another erase brush. This way it toggles just between modes Color & Erase (I guess I wasn't paying close attention) so it has the same problem as just using the Wacom rocker switch. See, I draw with thin lines so my eraser is too thin when it is as wide as the thin drawing line. Is there a script with which I can toggle between two different pen settings? The drawing pen I have set to size 3 with pressure, the erase mode pen I have set to size 10, no pressure.
I use two keys or two CP buttons now but to have a toggle key would be fantastic.
I use two keys or two CP buttons now but to have a toggle key would be fantastic.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
- Paul Fierlinger
- Posts: 8100
- Joined: 03 May 2008, 12:05
- Location: Pennsylvania USA
- Contact:
Re: toggle between 2 drawing modes
Sven, if it helps any to make this simpler, the script could toggle between Pen and Oil Paint tools, Oil Paint being in Erase mode.
Paul
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
http://www.slocumfilm.com
Desktop PC Win10-Pro -64 bit OS; 32.0 GB RAM
Processor: i7-2600 CPU@3.40GHz
AMD FirePro V7900; Intuos4 Wacom tablet
- malcooning
- Posts: 2114
- Joined: 29 Mar 2006, 12:43
- Location: Tel Aviv
- Contact:
Re: toggle between 2 drawing modes
@Sven this 2nd version works great. You made my TVP day!
Thank you.
@Paul a similar script has been posted here in the forums once. It toggled between current and previous tool, back and forth.
But surly a script that toggles between the Pen in Color mode and the Oil Brush in Erase mode should be easy to create. (not I know how though...)
I constantly promise myself to sit and learn some George script. Yep. once I have some time....
Thank you.
@Paul a similar script has been posted here in the forums once. It toggled between current and previous tool, back and forth.
But surly a script that toggles between the Pen in Color mode and the Oil Brush in Erase mode should be easy to create. (not I know how though...)
I constantly promise myself to sit and learn some George script. Yep. once I have some time....
Asaf | asafagranat.com
Re: toggle between 2 drawing modes
yeap, it was called "Swap Tool", a smart script indeed, made by Mark Chong.malcooning wrote: @Paul a similar script has been posted here in the forums once. It toggled between current and previous tool, back and forth.