Hi James, you could use a widget and then use GPI scripts to add and minus 1 rather than having 2 widgets. Then have 2 different key binds to trigger those scripts.
Here's an example from a score bug I made.
This was one GPI
dim main as xpClocktimerwidget
dim extra as xpclocktimerwidget
Engine.GetWidgetByName("Extra Timer", extra)
Engine.GetWidgetByName("Game Timer", main)
main.startat="00:00:00.000"
main.stopat="00:45:00.000"
extra.startat="00:00:00.000"
main.reset
extra.reset
This was another
dim main as xpClocktimerwidget
dim extra as xpclocktimerwidget
Engine.GetWidgetByName("Extra Timer", extra)
Engine.GetWidgetByName("Game Timer", main)
main.startat="00:45:00.000"
main.stopat="01:30:00.000"
extra.startat="00:00:00.000"
main.reset
extra.reset
It's not exactly what you want to do but you can see how you can modify widget data.
Here is another one I did recently, I stripped out the complexity and left only what I think you need.
Dim counter as xpCounterWidget
dim project as xpProject
'Get This Project
engine.GetProject(0, project)
'Get Widget
project.GetWidgetByName("WIPE", counter)
counter.Value = counter.Value + 1
So you could have this on one GPI script and then the same but with
counter.Value = counter.Value - 1
on another and then just make 2 buttons in db that fire crosstalk GPI commands.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 10-05-2022 21:07
From: James Hessler
Subject: XML row offsets for Next/Previous
Hey Red,
Several years ago, I made a DashBoard panel that allowed a CG op, or an audio op to give the director a break during extended severe weather coverage, running our Xpression Studio and Carbonite Black, so I'm familiar with some of what DashBoard can do.
I rewatched the video you recommended and then went digging and found examples of the Data Modification function in a tutorial.
I had watched it a couple of times before I realized it would do what I needed---I'm slow to catch up sometimes!
I added -1 and +1 buttons to the panel I use to assign the rundown along with my cue and take buttons and connected my offset parameter to my story offset text in Xpression.
Now, my problems...
The XML the panel feeds doesn't update till I save the panel---this was also a problem with the rundown assignment.
If I have used my +1 (or -1) buttons to advance down the XML a certain number of rows and save the panel, then I have to scramble back to zero when the producer catches up.
Is it as simple as making a reset button?
Is there something more elegant?
Any idea what I may have done wrong with creating my panel?
Thanks,
James.
Original Message:
Sent: 10/4/2022 4:45:00 AM
From: Red
Subject: RE: XML row offsets for Next/Previous
This script could be moved to a GPI and then you can add a button in Dashboard that fires the GPI via RossTalk.
This is how to setup XPression to be controlled by Dashboard and how to add a button in Dashboard that fires XPression.
https://www.youtube.com/watch?v=NekQUKWKCvU
Let me know if you need any help with the rest of it.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 10-03-2022 21:31
From: James Hessler
Subject: XML row offsets for Next/Previous
I am trying to figure out a way to tick through the rows of an XML file I have datalinqed to fields in an Xpression scene by hitting a pair of Carbonite custom controls...an up and a down.
Right now, I have a "Cue" custom control that fires my scene from an Xpression Studio sequence, and cues up another scene to match the text on the top row of the XML.
Dim StaticID As xpTextObjectscene.GetObjectByName("StaticID", StaticID)Dim Sequence As xpSequencer = engine.SequencerDim item As xpTakeItemSequence.GetTakeItemByID(CInt(StaticID.Text), item)item.SetFocus()
Then a "Take" custom control fires the scene matching the text.
My producer is driving the updates to the XML and if they are distracted by breaking news, I need to advance through to find what I need.
I have some thought that this could be built in DashBoard, but my directors rely on DashBoard already and navigating to another panel isn't a good option.
Does this even sound possible? Any ideas?
Thanks,
James.
------------------------------
James Hessler
WAAY (HEARTLAND MEDIA)
------------------------------