How do you stitch scenes together in an animated video?

Hi Leslie!

I'm not 100% clear about what You are trying to do. Your first post does not mention video at all... the second one does. If You are trying to get a scene jump when a video segment ends try the code below which I copied from a post @Daniel put up. I can't find the post right now, but here is the code - works great. The function name is my own. Replace 'myElement' with the id of the video piece You want to transition from when the video ends & replace 'myScene' with the name of the scene You are transitioning to. You have the option to spec the transition type (and duration of transition). If You do not it will use the default of "Instant".

This code should be placed in the "on scene load" handler for the scene containing the first video (which will transition to the second video).

function videoEnded(hypeDocument, element, event) {    	
	hypeDocument.getElementById('myElement').addEventListener('ended',myHandler,false);
	function myHandler(e) {
    if(!e) { e = window.event; }
   	hypeDocument.showSceneNamed('myScene', hypeDocument.kSceneTransitionCrossfade, 5.0)
	}
}

I think You ned to evaluate things on a case by case basis.
I am working on a project with over 20 videos. The videos typically are 3-5 minutes in length. I find, in this scenario, that working with one long timeline is impractical. So I've broken the videos into scenes - bit size chunks - that I find far easier to work with.

Also, I do as much of my work as possible using code for long pieces. I'm up to 25 minutes of video so far (with a ways to go) and the "Main Timeline" is "0" seconds long at this point. Another reason for this state of affairs is it is not possible to set up triggers on a video's timeline.

=======================================

Also, found the "original" post where I got the code, Daniel's is the sixth one down.

1 Like