Graphics

 View Only
Expand all | Collapse all

#XPression Triggering animations for an online graphic

  • 1.  #XPression Triggering animations for an online graphic

    Posted 05-30-2022 22:34
    Hello all.  My question involves choosing an animation to play out "on the fly" while the graphic is online.  I begin by playing out a full screen.  There are four lines (topics for discussion).  Each line has 3 boxes, which are basically dark colored quads.  As the host of the show introduces a topic, he will then make a choice of box 1, box 2, box 3, or a combination of all boxes.  As he makes his choice, I want to be able to animate the dark colored box to a bright colored box, indicating that the bright colored box is his choice.

    Right now, I have an animation in Scene Director, which is a 20 frame dissolve.  I also made separate scene directors for each line.  Each scene director has separate animation controllers for each box animation (a 10 frame dissolve to "light up" the dark colored box).  I also want to anticipate the host going out of order on the topics.  He may go from Line 1 to the topic on Line 3 and make his picks for line 3, then jump back to line 2, etc.
    fs
    I've seen similar questions that were answered with script.  If at all possible, I would like to use visual logic, because I feel much more comfortable using it.  I will, however gladly try a script.  I would just like to get this working.  Thank you all in advance.



    ------------------------------
    Mark Stasiowski
    ------------------------------


  • 2.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 00:33
    How do you plan on playing the various animations? Are you using a dashboard. or keystrokes to trigger? The way I am think would involve some scripting but it's very simple.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 3.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 00:56
    Thank you for responding!
    I am using this straight from the XPression sequencer, so I'd be using keystrokes.  I'll give the scripting a shot. I've used some scripting before, although a lot of it is just copying and pasting it in the right spot.  Any help is appreciated.  Thank you.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 4.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 01:01
    it'a piece of cake. I'll send you a script first thing in the morning. I'll put a few notes in the script to explain what is going on but it's only a few lines.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 5.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 01:18
    Ok this script goes on a shortcut in the "keyboard/GPI Mapping" section under "Edit". Take a look at it. 

    dim fb as xpOutputFramebuffer
    dim scene as xpScene
    dim sd as xpSceneDirector
    dim layer as integer


    engine.GetOutputFramebuffer (0,fb)
    fb.GetSceneOnLayer (0, scene)

    'this checks to see which layer your scene is on.
    For layer = -10 to 15
    If fb.GetSceneOnLayer(layer, scene) then

    'change the name of My Scene and My Scene director to fit your scene
    if scene.Name = "My Scene" then
    scene.GetSceneDirectorByName ("My Scene Director", sd)

    'this checks where the play head is on your scene director
    'and also allows you to play in reverse if you want
    'change the ranges to match your scene director length
    if sd.Position >=10 then
    sd.PlayRange(15,0)
    else
    sd.Playrange(0,15)

    end if
    end if
    end if


    next

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 6.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 20:35
    MalThePal -
    Thank you for this.  I am working on it now and will let you know the results and if I have any further questions.  I appreciate the help, time and effort you already put in on this.

    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 7.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 21:23
    copy and paste my man. Took 5 minutes.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 8.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 21:28
    OK, I put the script in the keyboard mapping.  I changed the name of the scene to "CTC LIGHTS TEST" and the scene director name to "ANIM IN" reflecting what they are named in my project.

    Here is what my script looks like: 
    After compiling (F7), these are the error messages I got:

    I'm sure it's probably due to the fact that I am not well versed on scripting, but can you tell me what to change to fix these?  Thank you


    ------------------------------
    Mark Stasiowski
    ------------------------------



  • 9.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 21:33
    right off the bat I noticed you didn't include the "next" at the very bottom. This makes the script loop back to the FOR so that it will run on different layers. I need to clear that out for next time. Try that first. Also the top lines where it starts with "dim" needs to be there too. This is where you tell the script the names of the variables you want to work with. 


    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 10.  RE: #XPression Triggering animations for an online graphic

    Posted 06-02-2022 21:36
    Mark, check your inbox for messages.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 11.  RE: #XPression Triggering animations for an online graphic

    Posted 06-03-2022 14:29
      |   view attached
    Malcom - 
    Here is the package.  The one I was working on is the one with the stop lights.  Just to refresh, I'm trying to go from no lights on at all to a row-by-row reveal (not necessarily row 1-4, but in any order) to light the corresponding lights as the talent makes his picks live on-air.
    I'm guessing I could use the same script, but I also want to have an instance where we begin with his previous picks and animate from those to his new picks.  
    Thank you again for your help.


    ------------------------------
    Mark Stasiowski
    ------------------------------

    Attachment(s)

    xpp
    2021_TDAN_v2_FS.xpp   420.39 MB 1 version


  • 12.  RE: #XPression Triggering animations for an online graphic

    Posted 06-03-2022 14:59
    I got it working just fine. So next week let's take a close look and see what might be the problem. I have lightened the script a bit too. Have a good weekend.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 13.  RE: #XPression Triggering animations for an online graphic

    Posted 06-21-2022 19:15
      |   view attached
    Here is the pkg back

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------

    Attachment(s)

    xpp
    2021_TDAN_v2_FS.xpp   420.51 MB 1 version