VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    I have a menu of 5 selections. Lets say the user clicks #2, he will go to another menu. But if he clicks Back to Main, I want #2 to be highlighted because thats where he had come from (rather than default btn set as first button). Is this possible in DVD Lab Pro? If so, how is it accomplished?
    Quote Quote  
  2. Not sure in DVD-Lab exactly. But I can say you would need to track which button was selected in a GPRM.

    1. Set GPRM0, SPRM 8 - this puts the value of the button( SPRM 8 ) in GPRM 0
    2. div GPRM 0, 1204 - this gives you an easy number to work with since SPRM8 works in increments of 1024

    You can do this in the post command section of the PGC of the first menu if you'd like. Now GPRM 0 will hold the button value

    The "Back to Main" button would have to look at another script which evaluates what the value of GPRM 0 is then highlights the appropriate button when it returns to the MAIN MENU.

    There are tons of ways to do this but this is how I would do it.
    Quote Quote  
  3. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    OK so I read the entire section on VM in the help of DLP. Here is what I did:

    I selected each of my buttons on my menu, and right-clicked, then chose Set GPRM and Link To. For each button, I would set GPRM1 = whatever the button value was. In my case 0 - 6. Then what I did is I edited the PRE commands for that menu so that it would check to see what the value of GPRM is and to highlight the corresponding button. To do so, I typed if (GPRM1 == 0) LinkNoLink (button 0)...so on and so forth up to 6.

    Its not working. What have I done wrong?
    Quote Quote  
  4. Member
    Join Date
    Aug 2004
    Location
    United States
    Search Comp PM
    I dunno how complex your main menu is, but a simple way is to just clone the menu with the 5 selections and set #2 as the highlight button. Then link the Back To Main to the cloned menu instead. It all depends how complex your menus are and if you have space to work within the DVD size.
    Quote Quote  
  5. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    So Pinstripes, if I understand correctly you are suggesting I use something similar to switched menus in the sense that no they wont switch whenever the user navigates but yes i will actually have 5 menus with just a different "Set as First Button". Did I understand correctly? Its a clever solution and I may take it if no one can help me out with the VM code. Id prefer to get it working using VM (personal satisfaction!)
    Quote Quote  
  6. Member GeorgeW's Avatar
    Join Date
    Feb 2005
    Location
    United States
    Search Comp PM
    The MENU Buttons are set to multiples of 1024

    Button-1 = 1024
    Button-2 = 2048
    Button-3 = 3072
    etc...

    Since you have already set GPRM1 on the way out of the menu (change it so you set GPRM1 to values 1-7, instead of 0-6), add the following code to your PRE commands of the menu (but in SECTION "C")

    GPRM1 *= 1024
    SetHL_BTN GPRM1

    Regards,
    George
    Quote Quote  
  7. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    George! That was fantastic! Thank you so much!
    Can you tell me why though my PRE had to be in C instead of A?

    BTW, I put up another post to which you probably know the answer: when building a playlist in DLP, how do I get it to go back to the menu? My playlist loops (it starts playing over again). End-link is currently set to (SELF).
    Quote Quote  
  8. Member GeorgeW's Avatar
    Join Date
    Feb 2005
    Location
    United States
    Search Comp PM
    Originally Posted by Alain2007
    George! That was fantastic! Thank you so much!
    Can you tell me why though my PRE had to be in C instead of A?
    The Sections in the PRE Commands will be executed in A/B/C order. If you look at the code in Section-B (this is part of the default DLP generated code -- also known as the "Abstraction Layer"), it has a command to set the highlight button. If you put your code in Section-A, the "SetHL_BTN" code in Section-B might overwrite your code. By putting your commands in Section-C, you are making sure your custom commands will not be overwritten.


    Originally Posted by Alain2007
    BTW, I put up another post to which you probably know the answer: when building a playlist in DLP, how do I get it to go back to the menu? My playlist loops (it starts playing over again). End-link is currently set to (SELF).
    The Playlist is looping -- look closely at what you said -- "END-LINK is currently set to (SELF)". Instead of SELF, are there any other options in that pulldown menu?

    Regards,
    George
    Quote Quote  
  9. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    Yeah, I checked. There's just the movies, the self, and something called splash, which I dont think represents the page calling the playlist...the splash is always the same page and in my case, its the top most menu. (at least from what i understand in the Connections window).

    I have just read about the Return to Last Menu object which will probably be very handy in my project since it is a bilingual DVD...however, I cant apply this to playlists. A bunch of red X appear over the menus and Return to Last Menu object. So I really have no idea how to get my play all button to go back to where it was called from. Do I need to use code?

    If so, my only hint of a solution is : Go onto the VM editor for the specific playlist. Add something like: JumpSS VTSM (vts 1, tt 1, menu 2) in the C section of the PRE? However, even if this were to work and send to menu 2, what i really need is for it to be dynamic so that if that playlist can be called from 2 different screens, it knows where to return. (like the Return to Last Menu object)

    Can you provide more assistance please?
    Quote Quote  
  10. Member GeorgeW's Avatar
    Join Date
    Feb 2005
    Location
    United States
    Search Comp PM
    Originally Posted by Alain2007
    I have just read about the Return to Last Menu object which will probably be very handy in my project since it is a bilingual DVD...however, I cant apply this to playlists. A bunch of red X appear over the menus and Return to Last Menu object. So I really have no idea how to get my play all button to go back to where it was called from. Do I need to use code?
    You have come across a situation where you cannot directly link certain objects (based on the DVD Specs). To link them, you need some sort of BRIDGE to allow you to make the connection. If you rt-click in the connection window (there's also an icon for it), you should find a tool that can help you BRIDGE the gap between such objects...

    Regards,
    George
    Quote Quote  
  11. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    Interesting...so I could basically link the ends of my playlists to this BRIDGE and then link this bridge to the Return to Last Menu object? Sounds simple! And looks like it worked!
    Quote Quote  
  12. Member
    Join Date
    Dec 2006
    Location
    Canada
    Search Comp PM
    Originally Posted by GeorgeW
    The MENU Buttons are set to multiples of 1024

    Button-1 = 1024
    Button-2 = 2048
    Button-3 = 3072
    etc...

    Since you have already set GPRM1 on the way out of the menu (change it so you set GPRM1 to values 1-7, instead of 0-6), add the following code to your PRE commands of the menu (but in SECTION "C")

    GPRM1 *= 1024
    SetHL_BTN GPRM1

    Regards,
    George
    Hi George,
    I was wondering if this is the same principle I would use for my thumb gallery...I want the thumb for the movie that just played to be the highlighted one, when the movie finishes playing and the gallery appears again?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!