It is currently 24 Jun 2017, 18:26



delay in as script?

Videos, graphics, Flash templates – how to create and play them using CasparCG

Moderators: Macey, Jonas Hummelstrand, didikunz

delay in as script?

Postby tusa » 08 Mar 2017, 23:32

Is it possible to delay:
Code: Select all
mysocket.writeln("stop 1-26 TEAM");
like it's possible to delay a tweener?
tusa
 
Posts: 49
Joined: 14 Nov 2014, 15:15

Re: delay in as script?

Postby didikunz » 09 Mar 2017, 09:40

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
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: delay in as script?

Postby tusa » 10 Mar 2017, 00:34

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?
tusa
 
Posts: 49
Joined: 14 Nov 2014, 15:15

Re: delay in as script?

Postby didikunz » 10 Mar 2017, 09:35

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
User avatar
didikunz
 
Posts: 3477
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland


Return to Content

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests

cron