Graphics

 View Only
  • 1.  Animation and Visual Logic?

    Posted 11-13-2019 18:10

    So it's a shot in the dark but is it possible to achieve an animation like in the link?

    https://youtu.be/h0GO59VAC7U 

    The whole graphic should be pretty much centered on the y axis based on the height of the text body and the headline. This is determined through visual logic. It works perfectly.

    The issue that I run into is if I have a Back to Back animation where I just update the text body, the whole graphic's y position changes or moves slightly. The headline doesn't animate so there is pop off. I animate the Group's Parent attributes so it doesn't mess with the Visual Logic. So, I may be doing this the wrong way or is there another idea/way to go about animating this? Let me know if more information is needed. Thanks!



  • 2.  RE: Animation and Visual Logic?

    Posted 11-14-2019 23:00


  • 3.  RE: Animation and Visual Logic?

    Posted 11-15-2019 12:49

    This is it!! There's so much gold to this! Thank you!!!


    #XPression


  • 4.  RE: Animation and Visual Logic?

    Posted 11-15-2019 18:39

    So, let me say that this is beautiful! I get a lot of what the Visual Logic is doing, but could you explain what the Script is doing? (I'm a noob at scripting and I would love to learn more about scripting if possible).


    #XPression


  • 5.  RE: Animation and Visual Logic?

    Posted 11-15-2019 19:57

    Hi,
    The key is the script:

    dim textOLQH, textOLQHC as xpTextObject
    dim OLQH as xpScene
    dim fb as xpOutputFramebuffer

    engine.GetOutputFramebuffer(0, fb)
    fb.GetSceneOnLayer(0, OLQH)
    OLQH.GetObjectByName("TSQH", textOLQH)

    self.GetObjectByName("OLQH", textOLQHC)

    textOLQHC.text = textOLQH.text

    The script is OnPrepare tab and it reads the existing output. If it find online OLQH object (named by me after OnLine Quad Height), it read the quad height value and write it in on a hidden text object - this is helpfully to make the quad transition from existing dimension to the new dimension.
    If it doesn't find OLQH object online it keep the initial value to 1.
    (You can make visible hidden text object in scene - it's very helpfully to read values when developing a new scene)

    Other key points:
    - The intro scene is played only when no other scene like this is online > you don't have to worry about old/new values
    - If same scene is online the Intro scene is not played and it jump to Update Text In/Out scene > you need to wipe out existing text, create a quad transition between old (existing online value) and the new value (based on new text dimension - by the way > the quad dimension is calculated in Visual Logic - it didn't work fine with Auto Scale as child of text). You have to know that scene director Update Text In and Update Text Out are played together and get more space in front of Update Text In timeline and cut the visibility/alpha of quad object when the wipe out is done.
    - Info text is visible just on white/blue quad (on same Layer Object group) > text has a custom Blending Mode Material face.
    - I used stagger animation in order to wipe in and out text.

    PS: I'm also a noob too.


    #XPression


  • 6.  RE: Animation and Visual Logic?

    Posted 11-15-2019 20:32

    As far I know:

    dim textOLQH, textOLQHC as xpTextObject
    dim OLQH as xpScene
    dim fb as xpOutputFramebuffer

    dim - define variables. Some of them are xpTextObject, xpScene, xpOutputFramebuffer.

    engine.GetOutputFramebuffer(0, fb)

    Get/(refer to) first Frame Buffer engine/online

    fb.GetSceneOnLayer(0, OLQH)

    Get/(refer to) Layer 0

    OLQH.GetObjectByName("TSQH", textOLQH)

    Get value/number/text written in object TSQH and keep it in textOLQH

    self.GetObjectByName("OLQH", textOLQHC)

    Get value/number/text from new scene witten in object OLQH and keep it in textOLQHC

    textOLQHC.text = textOLQH.text

    Write the current online quad height in OLQH text object.


    #XPression


  • 7.  RE: Animation and Visual Logic?

    Posted 11-16-2019 09:45

    Great work !

    Combination of visual Logic and scripting is very clever  to make the transition works.

    Love the blending mode on font material too...

    Thank you very much Gabriel for sharing this.


    #XPression


  • 8.  RE: Animation and Visual Logic?

    Posted 11-18-2019 15:24

    Thank you for taking the time to explain it! This really helped me figure out what the script is doing and how to use it :)


    #XPression