Hello all,
I'm having an issue with a script placed on my Scene Director.
I have created a scene with an animation in it. The animation is actually broken down into 5 steps with after each step a sort of living hold. So there is a small loopinganimation so that it keeps on moving before moving on to the next step.
In order to control the scene I have created two tracks on my Scene Director. One which holds the Loop Events and one that holds scripts.
The scripts are placed one frame beyond the loop event.
The idea behind this is that when I disable the loop track, one frame past the loop event, the loop track becomes enabled again so that it will continue until the next loop point and then starts looping again.
Through my control application I'm setting the track.enabled to false so that the animation continues to play to the next looping point. This is working without any problem.
My problem is that the script does not enable the track again.
And I don't understand why.
This is the code I have used in my Script Event on my Scene Director:
dim sd as xpSceneDirector
dim track as xpSceneDirectorTrack
Scene.getSceneDirectorByName("SD_Player1", sd)
sd.getTrackByName("LoopEvents", track)
track.Enabled = true
I have tested if the script event works by trying to make it stop the Scene Director from playing which works perfectly, but as soon as I try to manipulate the track, then it stops working.
I also checked if the track was detected by getting the name of the track and displaying it into a textbox which was also showing the right name.
So the track is linked but it seems the Enabled-property is not supported in scripting?
Anybody has an idea how to solve this?
Thanks,
Kenneth