Modus Ponens Posted August 19, 2020 Share Posted August 19, 2020 I'm trying to write a plugin that analyzes the pixels and extracts some data from them, and then reports that data somehow. For the sake of discussion, let's just say that I want to calculate the average color of all the pixels and then show the name of that color in English. (This isn't actually what I want my plugin to do, but it's easier to explain.) Ideally, when you select the plugin from the Effects menu, the effect dialog would open and it would have a "Run" button or something. Clicking that button would run the analysis and output the color name into a text field in the effect dialog. I know neither how to make the button nor how to update the text shown in a text field in the effect dialog. Are these things that can be done with a CodeLab plugin? Here's a mock-up of what I'm talking about. Note that there's no "OK" button, since this plugin doesn't actually do anything to any pixels in the image; I definitely don't mind having an OK button in addition to the Run button, if I can't get rid of it, but it's not necessary for what I'm trying to do. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.