Vizrt forum

Go Back   Vizrt forum > General Inquiries
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-03-2012, 12:27 AM   #1
eLProducer
Forum user
 
Name: eLProducer
Company: UTG

Country: United States
Default DataCountdown plugin help

Hello everyone, I would like to know how to create control texts for target day, target month and target year for a Scene that has a DataCountdown plugin.
I need to be able to access and change these parameters in Content Pilot.

I'd appreciate any advice, many thanks!
eLProducer is offline   Reply With Quote
Old 03-05-2012, 07:48 AM   #2
adishin
Active Forum user
 
adishin's Avatar
 
Name: Adi Strichman
Company: TV2|Danmark

Country: Denmark
Send a message via MSN to adishin Send a message via Skype™ to adishin
Default

which viz do you run, 3.x or 2.8?
adishin is offline   Reply With Quote
Old 03-05-2012, 05:16 PM   #3
eLProducer
Forum user
 
Name: eLProducer
Company: UTG

Country: United States
Default

Hello adishin, I'm running 3.3
eLProducer is offline   Reply With Quote
Old 03-06-2012, 10:15 AM   #4
Lars Henriksen
Active Forum user
 
Lars Henriksen's Avatar
 
Name: Lars Henriksen
Company: DR - Danish Broadcasting Corporation

Country: Denmark
Send a message via MSN to Lars Henriksen Send a message via Skype™ to Lars Henriksen
Default

Setup some text fields in your template named Days, Months, Years, Hours, Minutes, Seconds and link the text fields to the commands to use when you click a button.

Sub ClickSetClockCountdown(Days, Months, Years, Hours, Minutes, Seconds)
buffer_put "-1 RENDERER*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetDay SET " & Days
buffer_put "-1 RENDERER*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetMonth SET " & Months
buffer_put "-1 RENDERER*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetYear SET " & Years
buffer_put "-1 RENDERER*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetHour SET " & Hours)
SCENE*YourPath*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetMin SET " & Minutes
SCENE*YourPath*TREE*$COUNTDOWN*FUNCTION*DataCountdown*TargetSec SET " & Seconds
End Sub

Something like this should work
Lars Henriksen is offline   Reply With Quote
Old 03-06-2012, 11:41 AM   #5
Subhanuddin
Active Forum user
 
Subhanuddin's Avatar
 
Name: Subhan Mughal
Company: Sky News Arabia

Country: United Arab Emirates
Send a message via MSN to Subhanuddin Send a message via Skype™ to Subhanuddin
Default

You can use ControlParameter to set Target Days,Month etc.
Subhanuddin is offline   Reply With Quote
Old 04-09-2012, 07:17 PM   #6
eLProducer
Forum user
 
Name: eLProducer
Company: UTG

Country: United States
Default

Thanks a lot for your help guys!
I ended up using ControlParamenter (it was easier to set up) and it worked.
eLProducer is offline   Reply With Quote
Old 04-11-2012, 07:53 PM   #7
eLProducer
Forum user
 
Name: eLProducer
Company: UTG

Country: United States
Default

Everything is working as expected on the scene.
Now on the VCP template, I have created a DateTimePicker control so the user can select the countdown target date.
The issue I'm having now is that I can't retrieve day or month or year from the DateTimePicker. All I get is a decimal number:

'DateTimePicker: futureDate
'ControlParam for day: dayEdit
'ControlParam for month: monthEdit
'ControlParam for year: yearEdit

dayEdit.Value = futureDate.Date
dayEdit.Text = futureDate.Date

Depending on the date this will return a decimal like 42129.6578; I have tried doing futureDate.Value.Day and futureDate.Date.Day but the error says is not supported.
eLProducer is offline   Reply With Quote
Old 04-12-2012, 12:53 AM   #8
eLProducer
Forum user
 
Name: eLProducer
Company: UTG

Country: United States
Default

Issue resolved, here is the correct syntax to retrieve data from the DateTimePicker:

Day(DateTimePicker.Date)
Month(DateTimePicker.Date)
Year(DateTimePicker.Date)

Thanks to all for your support.
eLProducer is offline   Reply With Quote
Old 05-31-2013, 01:05 PM   #9
Lars Henriksen
Active Forum user
 
Lars Henriksen's Avatar
 
Name: Lars Henriksen
Company: DR - Danish Broadcasting Corporation

Country: Denmark
Send a message via MSN to Lars Henriksen Send a message via Skype™ to Lars Henriksen
Default

What if i need the template to autoselect todays date instead of having the Journalist choose that via DateTimePicker? The DateTimePicker shows me todays date at the bottom with a red circle around it. That is what I want it to autoselect. What parameter/syntax do i refer to here?
Lars Henriksen is offline   Reply With Quote
Old 06-01-2013, 05:56 AM   #10
karak
Active Forum user
 
karak's Avatar
 
Name: Alexei
Company: Channel One Russia

Country: Russia
Send a message via Skype™ to karak
Default

Code:
sub Init()
  DateTimePicker.Date = Date()
end sub
karak is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:54 PM.


provided by Molden Media GmbH

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.