I have a rig that has a light on it and I need to control the power with a driver, the light needs to be between 0 - 150 watts. The power is controlled with two bones, panel, this bone goes 0 - 0.3 on the Y direction, and another, cover, that goes 0 - -0.167 also on the Y direction, panel uses “panel * 500” to control the power. Cover uses “cover * -898.201”. I need these to be so that if cover is down half way, ex: 75 watts, the light is turned to 75 watts, and if panel is turned down to 0, it now goes from 75 to 0 smoothly.
I’ve tried tons of things but the closest I’ve got is doing “panel * 500 - cover * 898.201”
i am sorry, but for me it is not totally clear, how the light should be controlled. Should it be linear? if yes, should it be controlled the first 50% by panel and the last 50% by cover? or a combination? if you are not sure yourself about the formula or you cannot describe it exactly, we cannot provide a driver…
So, basically, I want it so that that when the panel bone is turned to 0.3, the light is 150, and when the cover is turned to -0.167 the light is 150, and if they are both on they subtract each other, ex: cover is set to so that light is 75 watts, and panel is at 0.3, if I turn panel to 0, the light goes from 75 to 0. and its linear going down from 150 to 0 when the bones are moving from 0 to 0.3/-0.167
I’ve read this thread a couple of times, and I’m still trying to wrap my head around what you are trying to do, without much luck…
So let’s break this down:
if panel bone = 0.3 → light is 150
if cover bone = -0.167 → light is 150
but if they both are on (panel = 0.3, cover = -0.167) they subtract each other → 150 - 150 = 0
so if cover bone is at 50%, but panel bone is set to 100%, you still want the light at 50%? but when panel bone goes to 0%, you want the light at 0?
what if the cover bone is at 100% and the panel bone at 50%, is the light still at 50%? and when cover bone goes to 0%, light should be at 0?
What should the light be at if both bones are set to 75%? Is the light then at 75% and drops off as one bone is moved to 0%?
Can you come up with a math formula that will give you what you want? Because I can’t, but I suck at math.
If you can’t come up with a formula to do this then you may need to look at using a python driver, or another control scheme.
A python driver is python code that executes and outputs a value. Initially, this is what I was thinking that you might need. But I can’t see how I would code this given what I mentioned above…
So what are you doing here? Why are there 2 bones controlling one light? What controls the 2 bones? Is this an animation or a game engine thing? Maybe come up with another control scheme?