netherknight Posted August 26, 2019 Share Posted August 26, 2019 Hi everyone, I'd like to be able to adjust the HSV via an attribute expression. What's easy is multiplying the point color with something like this: "value * fit(float(rand(@elemnum)),0,1,0.5,1.5)" However, just using that expression multiplies the color with a random number giving a generally blacker/whiter color. What I would like is to be able to change the saturation separately. The result would be a set of X wires having the same color with a saturation/value range of 0.5 to 1.0 Is there a good way of achieving this or do I need to stick to the simple multiplication? Quote Link to comment Share on other sites More sharing options...
anim Posted August 26, 2019 Share Posted August 26, 2019 if you want to use Attribute Expression you can use something like this hsvtorgb(rgbtohsv(self)+value) and then the value will represent offset in H, S, V (so start with 0,0,0 and add to corresponding channel as needed) or this hsvtorgb(rgbtohsv(self)*value) and then the value will represent scale factor of H, S, V (so start with 1,1,1 and add to corresponding channel as needed) 1 Quote Link to comment Share on other sites More sharing options...
netherknight Posted August 27, 2019 Author Share Posted August 27, 2019 Yes! This is perfect thank you. 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.