Improved action

This section is dedicated to the feature & improvement requests (be sure what you are asking does not exist yet in TVPaint Animation ;) )
Post Reply
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Improved action

Post by Mads Juul »

I got this idear about how to make it easyer to use the powers of scripting in TVPaint.


One thing thats always irritated me about Actions in photoshop is that you cant get it to do decisions like:

if the color is blue do this:
or if the color is black do that.

there for I learned Photoshop scripting . And its looks to be the same thing in TVPaint.

You got to make a script to make a decision.

But the script are in files for them selves who make them difficult to learn, and you cant use keystrokes. with them like you can with an Action.

So what about combining the two?

allready there is, in the action a "type scripts command"

What about you could type in more tha one line.

and a variable you had declared in command 0 would be remembered in command 2.

And the whole action Whould be read as a script so you couls enclose
a commnd containing a keystroke in a IF ELSE END condition tests and make DECISIONS....

I included a examble of an action where I make decisions regarding the a pen color and rund anither bins action.

in the first Commandslot I typed this script

Code: Select all

PARAM none

tv_getAPen

PARSE result red green blue alpha

color = red" "green" "blue

IF CMP(color,"255 2 0") == 1
it gets the A pen color and if the color is Blue
It selects the Black Pencil action from the Sketch Panel

Then a Have a New piece of scripting

Code: Select all


END

IF CMP(color,"255 255 255") == 1

that ends the If statement

and then checks that if the color is black it runs the next command

which is the blue pencil action from the sketch panel

the last command is a "END" that finish the IF conditionals tests

I think this would improve the use of TVP and scripting alot

And make it a easier to disribute script among computers/users you export your Custom Bin and the scripts would be Included. Then you also could type in your script directly without leaving TVPaint.
and and you would have access to all the keystrokes throug your scripting

-mads
Attachments
tvp_improvedAction.png
Post Reply