- Posts: 456
- Joined: Thu Sep 16, 2021 7:05 am
- Real Name: Cody Predum
I would like to write a custom tool to help me manipulate color sliders a little differently (on things like background nodes, etc). What I want to be able to do is manipulate the RGB values separately like normal, but also have a tool that lets me move them all by the same amount. For example, the behavior I'm trying to create would be for me to be able to set red to 0.2, blue to 0.7, and green to 0.3; then if I use the tool instead, changing the tool's slider(s?) by 0.2 would change the red value to 0.4, but also change the blue slider to 0.9 and the green one to 0.5. The tricky part is that I want to be able to go back and forth with both, so I could then change the blue slider to 0.8 without it affecting the other values, since I'm not changing that value via the tool.
The and math and expression/code themselves is pretty straightforward, but the one thing I don't know how to do is to set the sliders' current values to variables that remain unchanged while using the tool, but do change when using the normal sliders. Feels weird to say that I need a variable to remain constant, but of course it can't be a constant if it needs to be changed when I go back and forth between the tool and the normal sliders.
Maybe I'm thinking about the structure of this tool the wrong way. Any suggestions?
The and math and expression/code themselves is pretty straightforward, but the one thing I don't know how to do is to set the sliders' current values to variables that remain unchanged while using the tool, but do change when using the normal sliders. Feels weird to say that I need a variable to remain constant, but of course it can't be a constant if it needs to be changed when I go back and forth between the tool and the normal sliders.
Maybe I'm thinking about the structure of this tool the wrong way. Any suggestions?