[Mark Warner] “thanks for you post. It’s nearly there but there’s something not quite right. When your posted script is executed my object jumps away from it’s current location. I can move it back into position manually (theres some weird mirroring of movement going on when I do this (i.e., I move the item left but it moves right)).”
Sorry, I was just telling you how to calculate the offset, not how to fit it into your own expression.
To do that, you’d have to take the expression above and add ‘value’:
offset = thisComp.layer("Null 2").toWorld(thisComp.layer("Null 2").transform.anchorPoint) - thisComp.layer("Null 1").toWorld(thisComp.layer("Null 1").transform.anchorPoint);
offset + value;
This doesn’t take into account your valueAtTime() stuff, which you’ll have to add yourself.
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog – What I’m thinking when my workstation’s thinking
Creative Cow Forum Host: Live & Stage Events