Page 1 of 1

How to reset Sine Osc modifier to start from 0

Posted: Wed Oct 02, 2019 11:28 pm
by pyc
Hello everyone!

It should be simple but I'm thinking how to solve this for about 2 hours now. What I want to achieve is that Text layer shows from 2nd to 5th second of video and that is alright: easily done with Playback Internal variable. What I want is that it fades in and out and I see it can be done with Transparency module and Sine Oscillator, but Sine Oscillator oscillate always, even while video is not running, so fade in starts from arbitrary point, but I need it to start from 0, when Text layer becomes powered on (from 2nd to 5th second of video).

Probably somebody has solved some similar problem in Magic, please help.

Re: How to reset Sine Osc modifier to start from 0

Posted: Thu Oct 03, 2019 12:50 pm
by Sadler
Here's one method - the multimix will fade in, hold then fade out over 15 seconds with an Increase of 0.2. A value of 0.6 will give you 5 seconds. You can build up a whole sequence of text this way - assuming each is displayed for the same amount of time.
timed_fade.jpg
timed_fade.jpg (69.62 KiB) Viewed 4026 times

Re: How to reset Sine Osc modifier to start from 0

Posted: Thu Oct 03, 2019 2:26 pm
by Magic
I'm sure there are many ways to do this. My thought is that if you want an alternative sin oscillator, you can use sin(x) in the Expression modifier.

Re: How to reset Sine Osc modifier to start from 0

Posted: Thu Oct 03, 2019 5:10 pm
by pyc
Multimix is not the solution because it it fades one input out to display other one. I need one layer to be shown always and second one with the text to fade in and out...

As for sin(x) solution in with Expression modifier, yes, that's how I wanted to solve it yesterday, and I just managed to solve it with this Expression: if((x>=2) and (x<3.5)) sin(x); else cos(x); (x is Playback Time).

Thanks!

Re: How to reset Sine Osc modifier to start from 0

Posted: Mon Oct 07, 2019 3:21 pm
by Magic
Multimix is not the solution because it it fades one input out to display other one. I need one layer to be shown always and second one with the text to fade in and out...
Multimix would work fine for that situation. Just don't use it for the top layer, only use it for the other ones.