Page 1 of 1

Lock an assigned color to all strokes on a layer

Posted: 08 Jul 2023, 13:56
by TVPUSER
Many animators I know like to have their color separation lines (shadow/hi-light/etc) on separate layers. My peers use clip studio paint and I can't help but watch in envy as they have the ability to have each cel expand into separate layers that have locked colors (black,red,green,blue...)

Is it possible for us to have an ability to assign a fixed color to a layer?

Right now the only way to somewhat mimick what cap has is to use something like the tv_matrix command but we always have to execute it which is really inconvenient..

The benefit of locking the color to a layer is that you can easily switch between layers and you'll never mistakenly put the wrong colored stroke on another layer (it has happened too often to me).



This is a pie in the sky idea but, I think having some sort of instance mirroring could be cool too. Like having the ability to have 3 layers and grouping then to Mimic any change to the instance number/breaks. This is already possible in tvpaint but we don't have an automatic/multi layer approach..

Re: Lock an assigned color to all strokes on a layer

Posted: 11 Jul 2023, 15:04
by Peter Wassink
I think you should be able to create a custom panel with custombrushes that will do this.
so say: if you select the blue toolbrush it will jump to the "blue" layer. (either "blue" as a name (layer ID) or perhaps a layergroup)

But i don't think it can be done without some scripting,
something like: "Goto layer named "blue" but unfortunately i can't help you with that

edit:

there doesn't seem to be a "GOTO layer" command. (here: https://www.tvpaint.com/doc/tvp11/index ... ayergetpos)
so maybe you have to write code that checks the layer(name) to see if it is blue then goes down one layer checks again etc... until it finds the right one.

just guessing that this is how it could work, but i don't now how to write that.

Re: Lock an assigned color to all strokes on a layer

Posted: 11 Jul 2023, 15:57
by D.T. Nethery
Aside from it being impractical for those of us who don't do George-scripting in TVPaint , the proliferation of dozens (or hundreds!) of custom scripts to accomplish tasks like this can become burdensome.

I think what TVPUSER is asking for is to have this feature built-in to TVPaint , similar to the feature in Clip Studio Paint which have locked color layers. I think that would be a feature worth adding, so let me add my +1 to the request.

Krita also has a similar feature.
Screen Shot 2023-07-11 at 11.54.54 AM.png

Re: Lock an assigned color to all strokes on a layer

Posted: 11 Jul 2023, 16:32
by Peter Wassink
I agree!

although i'm a veteran user i still won't be able to count the number of times i start on the wrong layer!
an easy system to limit colors to a specific layer would be an invaluable improvement for tvpaint.

it could either be combined with the sketchpanel or with the layer presets manager.
a function that could be called something like: "Activate Layer Colorforcing"

I am curious though... what is the most desirable way this should work...and how does it work in other software?
What if you have two layers set to the same color?
Should the function be triggered by a specific RGB value of the A-color?
So that when you pick that color, you automaticly jump to that layer?

Or is it the other way around...
if you are on that specific layer your A color gets changed into the corresponding RGB value?

This would be really great to have!