wiki:ITERATION_12/Release/UserDocumentation/SophieAuthor/09_WorkingWithTimelines

Version 9 (modified by danvisel, 15 years ago) (diff)

--

9. Working with timelines

Timelines will allow the authors of Sophie books to create complex books with reader-triggered actions that change over time. The current timeline model in Sophie 2 is loop-based; it is provisional and provides only a fraction of the capabilities of timelines to come in the final version of Sophie 2.

To edit timelines in Sophie, you need to open the timeline interface, which is the bottom flap. The timeline interface will show the timeline for the current page (if you have no frames selected) or for the frame or group currently selected. Every page in a Sophie book has a master timeline which shows all the frames on the page. Each frame (or group of frames) has its own timeline as well. The page, frames, and groups of frames have timeline halos, which will open up the timeline HUD for the page, frame, or group of frames.

Currently, timelines can not be triggered by the book; they start automatically when a page that uses a timeline is opened and loop. Much more timeline functionality will be added in the future to Sophie.

The page timeline

The page timeline appears in the bottom flap when the page is selected. Right now, it just consists of a slider; it looks like this:

source:/branches/private/danvisel/sophie2-platform/doc/userdoc-images/RELEASE_12/PageTimeline.png

You can set the resolution of the timeline with the controls in the bottom left of the timeline interface. The slider can be dragged back and forth, which will show what the page looks like at that point in time.

You can move frames around on the page: if you move the slider to 0:10, then move a frame from the upper left corner to the lower right corner, when the timeline is played back, the frame will move from the upper left corner to the lower right corner at 0:10.

You can also use the page timeline to change visibility: a frame can be made to appear from 0:00-0:10, then disappear, then reappear at 0:20. To do this, move the slider to 0:10. Then select the frame you want to hide; open the frame's appearance HUD:

source:/branches/private/danvisel/sophie2-platform/doc/userdoc-images/RELEASE_12/BorderFillHUD.png

Uncheck the checkbox that says Visibility. Then move the slider on the timeline to 0:20; turn Visibility back on. When the timeline is played back, the frame will disappear from 0:10 to 0:20.

source:/branches/private/danvisel/sophie2-platform/doc/userdoc-images/RELEASE_12/PageTimelineHUD.png

The frame timeline

Each frame's timeline appears in the bottom flap when the frame is selected. The frame timeline looks like the page timeline, but it only shows the selected frame:

source:/branches/private/danvisel/sophie2-platform/doc/userdoc-images/RELEASE_12/FrameTimeline.png

Like the page timeline, you can set the resolution of the timeline with the controls in the bottom left of the timeline interface. This timeline has two channels: one for visibility and one for position. If the slider is moved and the frame's visibility or position is changed, the channels will reflect this. This timeline has a shorter length than the page timeline shown above.

You can set the length of the frame's timeline in the frame timeline HUD. Click the frame's timeline halo to open its timeline HUD, which looks like this:

source:/branches/private/danvisel/sophie2-platform/doc/userdoc-images/RELEASE_12/FrameTimelineHUD.png

The value in MAIN controls the length of the frame's timeline. (This value is in animation frames, not in seconds.) If this length is less than the length of the page's timeline, the frame's timeline actions will loop when the page is played. The INTRO and OUTRO values control how much time is added before and after the main actions of the frame's timeline.

Playing back a timeline

When a book with timelines is opened in Sophie Reader or in Preview mode, the timeline on a page starts playing as soon as the user turns to that page. Currently the timeline loops indefinitely; this will change in the future.