Jump to content

[Suggestion] Read access to all layers for effect plugins


midora

Recommended Posts

I'm pretty sure that I'm not the first one asking for this. Maybe not a direct access to the paint.net document but an iterator to get a copy of a layer and its properties.

 

It would allow me to change the 'Look at It' plugin to play the current animation (using the same method as in the agif, apng, awebp and aavif plugin).

And for sure at lot of other plugins could be advanced (like G'MIC).

 

 

midoras signature.gif

Link to comment
Share on other sites

At some point I'm going to do a big revamp of the effect plugin system, and this will almost certainly be part of it.

 

First up is a revamp of the FileType plugin system, possibly for 4.4. (I'm actually looking at it right now)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Sounds good. I guess a revamp of the Effect plugin system is much more complex because there are so many ideas what could be done. To get a good set of reasonable features is a challenge.

 

BTW: FileTypes.

- I know it's always a controversial discussion (see GIMP) but an additional export menu entry may help in some situations. It's not only about flatten but also to keep the the original pdn file unsaved. This avoids that you are loosing the layers by mistake.

- A configurable option for load which supports an open file dialog would avoid some of the methods used in the moment. It's not so easy because of preview in save and other issues.

- CTRL+SHIFT-O: To open the newest recent file

midoras signature.gif

Link to comment
Share on other sites

Third the request. This is the bullet I can't bite on my own with Dynamic Draw. Being able to read the layers so I can make a quick merged copy would remove so much jankiness.

...I don't suppose writing to other layers will happen (that would be asking for the moon, since effects run against a single layer) but if it could...that would really remove the last barrier

Link to comment
Share on other sites

  • 1 year later...

I'm not sure if this feature is still up for consideration, but it would be very helpful for an animation spritesheet plugin I'm working on at the moment as it would allow me to specify anchor points (a pixel per animation frame) to know where to position sprites.

 

Currently I'm copying the separate layer (containing the anchor points) to the clipboard and reading from that instead, but it would be a lot more seamless to be able to read from the surface of another layer (ideally identifiable by it's layer name).

Link to comment
Share on other sites

It's now available, though not for the "traditional" variety of plugin. There's a similar type of plugin that can be used. Some of BoltBait's updated plugins take advantage of the feature. I'm sure others will provide more details.

Link to comment
Share on other sites

For an effect plugin you will have to derive from BitmapEffect, which is the new replacement for ye ol' Effect. You can also derive from one of the GpuEffect classes (GpuEffect, GpuImageEffect, GpuDrawingEffect, as well as PropertyBased versions of these such as PropertyBasedGpuImageEffect) if you want to render using the GPU via Direct2D.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...