Re: delay in as script?

#2
I don't understand the question. What would you want to do with this command?

It sur is possible to issue commands to Caspar from within templates, I sometimes do that to play background clips if they are too big to be imported into the template.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: delay in as script?

#3
I mean when I insert this

Code: Select all

Tweener.addTween(bmp, {alpha:0, time:0.32, transition:"linear"});
I can insert a delay if wanted

Code: Select all

Tweener.addTween(bmp, {alpha:0, time:0.32, delay:0.24, transition:"linear"});
if I want it to do other tweener's first.
Is it also possible to delay the write in command, if I want a tweener to be played first?

Re: delay in as script?

#4
Aha, now I understand, Tweener has a onComplete property, where you can give it a function to be called after the tween has ended. Wrap your command in a parameterless function and call it from there. That's the easy way. You can also add parameters to the onComplete using onCompleteParams, but that is complicate.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron