Graphics

 View Only
  • 1.  Animations Controllers and Scripts

    Posted 11-03-2015 02:30
    I was wondering if it is possible to trigger an animation controller with a script. Kind of like a visibility script where if the text field has a 1 it can trigger an animation controller and a 2 can trigger a different one?


  • 2.  RE: Animations Controllers and Scripts

    Posted 11-03-2015 16:37
    I've not tested but something like this will probably work.

    dim optiontext as xpTextObject

    dim director1 as xpSceneDirector

    dim director2 as xpSceneDirector

    Self.GetObjectByName("OPTION", optiontext)

    Self.GetSceneDirectorByName("DIR1", director1)

    Self.GetSceneDirectorByName("DIR2", director2)

    if optiontext.text = "1" then

    director1.playrange(0, director1.duration)

    end if

    if optiontext.text = "2" then

    director2.playrange(0, director2.duration)

    end if

    #XPression


  • 3.  RE: Animations Controllers and Scripts

    Posted 11-05-2015 00:00
    Thanks ill give it a try

    #XPression