Copy link to clipboard
Copied
Hello community,
I have several objects where I have parented the transform y to a null object. But I also have to limit the different y values for each object individually. So I have the parent code: comp("00_MASTER").layer("Null 5").transform.yPosition and the clamp code: clamp(value,152,521).
But since they are both on the transform y, I have difficulties to get them both run at once. How should I put them both in one?
comp("00_TAIL_BEHIND_NEEDLE_MASTER").layer("Null 5").transform.yPosition;
clamp(value,152,521);
Do they need to be separted by a semicolon or a comma? I don´t get it.
I highly appretiate any helpful hints.
Thanks in advance
E.
"value" is a a reserved keyword that fetches the pre-expression propertyy stream value. You cannot use it in the manner you did. You have to use a user-defined variable name.
mRef=comp("00_TAIL_BEHIND_NEEDLE_MASTER").layer("Null 5").transform.yPosition;
clamp(mRef,152,521);
Mylenium
Copy link to clipboard
Copied
"value" is a a reserved keyword that fetches the pre-expression propertyy stream value. You cannot use it in the manner you did. You have to use a user-defined variable name.
mRef=comp("00_TAIL_BEHIND_NEEDLE_MASTER").layer("Null 5").transform.yPosition;
clamp(mRef,152,521);
Mylenium
Copy link to clipboard
Copied
Hello Mylenium,
thanks for the quick response. I will give it a shot and report. I have assumed that I would probably need a variable and feared that my simple "do this and then do that" will not work.
Thanks man.
Copy link to clipboard
Copied
Did Mylenium's answer solve it for you? If so, please hit the green star "Correct Answer" button on the forums to mark it so.
Copy link to clipboard
Copied
Sorry for the late answer - busy with projects.
Myleniums answer works like charm
Thanks a lot!