Announcement

Collapse
No announcement yet.

VTW Script to check for engine name or ip address

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • VTW Script to check for engine name or ip address

    Hello,

    Please share a vtw script to check if a template is loaded on a specific engine, trying to keep track if an image was on air

    thnaks

  • #2
    This is your previewscript. It is the same you need. In the scene that is, not the template. Instead of the Preview Engine (as in my code) use your Output engine IP. Instead of the Previewgrid check your imagename and send that to a SHM or something so that you can log it.

    Code:
    dim PreviewGrid as container = Scene.FindContainer("SafeGrid2")
    dim IP as String = system.IPAddressString
    
    sub OnInit()
        SafeGrid()
    end sub
    
    sub OnInitParameters()
        RegisterParameterBool("testmode","Testmode", false)
    end sub
    
    sub SafeGrid()
        if GetParameterBool("testmode") = true then
            IP = system.IPAddressString
            PreviewGrid.Active = True
           'Println(14, "SafeGrid is visible in testmode")
        else
            if IP == "10.101.63.144" then        'This is my fixedIP Preview Engine/iconserver
                PreviewGrid.Active = True            
                'Println(14, "SafeGrid is visible on PreviewServer")
            else
                PreviewGrid.Active = False
                'Println(12, "SafeGrid is Off on OutputEngine")
            end if
        End if
        Println(14, "My IP is " & IP)
    end sub
    
    sub OnParameterChanged(parameterName As String)
        SafeGrid()
    end sub

    Comment


    • #3
      Then take the SHM and write that out to a file.

      -1 VIZ_COMMUNICATION DUMP_SMM_TOFILE "C:\MyDumpSMM.txt"

      Comment

      Working...
      X