Can I know my script event's Track or Cue?

Discussion in 'PangoScript, Universe and Midi Templates' started by wondergy, Jul 1, 2019.

  1. wondergy

    wondergy Member

    I'm designing cues that should be different depending on what track they're in on timeline, or what page they're on in Grid. I can't find how my script can know this. Help?

    Is there a "TrackNum" variable that stores what track a script is on?
    A "PageName" variable that stores what page it's on?

    I want to make a template page of cues with scripts attached to each cue, and then make 10+ copies of those pages to each affect a different device.
    I want to drag those cues onto a timeline, pointing to each cue on different pages, without having to edit each one.

    More generally, I can't find reference documentation for PangoScript, except in the PangoScript editor. Is there somewhere I can see a list of variables, commands, etc...?

    Thanks!
     
  2. Igor Strakhov

    Igor Strakhov Staff Member

    Hi, Wondergy!
    You need to use the object tree.
    The tree variables should help: Grid.PageIndex and Grid.CellIndex
     
  3. wondergy

    wondergy Member

    Fantastic, thanks! That helped!
     
    Last edited: Jul 1, 2019
  4. Igor Strakhov

    Igor Strakhov Staff Member

    It "lives" in the object tree
    upload_2019-7-2_13-17-12.png