FORUMS: list search recent posts

control movie

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Chang Dae Kim
control movie
on Sep 14, 2015 at 4:02:05 am

I want to include several movies and their z-positions are different each other. while moving camera, i want to show their movies sequentially. Initial state of movies is stop.
But, when cameara moves near, next nearest movie will be play.
It's hard for me....
Please let me know how to solve this....


Return to posts index

Dan Ebberts
Re: control movie
on Sep 14, 2015 at 5:54:03 pm

Something like this maybe:


playDistance = 500;
c = thisComp.layer("Camera 1");
t = 0;
trigger = false;
while (t < time){
if (length(c.toWorld([0,0,0],t),toWorld(anchorPoint,t)) < playDistance){
trigger = true;
break;
}
t += thisComp.frameDuration;
}
if (trigger){
time - t;
}else{
0;
}



Dan



Return to posts index

Chang Dae Kim
Re: control movie
on Sep 15, 2015 at 12:26:58 pm

Thank you for your solution. But, I am a novice for expression.
So, I want to know which property I must include your code.


Return to posts index


Dan Ebberts
Re: control movie
on Sep 15, 2015 at 1:24:17 pm

Time remapping.

Dan



Return to posts index

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