Graphics

 View Only
  • 1.  Scripting group playback based on Datalinq

    Posted 05-25-2017 15:53

    Good morning Forum folks,

    We have items in a group that is autoplaying and looping (same instances of the same scene) The scene is displaying some info pulled from an excel datalinq. I'm trying to write a script that would check the datalinq text field, and if it's empty, restart the loop. Here's what I've got so far:

    dim info as xpTextObject
    dim FirstItem as xpBaseTakeItem

    self.GetObjectByName ("DataLinq Text field" , info)
    engine.Sequencer.GetTakeItemByID(1001, FirstItem)

    if info.text = "" then
    FirstItem.execute
    end if



    However, it doesn't seem to be working as planned. If the group is set to play Per Item, it will jump back to the first item, but the autoplay function stops, and it stays on the first item in the group. If I try set it to Per Item Fixed, it will try to jump to the first item, but then immediately jump back to the item immediately after the last one.
    Any ideas are appreciated, thanks.

    XP Version 6.7 build 3778



  • 2.  RE: Scripting group playback based on Datalinq

    Posted 05-25-2017 16:26
    All good, changing the script to take the group item fixed it. (1000 instead of 1001)
    Thanks!
    #XPression