0

i have a question base on this video.

i have a problem with this code ! please help me it work's but ! for example i made a shape to use it as a controller for controlling my character head movement ! so i limit it from 0 to 20 and now when i select that shape and i move it with mouse it just moves in 0 to 20 in x but if accidentally i move the mouse a little more (it show me 20 in x ) but when i click on it (in position property that let you to put a value,) it show me a higher number (depends on how much i moved my mouse) ! so when again i want come back to 0 in x by moving my shape there is a problem because first i should comeback from that high number to 20 then i can move to 0 !

you can see in video if i select that yellow head control shape and i move it more than 20 steps in (+) direction and more than 0 in (-) direction in facts behind the code it changes the number more than 20 or 0 so it making a problem ! so if i want back from 20 to 10 or 0 or 7 or ... if behind the code (when you click on number it show you the real number) its like 400 you have back from 400 to 20 then back to 0 or 10 or 7 and ..i send video in my next answer because of limitation - in all the video just look at the x position number when i move the yellow control

7
  • Can you clarify? The code works for me, and if I click and track on the position value it immediately limits the position to 20. The video's code works with y-dimension. You want to use it on x. Make sure you adapt the code accordingly. You should edit the question and post your code and a screenshot.
    – Matt
    Jan 28, 2021 at 8:17
  • hi - my qustion is completly right i made a video to make it more clear ! i told you it works ..yes ! but as you can see in video if i select that yellow head control shape and i move it more than 20 steps in (+) direction and more than 0 in (-) direction in facts behind the code it changes the number more than 20 or 0 so it making a problem ! so if i want back from 20 to 10 or 0 or 7 or ... if behind the code (when you click on number it show you the real number) its like 400 you have back from 400 to 20 then back to 0 or 10 or 7 and ..i send video in my next answer because of limitation
    – Dude
    Jan 28, 2021 at 14:50
  • youtube.com/watch?v=-5ZwkUgqHpA in all the video just look at the x position number when i move the yellow control
    – Dude
    Jan 28, 2021 at 14:50
  • Okay, now I understand, the problem is that After Effects keeps remembering the blue value which can be larger than 20 or generally speaking larger than the red value. I'm not sure this can be solved. But I don't know that much about expression. Maybe somebody else has an idea. In the meantime you could edit your question and place the YouTube link in the question text, so it's easier for people to find.
    – Matt
    Jan 28, 2021 at 18:18
  • sure thank you :)
    – Dude
    Jan 28, 2021 at 19:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.