Or place this in a script on the default director where MY_SCENE equals the scene you are working with, and MY_DIRECTOR is the scene director you want to trigger. You would then adjust PlayRange to the length of your scene length. This script makes it so Xpression doesn't care what layer you have your scene on up to 10.
dim scene as xpScene
dim fb as xpOutputFramebuffer
dim scenedir as xpSceneDirector
dim layer as integer
engine.GetOutputFramebuffer(0, fb)
for layer = 0 to 10
if fb.GetSceneOnLayer(layer, scene) then
if Scene.Name = "MY_SCENE" then
if scene.GetSceneDirectorByName("MY_DIRECTOR", scenedir) then
if scenedir.position >= 150 then
scenedir.PlayRange(150, 0)
else
scenedir.PlayRange(0, 150)
end if
end if
end if
end if
next
#XPression