Graphics

 View Only
  • 1.  Copy datalink values to text values

    Posted 01-27-2023 08:35

    Hi,

    I'm pushing datalinq values from a streamdeck thru tcp to datalinq.
    How would i write a script that copy's the datalinq value to the currently selected textobject in the currently selected sequencer?

    I have a script that reads a textobject in the scene that gets filled with the datalinqvalue, and copys it to the final textobject, but i want this to run under a button.
    So how would i make this global?

    "Naam" is the destination textobject
    "datalinqnaam" is the datalinq-filled dummy textobject
    dim _naam as xpTextObject
    dim _datalinqnaam as xpTextObject
    self.GetObjectByName("Naam", _naam)
    self.GetObjectByName("datalinqnaam", _datalinqnaam)
    _naam.Text = _datalinqnaam.Text

    Thanx!



    ------------------------------
    Daniël Vegter
    Graphics Operator
    NEP The Netherlands
    ------------------------------


  • 2.  RE: Copy datalink values to text values

    Posted 01-27-2023 08:42
    You don't need to make it a global you just need to add it to a key press. 



    Drag script into your shortcuts. 


    type your script. 


    Set shortcut. 


    Don't forget you'll need to tell the script how to find the scene first. 

    For example:

    dim scene as xpScene

    dim fb as xpOutputFramebuffer

     

    engine.GetOutputFramebuffer(0, fb)

    fb.GetSceneOnLayer(0, scene)




    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Copy datalink values to text values

    Posted 01-27-2023 08:51

    I've found the key-press scripting part, thanx. But i'm looking for a piece of code that would tell my script to find the scene that is selected in the sequencer.
    I guess i could direct it to the preview-framebuffer, but it would be neater if it were to direct directly to the selected sequence.

    i've tried getfocusedtakeitem or scene but got no luck.

    *edit* I'm looking for a way to edit the published object. So i can give a value to xpression via datalinq, store it in the sequencer and give the next sequenceitem a different value. When i would come back to the first sequenceitem, i would want the first data to still be there.

    ------------------------------
    Daniël Vegter
    Graphics Operator
    NEP The Netherlands
    ------------------------------



  • 4.  RE: Copy datalink values to text values

    Posted 01-27-2023 08:57
    Getfocusedtakeitem should work, what did write?

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Copy datalink values to text values

    Posted 01-27-2023 09:01

    I've not been clear about what my intent is, i'm sorry.
    I want to edit the published data per sequenceitem. So in sequenceitem 1 i want data 1, so when i come back to sequenceitem 1, data 1 is still there eventhough its not there anymore in datalinq. I've no idea how i would accomplish this



    ------------------------------
    Daniël Vegter
    Graphics Operator
    NEP The Netherlands
    ------------------------------



  • 6.  RE: Copy datalink values to text values

    Posted 01-27-2023 10:12
    You can always disconnect the data in sequencer for that item so it doesn't change. 


    If that's not what you want I'd recommend setting up some kind of copy on keypress, so when ou do a keypress it copies from the datalinq fields to a static text box and they are visible while the datalinq'd text is not.

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 7.  RE: Copy datalink values to text values

    Posted 01-28-2023 09:37
    Hi,
    I'm trying to build such script, but i would have no idea how to do it...

    ------------------------------
    Daniël Vegter
    Graphics Operator
    NEP The Netherlands
    ------------------------------



  • 8.  RE: Copy datalink values to text values

    Posted 01-31-2023 07:27
    This thread should give you some ideas, I'll try respond with an actual answer when I get a moment.

    https://livinglive.community/discussion/set-datalinq-values-in-the-sequencer

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------