Tracking menus and buttons via scripting

I have a main menu page with a few submenus. I want to write a prescript to store a GPRM that tells me what submenu the user has chosen. So far I have...
the 2 buttons have values of 1024 and 2048 in the SPRM 8.
prescript for main menu-
mov GPRM 0, SPRM 8
div GPRM 0, 1024
Remote control Menu button script-
Jump Return to last button-menu1 if(GPRM 0=2)
Jump Return to last button-menu2 if(GPRM 0=0)
Scripts for returning to the highlighted button on the respective menu-
Jump Return to last button-menu1 if(GPRM 1=2)
Jump Return to last button-menu1 if(GPRM 1=2)
Jump Return to last button-menu1 if(GPRM 1=3)
Jump Return to last button-menu1 if(GPRM 1=4)
Prescript for the track (uses GPRM1 to return to the highlighted button)-
mov GPRM 1, SPRM 8
div GPRM1, 1024
If anybody knows what I'm doing wrong or if i'm overcomplicating things. Please let me know! Thanks

I usually avoid using pre-scripts in DVDSP because they can interfere with automatic button selection.
I would simply store the SRPM 8 values in your GPRM on the way to whatever track you are playing. I can't remember if switching VTSes will clear the value of SPRM8 - if not, you can just load SPRM 8 before jumping to the menu.
Use a stand-alone script with the jump commands specifying the buttons to highlight - be sure to include a simple jump command at the end just in case no valid value winds up in your GPRM.
SPRM8 can be stored independently of which menu you were on last, so you may also want to use a GPRM to track the menu.
So each time you jump to a menu, the target will acutally be a script that looks something like this:
1. Check "whichmenu" GPRM, if returning to the same menu last visited, skip over step 2 to button selection steps, starting with line 4.
1. Set "whichmenu" GPRM
3. Jump to menu (default button)
4. mov SPRM8 to GPRM for "whichbutton"
5. div "whichbutton"
6. jump to button 1 on menu if..
7. jump to button 2 if...
etc...
specifying a button on a menu acutally uses the pre-command available for that menu, and usually overrides any pre-script you assign in DVDSP. I don't know how this would act if the button selection is specified in a pre-script.
Hope this helps -
Max Average

Similar Messages

  • Are there any problems with motion menus and buttons in DVDSP 2 on OS 10.4?

    I have not used DVD Studio Pro 2 since upgrading to Tiger but it appears to no longer be showing moving motion on menus and buttons.
    Are there any problems that I should be aware of when using DVDSP2 on OS 10.4?
    I have not upgrade to a newer version only because I do not have any HD software to create DVDs.
    Thanks
    Paul

    New Discussions ReponsesThe new system for discussions asks that after you mark your question as Answered, you take the time to mark any posts that have aided you with the tag and he post that provided your answer with the
    tag. This not only gives points to the posters, but points anyone
    searching for answers to similar problems to the proper posts.
    If we use the forums properly they will work well...

  • Missing all menus and buttons from Folio Builder

    I had a problem with Folio Builder panel when change ID password. I re instal both plugin again( FP and FProdTool), but this did not help. After reading the forum about solving the problem >
    1) Quit InDesign and any other CS apps
    2) Use the Activity Monitor to quit the CS5ServiceManager or CS5.5Service Manager
    3) Next delete this file based on version:
    /Users/lnegi/Library/Application Support/Adobe/CS5ServiceManager/preference/csxs2.pref
    /Users/lnegi/Library/Application Support/Adobe/CS5.5ServiceManager/preference/csxs2.pref
    4) Then remove this item from the Keychain Access based on version:
    Adobe-CS-5-renga
    Adobe-CS-5.5-renga
    To remove from the keychain:
    Navigate to /Applications/Utilities and launch the Keychain Access.app
    If the lock icon in the upper left appears locked, click on it and enter your password to unlock it.
    Select the “login” item in the Keychains list in the top left.
    Select “Passwords” from the category list.
    Type “renga” in the search field in the top right.
    Select any matches and press the delete key.
    >>>>I followed the advice. But after that , Folio Builder panel has stopped working, missing all menus and buttons from FBpanel. Please help solve the problem!!!

    i'm disappoint ...after the second day, I can not work with my DPS.. afte trying this:
    1. Uninstall Folio Builder Panel and Folio producer Tools ( Seems you might have already followed this step). Use Spotlight to serach for Uninstall Folio builder Panel and Uninstall Folio producer Tools and then uninstall repectively.
    2. Uninstall Adobe Air.
    3. Restart your Machine.
    4. Reinstall Adobe Air from get.adobe.com/air
    5. Reinstall Folio Builder Panel and Folio Producer Tools.
    >>> Folio Builder panel again does not appear!!! The Panel yesterday behaved strangely, one moment disappeared, then appeared( but with а blank window)....what am i doing wrong!? ...When I first time instal DPS, it also had problem after a older versions of DPS, but the problem eventually decided. Now I instal the last versions plugins HEEEEELPPPP!!!!

  • Can i do Expression to keyframes and smooth via script?

    hi guys, who know AE scripts can translate expression to linear keyframes via script(now i use app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) ; command) but , for Comman work i must select every time property of layer(opacity, position, scale, etc) where i have expression.... but i need translate very many layers, i always click on property with expression and then do Convert Expression to Keyframes its to long.., can i do something like this
    for (var j= 0; j<selectedLayers.length; j++) 
                       var SelLaye= selectedLayers[j];                  
                       if (SelLayer.transform.opacity.expression!=null && (SelLayer.transform.opacity.expression!=null) && (SelLayer.transform.opacity.expression!=null)) //check if layer have expression
                             SelLayer.transform.position.select=true;  //and here i need set cursor to position, expression, etc, where i have expression and translate to linear kayframes(but i dont know how)
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) //do translation
                             SelLayer.transform.rotation.select=true;
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) 
                             SelLayer.transform.scale.select=true;
                             app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes"))
                             //and after this also need do a smoother or something like this for decreasing linear keys for max(because app.executeCommand(app.findMenuCommandId("Convert Expression to Keyframes")) create to many keyframes)
    sorry for bad English

    Sup,
    Earlier Dan Ebberts already wrote the answer on CreativeCow:
    http://forums.creativecow.net/thread/227/13039#13041
    Можно все выбранные значения добавить в массив и потом уже дергать из оттуда, ну либо вручную прописывать в скрипте. Кому как больше нравится.
    AE has "Smoother" panel, but as far as I know you can`t access it via scripting using app.executeCommand(app.findMenuCommandId("Smoother")) or something.
    But there is a script that makes same work , called Smart Baker. You can download it here:
    http://www.creatogether.com/ctg-smart-baker

  • Reassign assets without altering menus and buttons

    I created a DVD that contained too much data to fit on a 4.7 disc however I didn't notice this until after my menues were perfect and each button did exactly what I wanted it to do.
    Now I'm in the process of compressing my original movie so that it will fit on a 4.7 gB disc however I want to know if I will be able to easily import my new assets and get them assigned to the correct buttons and menus and such
    easy being...will it be a matter of simply resetting the targets to the new assets. OR will I be better off just starting a new project. I don't want to waist my time resetting all my targets if it isn't going to work. If anyone has had experience with this...I'd love to hear about it.

    Hi:
    Did you encode your audio to Dolby 2.0 AC3? That will give you extra space ! (probably you did it).
    You can just name your new encoded files with same name that the old ones and replace them in the same drive location (I assume the new encoded files will have exact same lenght than the originals). It's not a bad idea to keep a copy of the original files, but rename them and hide them to DVDSP. Sometimes DVDSP is very smart finding the original files . . . no matter where you copy them !
      Alberto

  • Getting text object content and position via script / extra?

    Hello everybody,
    we have several Freehand files on OS X (maps) where I need to
    get the text content and the coordinates of objects in a given
    layer. I could not find a possibility how to achieve this via
    Freehand's Applescript support. Am I missing something or is this
    impossible with the standard scripting support?
    I have found a website about an older Xtra (CARTO-INDEX) that
    seems to something along those lines but it was written in the
    Classic days of the Mac OS. Is there a possibility or maybe even
    some sample code showing how this can be done with an Xtra? Is it
    possible to call an Xtra function via AppleScript?
    Illustrator seems to be no alternative here because although
    it seems to provide better scripting support, I get conversion
    errors with my Freehand documents and the object parameters do not
    match.
    Thanks in advance for your advice.

    > we have several Freehand files on OS X (maps) where I
    need to get the text
    > content and the coordinates of objects in a given layer.
    I could not find a
    > possibility how to achieve this via Freehand's
    Applescript support. Am I
    > missing something or is this impossible with the
    standard scripting support?
    MaPublisher 5 for FreeHand might do what you wish to do.
    http://www.avenza.com/products.mapub50.html
    Boris Jerenec and Michael Slomski have written useful Xtras
    for FreeHand.
    You can find contact info for them here, under "Other
    Plug-ins/Xtras".
    http://www.freehandsource.com/_frames/_misc/plugins.html
    If you decide to work in Illustrator, a script called "Make
    Point Type"
    converts FH text to AI point type. There's also a script to
    "Make Area
    Type".
    http://kelsocartography.com/scripts/
    Judy Arndt

  • INCREASE ALL MENUS AND BUTTONS

    Hello, with my windows screen resolution all PS buttons and menus are very small and therefore barely readable.
    How can you increase those appropriately, please?

    If you don’t provide relevant information (version, OS, …) it may be difficult for anyone to help you. (edited)
    You may want to read this:
    Photoshop: Support scalable user interface UI for high resolution monitors

  • Update font for all the menus and buttons

    Hi,
    In my application, i want to update the fonts of all the buttons and menu items, when the user selects a new form, what i am trying it , at the start of application i am putting the default font as
    UIManager.put("Menu.font", Constant.bigFont);
    UIManager.put("MenuItem.font", Constant.dataFont);
    UIManager.put("Button.font", Constant.bigFont);
    and when the user changes the font, i update the UIManager in Action event and call
         SwingUtilities.updateComponentTreeUI(TestUI.this); , where TestUI is my frame, on which i add all the components,
    But some how it does not work, all the fonts are not modified for all the components which are added,
    How can i do it
    Ashish

    Hi,
    In my application, i want to update the fonts of all the buttons and menu items, when the user selects a new form, what i am trying it , at the start of application i am putting the default font as
    UIManager.put("Menu.font", Constant.bigFont);
    UIManager.put("MenuItem.font", Constant.dataFont);
    UIManager.put("Button.font", Constant.bigFont);
    and when the user changes the font, i update the UIManager in Action event and call
         SwingUtilities.updateComponentTreeUI(TestUI.this); , where TestUI is my frame, on which i add all the components,
    But some how it does not work, all the fonts are not modified for all the components which are added,
    How can i do it
    Ashish

  • No Library or Style items for menus and buttons A.En. CS4

    Hi All,
    I recently installed AMC CS4:PP CS4 Ver.4.0.0,PS CS4 extended Ver.11.0,
    AEn Ver.4.0.0.258,AE Ver.4.0.0,ASB CS4 Ver.2.0.The install seem to have
    went ok.But,when I launch Encor I see no Items in the library and style
    categories.I looked in the C:Program files\adobe\adobe encor.I see no
    Library Folder.I also checked the install/uninstall option in the
    control panel and the Adobe PP CS4 Functional content seems to have
    installed it shows 275.5 mb.System:Win XP Pro W/SP3,CPU Intel i7 2.67,
    Ram 3Gig ddr3,H.D.'s OS&Programs WD Raptor 300gig 10,000 rpm,A/V 2 WD750
    raid0,Export WD 750.I installed from disk.Hope I don't have to a complet
    reinstall.Need Help.
    Thanks,
    Barry

    Barry,
    Do not have CS4, but would guess that it is the same. The default installation of Encore will also install the Functional Content. One can uncheck (or maybe a radio-button) in the dialog screen to NOT install, if so desired.
    I'd try a Repair Install. You'll need to start up the installation, and when you get to the dialog box for chosing which programs to install, check Encore. It *should* then bring up the option to Uninstall, or do a Repair Install.
    Seems to be a bit of this going around. I wonder if Adobe made a change with the installation, and set "Do Not Install Functional Content" as the default?
    Good luck,
    Hunt

  • Beachball and long pauses in iDVD 6 menus and buttons

    Over the weekend I have made several DVDs sucessfully in iDVD 6.0.2. The application never actually crashed on me but when doing simple things like dragging the scroll bar to look at the various themes, clicking on the buttons for "media" etc or just getting a menu to change a setting I would often get the spinning beachball.
    When this happened it would be several minutes before iDVD would respond again. During this time I could work in other applications without a problem. When this happened Activity monitor showed iDVD as not responding and often thumbnail server and encoder server were also shown the same. The CPU usage for iDVD would be between 70 and 120% during the time and memory allocated kept increasing. It started at 4-500Mb and got to over 1GB.
    Having looked through these discussions I tried deleting the preferences, deleting the iDVD cache files and checked I didn't have any duplicate fonts (I didn't). None of these seemed to have any impact.
    Any ideas?

    I'm sure iDVD itself isn't repsonding as it can happen before I've even added any video to the project. Just scrolling through the themes for example. I have the preferences set to best quality rather than best performance (so background encoding is supposed to be off) as I was working with 90 mins or in one case 180 minutes of video (with a Dual Layer disk in that case).
    Rather than do nothing when it gave me the spinning beachball I just moved to other applciations until it came back again. When I finished the project and hit burn I generally left the computer to it for a few hours.

  • Track pad and button click not working

    I have a Macbook pro from 2008, the 2.5 GHz Intel Core 2 Duo processor, 4gigs ram. Recently my computer's track pad mouse stopped clicking and the tap to click function isnt working either. I can move the mouse with the trackpad and the scroll/zoom functions still work. Every once in a while the click will register, but the unclick will never happen, i.e. I will be highlighting everything on a page and wont be able to unhighlight unless i have the external mouse. When I scroll over the x - + of a window nothing shows up. I used a usb mouse and that worked fine, and shows the x - +. Anyone having this problem or have a solution for this problem?
    Thanks,
    -Matt

    Welcome to Apple Discussions!
    One thing to check is the battery--there have been instances of the battery swelling and becoming deformed and exerting pressure on the trackpad from below. If this is the case, stop using the battery immediately before it does permanent damage.
    Apple used to have a recall on some of these batteries, but unfortunately no more. If you have access to an Apple Store, take it in and show it to the genius bar. No guarantees, but sometimes if someone feels this should have not happened, you might be able to get a free replacement.
    Good luck!

  • Working with motion menus and buttons

    Is there a way to have the buttons only show up at a certain point during the motion menu? I don't want them in the beginning while a certain portion is playing - I want to force the viewer to watch that section.

    Buttons show up at the loop point in the menu - some examples of the fade ins
    http://dvdstepbystep.com/motion.php
    http://dvdstepbystep.com/useelements.php

  • Create OVA from windows and deploy via script

    Hi Guys
    I am looking for a way to deploy a windows VM from an ova package and have it contain things like the ip address et
    However now i would like to use the import-vapp procedure in powercli 5.8 and just populate the information then in the vm
    any ideas how to do this ? How can i create the ova in a way that the deployment will ask me for the ip address / vm name etc / username and password ?
    Or is there a way to do this after the ova is deployed ?
    Thanks  for any help

    Your OVA/OVF needs to be created where these values are configured through properties.
    You can then use the Get-OvfConfiguration to find these properties and populate the hash table that is returned.
    The hash table can be passed on the OvfConfiguration parameter on the Import-VApp cmdlet.

  • How to change the particular item size via script?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
    Thanks for looking into this...

    I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
    Thanks for looking into this..

  • Creating Photoshop buttons for motion menus and photoshop menus

    Hi I need to create buttons in photoshop for both a photoshop menu and a motion menu on DVD studio pro program
    Can someone tell me how to do it on both different menus?
    I really need some DETAILS on how to do it. Thanks for your time and responses ahead of time

    OK, here's what I recommend you try...
    Create the footage for your motion menu background. In that footage fade in the button shapes and text for the buttons exactly as you want them to appear. Hold the final position of these buttons for at least 30 seconds. save an image of the still portion to act as a guide in photoshop. Encode that footage to MPEG2 using Compressor and import it in to DVDSP.
    Take the still image in to photoshop and add a single layer to the file. On the new layer, create a shape of some kind (an underline, tick, circle, cross, box around, arrow, etc) next to the background button text. Make these shapes (for each piece of background text) black, and leave the rest of the layer white. Hide or delete the background layer and save the result as a .pict image. Import it in to DVDSP.
    Take the motion footage and drop it in to a menu. use the loop point in the property inspector to define where the 'still' portion of that footage begins. Now drag the .pict overlay image in to the same menu, but hold it a second until the contextual menu appears... set it as the overlay. Drag out button rectangles around the background text and position for the shapes in the overlay. Make sure the rectangles don't overlap, and set up the target for these buttons as well as the navigation between them.
    Use the property inspector to adjust the colours for the overlay - set it to be a simple overlay and in grayscale. What should happen is that when the menu plays the animated sequence starts first but as soon as the loop point is reached the overlay becomes active. The first button defined will be set as selected. You should now see the menu with the buttons faded in to position and the buttons should be clickable.
    When returning to this menu you may not want the viewer to sit through the animated sequence each time. Use a script (in DVDSP4) to specify that they return to the loop point only (the bit where the buttons are) or create a second menu that is identical to the loop point and send the viewer there instead.
    As you can see, there are several steps involved and I have made assumptions that you know something about menus and constructing buttons. It is all in the manual, but you will need to be familiar with Photoshop (or whatever image editor you prefer) to do this properly.
    You do not need to try to make four layer shapes and bring them in to the menu, and if you attempt to add anything else from the templates panel to this menu then the image quality will suffer as DVDSP builds the disc. If you do want to add other shapes and text to the menu then don't do the export to MPEG2... keep it as a simple QT .mov file.
    Please let us know how you get on after trying this method, and after reading up on those manuals

Maybe you are looking for