Log in

View Full Version : Scenarist Button/Menu Return HELP


superleo
20th February 2013, 17:31
I have a project that has one menu with 10 pages in it. The intention is to return to the next page (clip) after the clip ends playing. I have another project with the exact same code that works perfectly, being the only difference that the other project has all the buttons in the same page.

The code only works the first time... you can select any clip and after is played it returns to the following clip, as it should, however after that instead of returning to the following clip it returns to the same clip.

Here is the graphics for the menu.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/CI-180436548830281602.jpg

Below is the Scenarist menu structure page, that would include a dummy page, eight pages for each individual clip and a page for a "play all" menu (more questions on this one later). On the picture below you can see the if statements for the dummy menu that should redirect to the next page.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/Ifstmntsdummy.jpg

On the below picture is the page GPR assignments

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/Register.jpg

The code for storing the GPRs. I have included two of the pages for reference.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/ClipBtnReg.jpg

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/ClipBtnReg2.jpg

And finally the return to the "dummy page"

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/Cipplayreturn.jpg

As I mentioned it only works for the first time. Any help/ideas of why is not executing the way it should?

perquin
21st February 2013, 11:08
Hi,

You don't make it the good way.

Simply use one gprm where you put 1,2,3,4 ..... when you click a button.
In the return make the setbutton page for the value in gprm.

In how you make it you not reset the gprm xx if not a click on a button let it stay always true !!! is why it not work.

Regards,

superleo
21st February 2013, 19:08
Hi,

You don't make it the good way.

Simply use one gprm where you put 1,2,3,4 ..... when you click a button.
In the return make the setbutton page for the value in gprm.

In how you make it you not reset the gprm xx if not a click on a button let it stay always true !!! is why it not work.

Regards,

Thanks for your answer pequin.

I'm not following your suggestions 100%. Where you say "Simply use one gprm..." Once you navigate to the page you want to select, in the example above to be specific, the animation page, before you select the button, the page stores (move) the GPR to value 1, then when it goes back to the dummy page it checks for If GPR=1 then it executes setbutton to the next page (eagles) select button. If this is what you mean, it is already storing a GPR on every page before it selects the button.

How do I reset GPRxx and if is not clicked to keep it always true?

superleo
21st February 2013, 21:56
Well... I got the first part working. I'll post the way I made it work just in case someone else would be doing something like this. Perhaps is not the correct way or the most efficient way but it works.
My second task is to do something similar from the "Play All" page/menu where the it returns to the page where you came from.

superleo
22nd February 2013, 20:30
Here are the main changes I did to the coding.

Lames terms on how the menu reacts: When the user presses "select" to play the clip the video plays, once the video finishes playing the menu returns to the following clip. If the user selects the "Play All" button, the disc navigates to the play all menu. From there if the user selects the arrow to go back, then the disc returns to the menu from where the user clicked.

First I replaced the "Registers" to only two register #1- selected button, and #11 - play all button.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/RegistersNew.jpg


Added a reset to zero for the play all button on every page.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/ClipBtnRegisterNew.jpg

Here is the code for the "Dummy Page"

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/IfStmntsNew.jpg


The "Play All" menu and the code for it.

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/CI-156983548830281602.jpg

http://i295.photobucket.com/albums/mm148/CastilloLeo/Scenarist/PlayAllBtnNew.jpg

There is probably a better/easier way to code these, either way this way works. Hopefully this helps someone else with a similar question.