Graphics

 View Only
  • 1.  Load Next Item Script

    Posted 05-28-2012 22:57
    I am building some election graphics and am trying to make a custom transition for them. I have my motion created using the Scene Director, and have added an event at the end of the animation to take the item offline. I am trying to write some scripting that will automatically load the next take item when I take the current take item offline. I'm still new to the scripting for this, and any help would be appreciated. Thanks!


  • 2.  RE: Load Next Item Script

    Posted 05-29-2012 08:23
    Just use the sequencer in timed mode...

    #XPression


  • 3.  RE: Load Next Item Script

    Posted 05-29-2012 10:58
    Matt, if you need a next take item to start just after the current one goes off then organize the items into a Sequencer's group and run it in the Timed (Per Item) mode, - as Vincent advises. Just make sure your scene's duration is what you'd like, that is as long as from the beginning till the last animation controller's last frame (not necessarily key frame).

    Also, you may want to get some fun from using RossTalk(TM) protocol.

    • Place Offline Event wherever you want in Scene Director.
    • Check if your system has .NET Framework installed.
    • Configure XPression to receive Smart-GPI commands:

      • Go to Hardware Setup menu --> GPI Boards tab
      • Press Add, and choose Smart GPI
      • Set TCP mode



      Insert the following script for onOffline event:






    dim msg as String

    msg = "NEXT" + ControlChars.CrLf

    Dim tcpClient As New System.Net.Sockets.TcpClient()

    tcpClient.Connect("127.0.0.1", 7788)

    Dim networkStream As System.Net.Sockets.NetworkStream = tcpClient.GetStream()

    If networkStream.CanWrite And networkStream.CanRead Then

    Dim sw As System.IO.StreamWriter

    Try

    sw = New System.IO.StreamWriter(networkStream)

    sw.Write(msg)

    sw.Flush()

    Catch ex As System.Exception

    End Try

    End If

    tcpClient.Close()



    Enjoy :)

    #XPression


  • 4.  RE: Load Next Item Script

    Posted 05-29-2012 20:58
    When I've tried using the Timed Sequence Group, it still won't load the next take item automatically.

    #XPression


  • 5.  RE: Load Next Item Script

    Posted 05-29-2012 21:16
    My guess is you tried to play items in the group, while you need to double-click on the group's header - in order to start the whole group.

    #XPression


  • 6.  RE: Load Next Item Script

    Posted 05-29-2012 21:29
    Ok, now it goes to the next take item, but it is now ignoring my pauses.

    #XPression


  • 7.  RE: Load Next Item Script

    Posted 05-29-2012 22:18
    Are your pauses supposed to be released manualy by an operator, or they are auto-released in definite amounts of frames?

    #XPression


  • 8.  RE: Load Next Item Script

    Posted 05-29-2012 22:21
    Manually. I can't set a specific amount of time because the anchors are adlibbing over the graphics.

    #XPression