Graphics

 View Only
  • 1.  XML row offsets for Next/Previous

    Posted 10-03-2022 21:31
    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 xpTextObject
    scene.GetObjectByName("StaticID", StaticID)
    Dim Sequence As xpSequencer = engine.Sequencer
    Dim item As xpTakeItem
    Sequence.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)
    ------------------------------


  • 2.  RE: XML row offsets for Next/Previous

    Posted 10-04-2022 04:45
    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
    ------------------------------



  • 3.  RE: XML row offsets for Next/Previous

    Posted 10-04-2022 16:39
    Hey Red!

    That is very interesting, but I've datalinq'd text to my XML to get the staticID...without that text, where would I get it?

    My main problem is when the producer can't focus on timing the show and I can't have somebody else take over timing, I need the director to be able to advance down the XML to cue the scene they need.

    I could build several scenes, each with different row offsets, but then the directors would have to hunt through several keystrokes to find what they need.

    I have an idea a counter widget might make this possible, but it starts seeming very complicated with an up widget and a down widget, resetting both widgets, and getting the last known value of each widget---kind of makes my head spin.

    I'm still hoping to do this from my Carbonite ShotBox, but if DashBoard made it possible...it would be pretty slick!

    Thanks,
    James.





  • 4.  RE: XML row offsets for Next/Previous

    Posted 10-05-2022 21:07
    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.





  • 5.  RE: XML row offsets for Next/Previous

    Posted 10-06-2022 05:29
    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
    ------------------------------