-
Expression needed to make side of cube mirror/reflect movement of opposite side of cube. Eg. Sides fly out.
Hi,
I am pretty new to AE.I thought I would be smart making a spinning cube with the opposite sides flying out then rejoining the cube (one side mirroring the movement of the opposite side).
I smuggly made my cube with all sides parented to a null object to make it spin. All good so far. Then I pick whipped one cube side’s ‘Position’ to it’s opposite side’s ‘Position’, naively thinking that would somehow magically know I wanted the opposite side to reflect the actions of it’s parent. It obviously didn’t. It exactly matched the cube side making my cube look like a side was missing (because two sides were now on the exact same coordinates).
I need to make the side reflect the parented solid’s actions rather than copy it. So for example, if the parent moves 400 in one direction I need the opposite side to move 400 in the opposite direction. Sadly I have no clue how to write this.
Pretty sure this is easy for people on here.
I am out of my depth.
Help.I have included the code which makes it exactly copy the movement. What do I need to add or change?
Thanks in advance.
thisComp.layer("side 2").transform.position