Graphics

 View Only
  • 1.  Animation controller feature request

    Posted 12-01-2014 22:32
    Can we set the text in a text object via an Animation controller? Now, here's a feature that could be useful...


  • 2.  RE: Animation controller feature request

    Posted 12-01-2014 22:48
    You could use a script event in the scene director that sets the text of a text object - this would trigger a OnSetText event as well.

    dim word as xpTextObject

    scene.getobjectbyname("Text1", word)

    word.text = "Change"

    #XPression


  • 3.  RE: Animation controller feature request

    Posted 12-01-2014 22:57
    Yeah, I know. It's something that might need another Scene Director if, for instance, you wanted to update fields on an event, but "animate" the update. Say, for example, you want to transition between to numeric values that are poll updates, but you want to display intermediate values when transitioning. A nice, claen way to do this would be to have the ability to have the values as text that could be updated every frame in an Animation Controller. The star and end values could be set, and the intermediate values calculated and placed in the keyframes using the SetKeyfame Value method, then the Animation Controller could simply be played.

    If you don't want this to happen in your normal animation sequence, it looks like you'd have to set your script events in a different Scene Director. Sure, it's doable, but it's also more complicated than it needs to be.

    #XPression


  • 4.  RE: Animation controller feature request

    Posted 12-02-2014 04:24
    You could do what you suggest Jim, just keyframe any value like the Position X value of an object and then use visual logic to attach the PositionX to the Text property of a text object. It will get converted to a string and assigned to the text. When you play the animation controller the text should change as the animation plays. (Or maybe I really don't understand what you are asking for)...

    #XPression


  • 5.  RE: Animation controller feature request

    Posted 12-02-2014 18:47
    Brian, yeah, that could be done, and I guess it would work. OTOH, being able to use Text as one of the accessible parameters in an Animation Controller would be more direct. The difference, I guess, would be dynamically setting text based on the position of another element, vs. pre-calculating those values and plugging them into the Animation Controller, the playing the AC. I guess it's just a matter of where you want the calculation overhead.

    #XPression