x position system


#1

Hi
I have 2 objects “A” & “B”, and another “C”, the position on X of “C” is in the middle of “A” & “B”, so I did this expression:

to get this:

Now, I want to have a slider to interpolate between this expression x position system and normal x position… so if you want set a x position, just turn off expression… if you want a middle system, just turn it on in this sliders.

Thanks!


#2

if you want, you can download this scene [color=orange]here[/color]
if you have a solution, send me it back to put it in animessiah.com

thanks you!


#3

I think your expression should read like this:

 (1-[Slider:chan[Switch]])*[C:xpos]+[Slider:chan[Switch]]*([A:xpos]+[B:xpos]/2)

When the Slider is at ‘1’, C::xpos will be the middle between A and B. When the Slider is at ‘0’, xpos will be the original xpos of C. With other slider values, xpos will be interpolated accordingly.


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.