Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

automatically fade movies in and out

Still a little green? Ask your beginner's questions here

automatically fade movies in and out

Postby MATxMAT » Tue Jun 25, 2019 1:54 pm

Hi!

I am completely new to TD.

I would like to do the following:

With a Movie File In TOP I play a movie loop (Movie 1).

On a trigger signal a second Movie File In TOP movie (Movie 2) starts playing, Movie 1 is faded out, Movie 2 is faded in.

At the end of Movie 2, Movie 2 should fade out and Movie 1 should fade in.

What is the best way to implement this?

Thanks!
MATxMAT
 
Posts: 4
Joined: Wed Jun 19, 2019 7:07 pm

Re: automatically fade movies in and out

Postby FaustoB » Thu Jun 27, 2019 9:19 am

you could try to connect both Movie File in TOPs to a Switch TOP, and set the Switch TOP to blend between inputs.

connect each of your movie file in TOP to an info CHOP by dragging and dropping the movie file in TOP onto the info CHOP.
set the info CHOPs scope to index fraction, that will tell you when your movie file is ended or about to end.

To get your movie to replay when the other movie is ended you will need something like a CHOP Execute connected to each of your info CHOP and a python script like:
if val > 0.95:
op('moviefilein1').par.cue.pulse()

change the script to your like and set it up in a way that when your first movie file ends it will trigger the second movie file, and viceversa.

and lastly you will need a way to move the switchTOP index from 0 to 1 in a graceful way when your active movie is ended or about to end, maybe using a trigger CHOP for example, or a simple 0 to 1 smoothed with a filter CHOP or lag CHOP.

hope that helps
FaustoB
 
Posts: 71
Joined: Mon Jan 08, 2018 8:33 am
Location: Sydney, NSW

Re: automatically fade movies in and out

Postby MATxMAT » Sat Jun 29, 2019 9:29 am

Great! Thank you!
MATxMAT
 
Posts: 4
Joined: Wed Jun 19, 2019 7:07 pm


Return to Beginners

Who is online

Users browsing this forum: No registered users and 15 guests