Graphics

 View Only
  • 1.  Xpression Script to Focus on a Take ID

    Posted 02-25-2025 15:11

    Hello,

    I am looking to have a shortcut to Take Online a certain Take ID in Sequencer and also Take Offline that same Take ID. I have limited buttons on my keyboard to map to since I use so many of them. I don't want to have two buttons taken up. I am trying to accomplish with scripting a take on and take off command using the same button on my keyboard. The first press brings the TakeID online and the second press takes it offline. Flint from Ross Support found a way to do that, but it requires the sequencer to be focused on the take ID first. Is there someone that could help with a command to set the sequencer's focus on a specific take ID?

    Sub OnKeyPress (Engine as xpEngine)

    dim takeitem as xpTakeItem
     
    engine.Sequencer.GetFocusedTakeItem(takeitem)
     
    if takeitem.IsOnline then
        takeitem.SetOffline

    else
        takeitem.Execute

    End If



    ------------------------------
    John Kimball
    Video Production
    Legislative
    ------------------------------


  • 2.  RE: Xpression Script to Focus on a Take ID

    Posted 02-25-2025 15:21

    Dim item1 as xpBaseTakeItem
    Engine.sequencer.getTakeItemByID(1001, item1)
    item1.SetFocus 



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