minuit Posted December 16, 2019 Share Posted December 16, 2019 Hi everyone, I'm trying to select the color from a point cloud (in the geo context). Separate them to apply a different pscale attribute depending of the color value. With VEX , it's easy to select separte RGB and CMY values with addition and subtraction : Red = @Cd.r - @Cd.b - @Cd.g Green = @Cd.g - @Cd.r - @Cd.b Blue = @Cd.b - @Cd.r - @Cd.g Cyan = @Cd.b*@Cd.g-@Cd.r Yellow = @Cd.r*@Cd.g-@Cd.b Magenta = @Cd.r*@Cd.b-@Cd.g My problem is that i lack a precise value to separate intermediate values, pastel colors, colors between two primary colors, etc ... How can i pick a special color to applied precisely my pscale value. Is it a good way ? Is there an other way to have a color picker ? a Keying function ? Hope this is clear, Regards, Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 17, 2019 Share Posted December 17, 2019 Hi Dorian, have you tried the cluster points-SOP yet? Quote Link to comment Share on other sites More sharing options...
Christoph_H Posted December 17, 2019 Share Posted December 17, 2019 (edited) Hi, you can do this to pick the exact color value: H or this: if (@Cd == {1,0.5,0.2} ) { @P.y = 1; } with pcfind() you can create a picker. Edited December 17, 2019 by Christoph_H Quote Link to comment Share on other sites More sharing options...
minuit Posted December 18, 2019 Author Share Posted December 18, 2019 Hi ! Thanks @konstantin magnus. This node is a little bit heavy process, however it is interesting to group point by @Cd attribute, sadly cluster attribute looks random... Nice @Christoph_H. I tried your code it is working well. I didn't understand what you want to do with vector picker (v@picker) ? Also a coding friend give me the operation to do for this. I almost succeed that way : Quote 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.
Note: Your post will require moderator approval before it will be visible.