-
Combine values dynamically maintain set value
How would i go about making the scale[0] of 4 different layers always add up to 227.65 (seems arbitrary i know, a lot to explain). when 1 is at 100, the rest are at 44.55, no matter how you scrub the value of any particular one, the rest adjust accordingly.
The effect would be that of an accordion style selection state, the group of objects left and right edges are fixed, but highlighting one at a time does some expanding/contracting. I come across this often in my work and i know there must be a better way than seemingly endless linear’s and if else statements making all of the scales aware of each other. When it comes down to it if they all add up to a predetermined value that should accomplish what i want.
As usual, thanks for any and all advice 🙂