Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
say i have two calayers and when one translates, scales, and rotates i want the other to do the same relative to the first. much like if you add the second layer to the first as a sub layer

however i want the second layer to appear behind the first layer and as far as i can tell you can't have a sublayer draw behind it's parent layer.

so i thought that maybe i could just move the anchor position of the second layer move to the same point as the first layer before transforms are applied.

the problem is that anchor positions are in unit space. what's an efficient way to get the anchor point of the second layer to me at the same point as the anchor point of the first layer?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.