This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Toggle layer visibility on below layer?

Tags: None
(comma "," separated)
User avatar
stgemma
Registered Member
Posts
17
Karma
0
Hello, all.

Is it possible to toggle the layer visibility that is directly below the layer I am working on? For example, say I have layer 1 selected and am working on it, and I want layer 2 below it to toggle on and off as I work on layer 1. Is this possible? Thank you so much!
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
It may be possible to write a Python script to do that.

You can have the lower layer visibility effectively turning on and off by animating it but as soon as you painted on the upper layer the animation would stop until you pressed the play button again.

Is there any particular reason you need to do this?
User avatar
stgemma
Registered Member
Posts
17
Karma
0
Hello, thank you very much for the response.

Unfortunately, I do not have the expertise to make a script like that.

It's a bit difficult to explain. The reason is that I am making a rotoscope animation with a video of fire that I recorded. Fire is quite intricate, so turning off and on the layer of the actual fire while I work on a separate layer would be helpful to me. It's just for reference reasons, and would make working on this much easier.
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS
Have you imported the video of the fire into krita and are now hand rotoscoping over every frame of the real fire video?
If so, I'd have thought that setting the real fire layer to about 50% opacity (or whatever) would give you a useful guide image for the hand drawn work on your own animated layer above.

Edit: Is this related to the post you made here: viewtopic.php?f=139&t=164251 ?
Did you import still frames images from your video? If so, you can import .mp4 video files using the Animator Video Reference plugin:
https://github.com/scottpetrovic/animat ... -reference

You could use Handbrake (or similar video convertor application) to adjust the frame size and frame rate of your source video.
User avatar
stgemma
Registered Member
Posts
17
Karma
0
Exactly, I did import the video. I have it set around 60% opacity, so that does help a bit. Still, it would be nice to set a hotkey to for turning the layer of the fire video on and off.

Regarding the importing: I did install the Animator Video Reference plugin, which works nicely. However, it would be nice to have a hotkey in Krita to separate key frames if I am in that situation again, for whatever reason.

Thanks. :)
User avatar
tymond
KDE Developer
Posts
240
Karma
5
Hi, regarding toggling layer visibility, you may want to check out this plugin: https://www.reddit.com/r/krita/comments ... _assign_a/
User avatar
stgemma
Registered Member
Posts
17
Karma
0
Awesome! Thank you so much. That definitely works for my purpose. :)

However, I am having an issue with it: the default hotkey ( ctrl+alt+shift+L) does not work, and when I do apply that specific hot key it gets removed when I use any type of tool, and every time I close Krita.

Any idea on how do I fix this?


Also, is there a website dedicated to neat, custom plugins like this?

Last edited by stgemma on Mon Feb 17, 2020 3:22 am, edited 1 time in total.
User avatar
tymond
KDE Developer
Posts
240
Karma
5
> Also, is there a website dedicated to neat, custom plugins like this?

Here: https://docs.krita.org/en/resources_pag ... on-plugins

but a lot of python plugins are discussed here: https://krita-artists.org/c/develop/plugins/16
User avatar
stgemma
Registered Member
Posts
17
Karma
0
Awesome, thank you.

By the way, I figured out a work around so that the hotkey I assign the "Toggle Reference Layer" script does not get removed after switching to any other tool! I made the hotkey for the script to be "Alt + T + Alt + S + Alt + T," which directly executes the script via the Tools>Scripts menu, then assigned this hotkey to my software for my tablet, and viola, the hotkey no longer is getting deleted when switching to different tools! :D


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar