1 click Scancleaner

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

1 click Scancleaner

Post by Peter Wassink »

I'd like to make a custombutton to do a "Scan Clean".
The scancleaner is an FXstack function and therefore i have to set it up new for every new project.
And because the default setting is not neutral(a longtime frustration) i have to go into the Profile every time as well, all in all a lot of steps ( 8 mouseclicks) that i'd like to bring down to just one

so is there a way to connect an fx to a custombutton action?
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
User avatar
slowtiger
Posts: 2950
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: 1 click Scancleaner

Post by slowtiger »

I wonder if it's possible to add 2 buttons to the scan cleaner FX:
"make this default" and "return to factory default".
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
furushil
Posts: 408
Joined: 12 Feb 2012, 21:02
Location: Berlin
Contact:

Re: 1 click Scancleaner

Post by furushil »

A while ago Sven suggested this here: viewtopic.php?f=10&t=8600" onclick="window.open(this.href);return false;
Here's one way that I"ve used for years.

I have a bunch of FX.bin files stored (Exported) in a TVPaint subfolder named FxBin. when I want to create a button that will execute one of the effects, I create the button and insert this single command line:

tv_StackExecute FxBin\EffectFilename.bin

Replace the FxBin\ above with the subfolder where you store your Effects, and replace EffectFilename.bin above with your own effect.bin file name.

This should allow you to apply simple effects without even seeing the FX interface. In most cases, I create an FX and Export it with modest settings so that I can vary (heighten) the effect by clicking on the button I created multiple times.

There are other solutions to making FX buttons but this is the simplest I think.

Sven
MAC OS 12.6.2 - TVpaint 11.7.1 PRO 64bit, Wacom Intuos Pro
User avatar
ZigOtto
Posts: 4102
Joined: 17 Feb 2006, 22:50
Location: south-Petazonia

Re: 1 click Scancleaner

Post by ZigOtto »

yep, I use it a lot too, :)
... and I have my FSC button for a long time now, (FSC for "Flat Scan Cleaner")
the command tv_StackExecute pathbinfilename is working like a charm for custom FXs you are using constantly,
and, the cherry on the cake, it doesn't destroy the stacked FXs of your project.
unfortunately, these buttons aren't as easy as that to share with others,
because the specific path where the bin have been saved/stored.
User avatar
D.T. Nethery
Posts: 4225
Joined: 27 Sep 2006, 19:19

Re: 1 click Scancleaner

Post by D.T. Nethery »

slowtiger wrote:I wonder if it's possible to add 2 buttons to the scan cleaner FX:
"make this default" and "return to factory default".
+1 . Make the user's Scan Cleaner settings the default (stays that way until reset).
User avatar
Peter Wassink
Posts: 4437
Joined: 17 Feb 2006, 15:38
Location: Amsterdam
Contact:

Re: 1 click Scancleaner

Post by Peter Wassink »

furushil wrote: I have a bunch of FX.bin files stored (Exported) in a TVPaint subfolder named FxBin. when I want to create a button that will execute one of the effects, I create the button and insert this single command line:

tv_StackExecute FxBin\EffectFilename.bin

Replace the FxBin\ above with the subfolder where you store your Effects, and replace EffectFilename.bin above with your own effect.bin file name.
This should allow you to apply simple effects without even seeing the FX interface. In most cases, I create an FX and Export it with modest settings so that I can vary (heighten) the effect by clicking on the button I created multiple times.
There are other solutions to making FX buttons but this is the simplest I think.
Sven
That is it... Just what i need, and as zig mentioned, good for lots of other fx's too.
Thank you Paul, Sven and Zig! :D
Peter Wassink - 2D animator
• PC: Win11/64 Pro - AMD Ryzen 9 5900X 12-Core - 64Gb RAM
• laptop: Win10/64 Pro - i7-4600@2.1 GHz - 16Gb RAM
Post Reply