Skip to main content
markwatkins
Known Participant
January 4, 2018
Question

Assign variable with TEB

  • January 4, 2018
  • 2 replies
  • 387 views

For aesthetic reasons (having to do with logos and transparency and whatnot) I'm attempting a custom TOC. I've got most of the TOC elements set up to "Display for Rest of Project" on Slide 2, and then I have the On Enter state of each successive slide executing either a ShowTOC or HideTOC Advanced Action.

One of the independent elements of the TOC is an "active" color state, which I'm toggling on or off within those Advanced Actions with conditionals that check the value of a variable "thisSection".

Since I'm taking up the On Enter state of each slide already, the only way I've found to set that variable on a slide by slide basis is with a Text Entry Box with its output visibility marked off.

My current concern is that I have to manually set the variable, the timeline length and the timeline position of the auto pause on the TEB per slide, and also that navigating backwards will be unreliable.

So, is there another way??? Seems like such a common thing.

This topic has been closed for replies.

2 replies

markwatkins
Known Participant
January 4, 2018

Yes, another problem is that the TEB doesn't seem to assign the variable when you navigate backwards via "Go to previous slide".

Lilybiri
Legend
January 4, 2018

I don't understand the setup at all. Why a TEB which is meant to be filled in by a user? A variable can also be associated with the Scrolling Text interaction which is not interactive, no problem with pausing points. But, as I mentioned, I don't understand the setup.

markwatkins
Known Participant
January 4, 2018

It's hacky. It's the only thing I've found so far that will let me assign a variable on a slide by slide basis, other than On Enter which I'm already using. I just tested Scrolling Text. There seems to be a perfomance hit? It basically does the same thing, though, yes.

Jeremy Shimmerman
Participating Frequently
January 4, 2018

If I understand your issue correctly, you could use the built in cpInfocurrentSlide variable to track progress.  

markwatkins
Known Participant
January 4, 2018

Thanks, but the TOC items refer to sections or chapters within the overall module, independent of slide number. Kind of like how you checkmark which slides you want to display in the default TOC Editor.