Hi, I'm fairly green when it comes to understanding expressions, and I have a small problem with the clamp expression. I have NULL that I want to restrict from passing through a "floor". So i add the clamp expression to its position and everything works, it stops where I need it to stop. The problem comes when I have to link this same NULL to a different parent NULL which also has animation on it. When I link these two together, the expression on the child NULL somehow stops working (no error message), and it can pass through the floor again.
Hi again! I now had a chance to try this expression out on a project, and although it works perfectly for what I described earlier, I now see that I forgot to add an important detail earlier. The child layers (in this case NULLs) also has to ignore the rotation of the parent layer. Right now, when I rotate the Parent, the child layers rotate around the parents anchor point. Is there a way to ignore the positional displacement that comes from rotating the parent layer? (I hope im making sense here...) Anyway THANKS!
p = toComp(anchorPoint);