Is there a way to inject another button into the layerdocker?

I’m writing a docker plugin that requires a toggle on each layer, but I’d very much rather not have to have a list of layers separate from the standard layerdocker in the UI. Is there a way my docker can inject a toggle into each layer listed in the layer docker?

Yes, you can subclass it:

But it’s hard work indeed, you have to recreate the entire structure in Python and use hacks to display all information about the layer state like whether it’s visible and locked because that data can’t be accessed directly from the API.

Alright, it sounds like for my purposes in the very short term, I should just maintain an internal list of layers. Is there a signal I can hook into that would make keeping track of layer addition/deletion easy to do without polling or waiting for different user-triggered interaction?

Also, just to clarify— are you talking like cheatEngine style direct memhacks for the non-api functions?

I don’t think there’s one. There’s no notifier and I don’t recall seeing a signal
either. I hooked everything I needed directly into the draw method for the docker since I was redrawing the entire thing anyway.

That level of sophistication is way above my paygrade, hah. I just retrieved the missing props directly from the document nodes.


If you didn’t see it already get the Python Developer Tools plugin.

Would you be willing to give me a quick code snippet or reference another post for grabbing those less-accessible document properties? I really appreciate all of your help! I hope to be sharing a fun integration between Krita and live VJing software soon.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.