Graphics

 View Only
  • 1.  Update scene textobject with transition (eg fade)

    Posted 07-22-2013 13:39
    Hi,

    I have a scene with some textobjects:

    dim Engine as new xpEngine

    dim Scene as xpScene

    Dim TextObj As xpTextObject

    Engine.LoadProject("c:demo.xpf")

    Engine.GetSceneByName("scene1", Scene)

    Scene.GetObjectByName "textdata1",TextObj)

    TextObj.Text="Hi there"

    Scene.SetOnline 0, 0

    'do some delay (eg 5 sec)

    Delay(5000)

    'now change the textobject

    Scene.GetObjectByName "textdata1",TextObj)

    TextObj.Text="Some data"

    This is work, but i need to apply some transition (fade) when change the content of textobject.

    How can I use transition when the scene is already online?

    Thanks in advance

    Elias


  • 2.  RE: Update scene textobject with transition (eg fade)

    Posted 07-22-2013 14:23
    Hi Elias,

    Just use:

    TextObj.FadeRange 100,0,10 'Fades the text from 100% to 0% in 10 frames

    TextObj.Text = "New Content" Changes the content of the textobject

    TextObj.FadeRange 0,100,10 'Fades the text from 0% to 100% in 10 frames

    Best regards,

    Kenneth

    #XPression


  • 3.  RE: Update scene textobject with transition (eg fade)

    Posted 07-22-2013 15:17
    Kenneth,

    This is the case A to black, black to B

    If I wadn to go from A to B is any method?

    If I have more than one textobject?

    Can I use lock & unlock, in order to have the transition for all textobj simultaneously?

    #XPression


  • 4.  RE: Update scene textobject with transition (eg fade)

    Posted 07-22-2013 21:24
    The most flexible way that I have found is to use two text objects and an animation controller which performs an animation (could be a dissolve, push, rotate, etc) between them. You would need an animation controller for each set of text objects that you want to effect between.

    Here is an example in C#. (Make sure to load the included XPF before running the application)

    https://rossvideo.centraldesktop.com/p/eAAAAAAAB1nBAAAAAFBanQo

    #XPression