z0r Posted December 10, 2009 Share Posted December 10, 2009 Hi all, I'm working on a plugin that replaces a source color with a color that the user can select. For a nice integration with PDN it would be useful if I could simply retrieve the selected color from PDN instead of writing my own color selector. Thanks in advance. Quote http://www.necrosoft.nl Link to comment Share on other sites More sharing options...
Simon Brown Posted December 10, 2009 Share Posted December 10, 2009 If you use IndirectUI (inherit your plugin's class from PropertyBasedEffect), you can use the colour wheel included with Paint.NET. Quote Link to comment Share on other sites More sharing options...
pyrochild Posted December 10, 2009 Share Posted December 10, 2009 Otherwise, EnvironmentParameters.PrimaryColor and /.SecondaryColor (or something like that). Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
BoltBait Posted December 10, 2009 Share Posted December 10, 2009 If you are using CodeLab to develop your effect, it includes built-in functionality for both Color Wheel controls and the currently selected primary/secondary color. Download CodeLab here: http://www.boltbait.com/pdn/codelab Code samples here: http://www.boltbait.com/pdn/codelab/hel ... ments.html Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
Simon Brown Posted December 10, 2009 Share Posted December 10, 2009 Otherwise, EnvironmentParameters.PrimaryColor and /.SecondaryColor (or something like that). There's also ColorDialog. Quote Link to comment Share on other sites More sharing options...
z0r Posted December 11, 2009 Author Share Posted December 11, 2009 Thanks. EnvironmentParameters.PrimaryColor is exacly what I was looking for Quote http://www.necrosoft.nl Link to comment Share on other sites More sharing options...
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.