Graphics

 View Only
  • 1.  Translate Visual Logic to scripting?

    Posted 26 days ago
      |   view attached

    Hello!

    I'm having some trouble with visual logic not keeping up with the 14 frame out animation (it works just fine when animating in).

    I'm making a lower third where the background quad is scaled by the length of the text, both anchored on the right. 

    The In and Out animation is the TLF_BKG scaled x 0 to 100 keyframed each frame to match the provided curve and to hide the text there's a mask that has this visual logic.:

    Like this:

    The text position is also slightly animated with position x.

    When taking the graphic on air the text is not visible outside the background but when animating out the mask seems to be one step behind the background.

    Like this:

    This is not visible in layout. I'm thinking the fix here is to script the position of the mask, is there any other way to do it? 

    I've tried tinkering with a script but can't find a way to get the BoundingBox.WidthScaled or getting the "simple" calculations to run. I'm sure there's lots missing in it.

    I tried VL'ing the WidthScaled to a separate text object with something like this OnOnline:


    dim scene as xpScene
    dim bkg as xpBaseObject
    dim mask as xpBaseObject
    dim bredde as xpTextObject

    Self.GetObjectByName("TLF_BKG", bkg)
    Self.GetObjectByName("MASK_left", mask)
    Self.GetTextObjectByName("Bredde", bredde)

    mask.PosX = (bredde.Text) 

    Any help and pointers will be much appreciated!

    Best regards,

    Oda



    ------------------------------
    Oda Skavlid
    ------------------------------

    Attachment(s)

    xpf
    Slow_animation.xpf   149 KB 1 version


  • 2.  RE: Translate Visual Logic to scripting?

    Posted 25 days ago

    Hi again,

    I managed to move a new quad based on the x position of the mask:

    dim obja as xpBaseObject

    dim objb as xpBaseObject

    Self.GetObjectByName("MASK_left", obja)

    Self.GetObjectByName("ny", objb)

    objb.PosX=(obja.PosX+20)

    It looks like this new quad is even another step behind the desired animation, which is the opposite of what I hoped. Maybe it will sync if I can script the mask directly, but I can't figure out how to get the BoundingBox.WidthScaled value to make the script directly (and add the logic I now have in Visual Logic).

    Is there any way to prerender the path so it doesn't lag behind? Any and all suggestions and solutions are highly welcome!

    Best regards,

    Oda



    ------------------------------
    Oda Skavlid
    ------------------------------



  • 3.  RE: Translate Visual Logic to scripting?

    Posted 23 days ago

    On the way in is the mask ahead on the text so for example you see blank red on the way in? 



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



  • 4.  RE: Translate Visual Logic to scripting?

    Posted 23 days ago

    No, on the way in the background and text are revealed simontaneousely and as expected. I have not seen only the background without the text.

    Best regards,

    Oda



    ------------------------------
    Oda Skavlid
    ------------------------------



  • 5.  RE: Translate Visual Logic to scripting?

    Posted 8 days ago

    Did you resolve this? 



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



  • 6.  RE: Translate Visual Logic to scripting?

    Posted 7 days ago

    Hi!

    Yes, I've just implemented an idea I had to duplicate the background quad and make it static and as long as the lower third can be. This way it fills the gap between the actual background and the mask. This does the trick in this case since it's a solid color background.

    Oda



    ------------------------------
    Oda Skavlid
    ------------------------------



  • 7.  RE: Translate Visual Logic to scripting?

    Posted 7 days ago

    Nice one :)



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