Graphics

 View Only
  • 1.  Need Help With An Animation Controller Script

    Posted 07-06-2017 21:35

    Hello All,

    I know this is probably an easy script to execute but I am working on a template which has 10 animations that are all in the same place. In this template what I'd like to achieve is to animate the first block and turn off visibility on the remaining 9 blocks. And as I advance to the second block I'd like to turn on the visibility of the second block and turn off the first block as well as 3-9. I'd like to keep progressing this way turning off the previous blocks visibility and turning on the next. Does this make sense? I can elaborate more if necessary. This is a picture of my scene director I'd like to add these scri[ts at the pause point to turn off the previous animation and turn on the next. Any help would be greatly appreciated.



  • 2.  RE: Need Help With An Animation Controller Script

    Posted 07-07-2017 21:24
    I'm not totally sure I understand what or why you want to do this but here is how you would enable and and disable the animations on a scene director track.
    Instead of turning animation controllers on/off I'm enabling and disabling tracks in the scene director. So if my script disables track2 in the scene director then anything on that track won't work until the track is enabled again. See this image I've attached.

    Here's the script:
    dim dir as xpSceneDirector
    dim track2 as xpSceneDirectorTrack

    Scene.GetSceneDirectorByName("SceneDirector1", dir)
    dir.GetTrackByName("Track2", track2)
    track2.enabled = false
    #XPression