FORUMS: list search recent posts

Camera parent

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
khalil gobji
Camera parent
on Oct 20, 2014 at 12:05:13 pm

Hey!! I want to be able to parent a nullObject (camera parent) position to multiple layers and change the parent without braking the animation.. can anybody help pleaaaaaaaassssssseeeee!!!


Return to posts index

Dan Ebberts
Re: Camera parent
on Oct 20, 2014 at 4:31:06 pm

You could split the camera and null layers, or you could try something like this:


tSwitch2 = 2;
tSwitch3 = 4;
L1 = thisComp.layer("parent 1");
L2 = thisComp.layer("parent 2");
L3 = thisComp.layer("parent 3");
if (time < tSwitch2){
value + L1.toWorld(L1.anchorPoint) - L1.toWorld(L1.anchorPoint,0)
}else if (time < tSwitch3){
d1 = L1.toWorld(L1.anchorPoint,tSwitch2) - L1.toWorld(L1.anchorPoint,0);
d2 = L2.toWorld(L2.anchorPoint,time) - L2.toWorld(L2.anchorPoint,tSwitch2);
value + d1 + d2
}else{
d1 = L1.toWorld(L1.anchorPoint,tSwitch2) - L1.toWorld(L1.anchorPoint,0);
d2 = L2.toWorld(L2.anchorPoint,tSwitch3) - L2.toWorld(L2.anchorPoint,tSwitch2);
d3 = L3.toWorld(L3.anchorPoint,time) - L3.toWorld(L3.anchorPoint,tSwitch3);
value + d1 + d2 + d3
}



Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]