Graphics

 View Only
Expand all | Collapse all

scripting animationcontroller

  • 1.  scripting animationcontroller

    Posted 10-19-2023 09:28

    Hello.

    I have a animationcontroller with a text object inside, that I want to move in Y position.
    That is no problem.

    My problem is that I also decide the height of the text and only want it to move acording to the height of the text.

    How can I do that?



    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------


  • 2.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 09:40

    Make a null object (any object and hide it)

    Animate it on any axis (ex Position.X) 0 to 1 over the desired duration.

    Take the bounding box height of your text object.

    Use visual logic to multiply the height by the Position.X of the null object.

    It will now animate from 0 to Null.Position.X.Value



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



  • 3.  RE: scripting animationcontroller

    Posted 10-19-2023 10:08

    @Simon Redmile can you give an example?

    It might be me, but I dpn't get it?



    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------



  • 4.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 10:32

    Yes, I have a tight deadline I am working on but I'll get you something when I get a mo. 



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



  • 5.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 10:43
      |   view attached

    I really quickly knocked this up.

    Look in visual logic and the scene director to understand. 

    It should get you started. 



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

    Attachment(s)



  • 6.  RE: scripting animationcontroller

    Posted 10-19-2023 11:18

    That's a neat trick!



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 7.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 11:21

    Thanks!



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



  • 8.  RE: scripting animationcontroller

    Posted 10-19-2023 13:13
      |   view attached

    I can't see how I can use that?

    I have attached a file (could not attach a XPE file, so renamed it to XPF)

    There is an animationcontroller that moves the text up.
    But when you have fewer lines, it should not be moved as much.



    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------

    Attachment(s)

    xpf
    TEST.xpf   292 KB 1 version


  • 9.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 16:02

    So take the same theory but apply it to the position of your text and not the scale of an object?



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



  • 10.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-19-2023 16:03

    Try it yourself based on what I provided, have a play and see if you can do it.

    Tomorrow I should have some time to make an example if you are still stuck. 



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



  • 11.  RE: scripting animationcontroller

    Posted 10-19-2023 16:30

    Please feel free to do that, I'm stuck right now, right now I can't see how to do it.



    ------------------------------
    Tue Sandbæk
    Director / TV-Technician
    TV SYD
    ------------------------------



  • 12.  RE: scripting animationcontroller

    Ross Staff
    Posted 10-20-2023 05:27
      |   view attached

    See attached example project. 



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

    Attachment(s)

    xpf
    textPosYbasedOnHeight.xpf   23 KB 1 version