-
An Alternative to Parenting when Parenting fails
I recently ran across a post by Tim West and answered by Ben Rollason. I replied to it, but fear it may be too old for anyone to actually respond too.
Here’s the Question that Tim Asked:
I am trying to create an expression that parents the X & Y position of one null (‘A’) to the X & Y position of another null (‘B’) only – I want to be able to animate the Z postion of null A independently.
Ben supplied this for a solution:
L = thisComp.layer("Null B");LP = L.toWorld(L.anchorPoint);
[LP[0], LP[1], value[2]];
I was hoping this thinking could be applied to a slider on one null controlling the X axis of another. I’ve tried parenting but my Z Expression goes off the deep end.
- I have Null A with a slider (-100,100). Layer A has a linear expression converting the Coordinates from Null A.
- Null B is placed randomly in the comp and should be free to move by the artist.
- I need Null A, Slider at 0, to effect Null B X value in both Directions
Thanks in advance
Jason Hearne
EdenFX
Visual Effects and Animation
