Simon Brown 46 Posted April 16, 2009 Share Posted April 16, 2009 (edited) As-of Paint.NET 3.5.2. This information is not official and some parts may be slightly inaccurate. Non plugin authors often don't know what is and isn't possible when writing plugins - so hopefully this should be helpful to users wishing to suggest plugins. Effects Effects can only access the current layer. Effects can only access the current image. Effects cannot know or change the blend mode or transparency of a layer. Effects can blend two images using transparency and blend modes. Effects can read the whole layer, even if part of it is selected. If part of a layer is selected, effects can only change that part. Although effects can't be tools or anything, they can show a new dialog to draw on. Effects can save files, but only with the information they have (see above) and they can't make the file they save the current FileName. Effects have no control over the UI other than the ability to add items and categories to the effects and adjustments menus. Effects can not change the shape of the selection or which pixels are selected. Most effects need to be heavily modified before they can run outside Paint.NET. Effects can open files and read them from your harddrive or Internet URL. Effects can read the Windows clipboard. As of paint.net 4.0.6:Effects can read all of the color values in the current and default palette Effects can add a [?] button to the effect's IndirectUI for adding a help file FileTypes (Opening)FileTypes don't know the location of the image they're opening. FileTypes can create as many layers as they want and change opacity and blend modes. FileTypes must open some image. FileTypes have no control over the open dialog. FileTypes (Saving)FileTypes don't know the location of the image they're saving to. FileTypes can read all layers, opacity and blend modes. FileTypes have to save a file unless the user clicks "cancel," even if it is empty - this is frowned upon by Rick. FileTypes have no control over the save dialog. I hope this helps. Edited August 8, 2015 by BoltBait Added 4.0.6 info. 1 Quote Link to post Share on other sites
david.atwell 290 Posted April 16, 2009 Share Posted April 16, 2009 Nice work. I'll definitely link to this when people post crazy ideas. :-) A few notes you might want to make, though: Plugins can put menu options in the Effects and Adjustments menu. Plugins can not make any changes to the Paint.NET user interface outside their dialog and their menu entry. Plugins can not run without Paint.NET, although they are able to connect to programs that can (such as Batch Processor and wrappers). Also, if I'm not mistaken, Rick frowns on saving an empty file with a filetype plugin (such as with the upload-to idea). Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him. Link to post Share on other sites
Simon Brown 46 Posted April 16, 2009 Author Share Posted April 16, 2009 Done Quote Link to post Share on other sites
Boude 2 Posted May 12, 2009 Share Posted May 12, 2009 Is it possible to let an effect save one layer and then let the user runs the effect over the next layer and let the effect combine them some how? (not that I actually know how this could be done) Quote History repeats itself, because nobody was paying attention the first time. Link to post Share on other sites
Simon Brown 46 Posted May 12, 2009 Author Share Posted May 12, 2009 Theoretically, but the plugin would have no way of knowing they were two layers of the same image. Quote Link to post Share on other sites
Boude 2 Posted May 13, 2009 Share Posted May 13, 2009 Unless the user gives it that information ofcourse. Quote History repeats itself, because nobody was paying attention the first time. Link to post Share on other sites
jxp 1 Posted July 9, 2009 Share Posted July 9, 2009 A couple more comments on file types; Filetypes have no control over the open/save dialog but can present their own dialog as well. When opening, a file type plugin can return null or a 0 size document (don't know which is preferred) if the user cancels a custom dialog. I have not found any good way to cancel a file type save dialog. I always end up with a zero byte file on disk. The Paint.net jpg dialog allows a cancel, but plugins don't seem to be able to be consistent with this Quote Don't know what plugin to use? Try looking in the plugin gallery Link to post Share on other sites
xmario 22 Posted April 26, 2010 Share Posted April 26, 2010 Please advise me: Can the effect resize the selection?? Quote Russian paint.net community Link to post Share on other sites
pyrochild 363 Posted April 26, 2010 Share Posted April 26, 2010 no Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to post Share on other sites
BoltBait 3,311 Posted August 8, 2015 Share Posted August 8, 2015 As of paint.net 4.0.6: Effects can read all of the color values in the current and default palette Effects can add a [?] button to the UI for adding a help file Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to post Share on other sites
sbhambra 0 Posted July 5, 2020 Share Posted July 5, 2020 Can a plugin save flattened images using combinations of layers? I see that plugins cannot create layers. Quote Link to post Share on other sites
toe_head2001 1,868 Posted July 5, 2020 Share Posted July 5, 2020 14 minutes ago, sbhambra said: Can a plugin save flattened images using combinations of layers? I see that plugins cannot create layers. A FileType plugin can. An Effect plugin can not. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.