![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Forum user
Name: eLProducer
Company: UTG
Country: United States |
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! |
|
|
|
|
|
#2 |
|
Active Forum user
|
which viz do you run, 3.x or 2.8?
|
|
|
|
|
|
#3 |
|
Forum user
Name: eLProducer
Company: UTG
Country: United States |
Hello adishin, I'm running 3.3
|
|
|
|
|
|
#4 |
|
Active Forum user
|
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 |
|
|
|
|
|
#5 |
|
Active Forum user
|
You can use ControlParameter to set Target Days,Month etc.
|
|
|
|
|
|
#6 |
|
Forum user
Name: eLProducer
Company: UTG
Country: United States |
Thanks a lot for your help guys!
I ended up using ControlParamenter (it was easier to set up) and it worked. |
|
|
|
|
|
#7 |
|
Forum user
Name: eLProducer
Company: UTG
Country: United States |
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. |
|
|
|
|
|
#8 |
|
Forum user
Name: eLProducer
Company: UTG
Country: United States |
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. |
|
|
|
|
|
#9 |
|
Active Forum user
|
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?
|
|
|
|
|
|
#10 |
|
Active Forum user
|
Code:
sub Init() DateTimePicker.Date = Date() end sub |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 04:38 PM.






Linear Mode
