Change scenes via timeout

If I’m reading it right, it looks like the clicking resets the interval counter.
Of course my syntax is non existence.:roll_eyes:

ups sry … i replaced the file …

I know this is an old thread, and I’ve used this script as described here to jump back to an idleScene. What I want this to do now is to go to the next scene after the idle timeout, but I obviously can’t just put “hypedocument.shownextscene” as my idleScene variable. What’s the syntax for this?

1 Like

replacing
hypeDocument.showSceneNamed(scenesNamesWithoutIdleControl[0], hypeDocument.kSceneTransitionCrossfade, 1.1);

with

hypeDocument.showNextScene( hypeDocument.kSceneTransitionCrossfade, 1.1) || hypeDocument.showSceneNamed('Start', hypeDocument.kSceneTransitionCrossfade, 1.1);

may be what you want. I assume you will have an empty scenesNamesWithoutIdleControl array

So this code just circles through the scenes.

Note I have not delved deeply into the threads code and what it does.

1 Like