• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Return to a point on a slide

Explorer ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

Hi,

 

Is there a way of returning to a certain point on a slide?

 

I have a slide that shows a sequence of events.... one the sequence has been completed, id like the user to be able to watch it again via a 'repeat' button. is there a way that i can say, 'when repeat button is pressed return to 00:02 (for example)  on the slide and play so that the pattern repeats (as many times as the user likes)

 

many thanks

Rob

TOPICS
Advanced actions

Views

191

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

Typical use case for micro-navigation. Here is an introduction;

https://blog.lilybiri.com/micro-navigation-introduction

The idea is that you need to use a variable from the Movie Control category:

  • cpCmndGotoFrame    if you don't want the start playing again from that frame
  • cpCmndGotoFrameAndResume   if you want to start playing again

You need to find the frame number to which you want to navigate.  If it is the first frame of a slide, I would store that first frame in a user variable using the cpInfoCurrentFrame system variable when entering the slide. 

Please have a look at that blog post to understand my terminology. If it is not a frame corresponding with an event (like the On Enter for a slide), you may need bit more explanation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

If that slide contains a slide-video, you can create a bookmark anywhere on the timeline and then use the Jump to Bookmark action along with your proposed button. Without video, you could use the frame number of that location (30 frames per second). Write an advanced action that, when run, would Assign cpCmndGotoFrameAndResume with a literal value of 60 (two seconds into the first slide).

Paul Wilson, CTDP

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

Paul thank you - what if its not the first slide? would that make a diff?

 

a quick test at doing what you have suggested has put me back to a previous slide so i think its taking the project as a whole.. and not looking at the current slide... hope that makes sense?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

Please, read the blog post to understand the difference between slide duration in seconds, which restart each slide, and the frames which are counted over the whole project. What you experience is that there may be a slight difference when using that Assign command, and one frame can cause that navigation to the last frame of the previous slide and the first frame of the present slide. It is a bad idea to try to use an absolute frame number, much better to use a relative frame jump based on a slide number which you can store in a variable. 

The alternative to micro-navigation is to plunge into JavaScript if you prefer. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2023 Jan 25, 2023

Copy link to clipboard

Copied

LATEST

Forgot to tell: if you just want to go to the first frame of a slide, there is a much easier way. Attach this advanced action to the button:

    Expression  cpCmndGotoSlide = cpInfoCurrentSlide - 1

    Continue

The reason for the mathematical expression is that the index of cpCmndGotoSlide starts with 0, whereas cpInfoCurrentSlide's index starts with 1. More details (but I think you don't like reading blogs):

https://blog.lilybiri.com/replay-or-reset-slide

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources