Graphics

 View Only
  • 1.  Disable Scenes in Sequencer via Scene Names

    Posted 20 days ago

    Hey All,

    We have multiple copies of scenes that are running in playlists throughout a show. I'm looking to create a script that can grab all the copies of a scene by its name and disable all iterations of that scene in the sequencer. Does anyone know if it's possible to get scene names and disable all copies of them from the sequencer via scripting? Thank you for the help!



    ------------------------------
    Ben Kessler
    New York United States
    ------------------------------


  • 2.  RE: Disable Scenes in Sequencer via Scene Names

    Posted 19 days ago

    This script can run on a Keyboard/GPI shortcut and will find every instance of a Take Item using a specific scene. Depending on the size of your full Sequence, you may want to look in specific Sequencer Groups or at a specific Take Item ID range to limit the amount of items the script has to loop through:

    'declare variables
    dim take as xpTakeItem
    dim scene as xpScene
    dim i as integer
    
    'loop through all items in the sequence
    for i = 0 to (engine.Sequencer.ItemCount - 1)
    
    engine.Sequencer.GetTakeItemByIndex(i,take)
    
    'get take item's Scene Name
    take.GetTemplateScene(scene)
    
    'change "L3" to whichever scene name you're looking for
    if scene.Name = "L3"
    take.Disabled = true
    
    end if
    
    next


    ------------------------------
    Jeff Mayer
    Ross Video
    ------------------------------



  • 3.  RE: Disable Scenes in Sequencer via Scene Names

    Posted 19 days ago

    Hello everyone.
    Here's a slightly expanded version of Jeff Mayer's script.

            'declare variables
            Dim take As xpTakeItem
            Dim scene As xpScene
    
            'loop through all items in the sequence
            For i As Integer = 0 To (engine.Sequencer.ItemCount - 1)
                If engine.Sequencer.GetTakeItemByIndex(i, take) Then
                    If Not DBNull.Value.Equals(take) Then
                        'get take item's Scene Name
                        take.GetTemplateScene(scene)
                        'change "L3" to whichever scene name you're looking for
                        If scene.Name = "L3" Then
                            take.Disabled = True
                        End If
                    End If
                End If
            Next


    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 4.  RE: Disable Scenes in Sequencer via Scene Names

    Posted 19 days ago

    These both worked great, thank you all!



    ------------------------------
    Ben Kessler
    New York United States
    ------------------------------