InDesign button changes layer visibility?

Hi all,
I'm in InDesign CS4. I want to produce an 8-page PDF online publication that contains a tutorial about InDesign (what else?!)
Also, imagine a JavaScript Button object on the bottom of each page that, when clicked, shows a layer of graphics for Windows screenshots, and when clicked again, shows a layer of Mac OS X screenshots.
So the text stays the same, but the button would change between accompanying Mac or Windows screenshots. How cool would that be?!
I see in the button panel, that I can choose from things like close, exit, goto anchor, next page, previous page, URL, movie, sound, view zoom...
But can the button be made to hide or show a layer of graphics in the PDF (assuming an Acrobat version at least v6 or newer).
Does that have to be done in Acrobat Pro? Can it be done at all?
Mike Witherell in Maryland

Mike,
Layer visibility changes can only be done within Acrobat.
Show/Hide fields can be done within ID.
Yes, if you screw up a button in ID, you can change it in InDesign, but I warn you, the interface for buttons in Acrobat is much different than ID and even the most simple button action becomes very complicated in Acrobat.

Similar Messages

  • Button change layer

    Hi There,
    first time for me to use this forum and I'm new to flash.
    Wonder if somebody could help me with button AS3.
    I've seen the tutorials 'Flash Buttons with Action Script 3'
    here:
    http://www.layersmagazine.com/flash-buttons-with-action-script-3.html
    and this don't worked for me.
    Tried to make my own but PROBLEMS.
    First here what I want to learn:
    - have layer 1 with one button
    - new layer 'action1' with action for button on layer 1
    - have layer 2 with text
    - from start You only see layer 1 with the button
    - when click this button You see layer 2 with text and not
    see layer 1 and it's stop here
    this is my AS3 code:
    btn1.addEventListener(MouseEvent.CLICK, click1);
    function click1(evt:MouseEvent):void {
    gotoAndStop("5");
    When I 'Test movie' it's shows boths layers and don't stop.
    Please need help...

    Hi Stephen,
    What you are trying to accomplish seems pretty simple. I
    believe what is happening is that you are missing a stop command
    for the playhead to stop and show only the contents of your layer
    #1. Add this to your actions layer, at the frame you want it to
    stop right before your "btn1" code:
    stop();
    That will stop the playhead and wait for your "btn1" to be
    executed.
    hope this helps!
    Rafael.

  • Have a list of radio buttons control layer visibility

    Any help would be appreciated, I am very new to scripting for PDF actions in Acrobat XI Pro
    I have 4 different sets of radio buttons that a user has to answer yes or no to.  When certain sequences of radio buttons are selected it should set one of 4 text fields' visibility to on.  
    For example, if the sequence is
    No, Yes, Yes, No
    then I want only the 3rd text box made visible and the other ones to remain hidden. 
    There are 9 different combinations that need to turn on one of 4 fields at a time.  Is this possible?
    Thank you very much in advance.

    Thanks GKaiseril
    I have spent a little time trying to learn this and what I have so far is not working. 
    I have 4 Radio Button Groups set up named: "Group1", "Group2", etc
    I also have a Text box which is what I want to be visible or not called: "TextBox"
    Here is my script:
    if (Group1.rawValue == "1" and Group2.rawValue == "2" and Group3.rawValue == "3" and Group4.rawValue == "4") {
    TextBox.presence = "visible";
    else {
    TextBox.presence = "invisible";
    Thanks again!

  • Using hyperlink to toggle layer visibility?

    Okay, I've got a few threads going in other forums on this, and I'm getting a little frustrated with retyping it all, so I'm going to try to be brief... if you have any questions on what I'm trying to do, sorry for being vague, just ask and I'll try to clarify (I know, I hate posts that don't give enough info to work from).
    OKay... I work with surveillance systems, and for one customer, I'm taking existing PDFs they have of site floorplans, loading them into Ilustrator CS5, adding icons and text showing camera locations and fields-of-view, then exporting to PDF, loading that into Acrobat Pro X, and adding a hyperlink to each camera icon that when clicked, will open a window with a still capture from that camera, so they can see what the view is "supposed" to look like.
    This works fairly well, and the client is happy with it... there's just one annoyance: every click produces a dialog box warning about opening an external program, and in newer versions of Reader, there's no "Don't display this again" checkbox.  A way around this would be great, but I had a better idea:
    I'm already creating layers in Illustrator: one for the floor plan, a second for the camera icons, a third for the text, and a fourth blank one so I can "swap out" the underlying floor/camera info without losing the hyperlinks (anywhere from 16 to 30, depending on the site).
    I had the idea that what I could do, is add a separate layer for each camera's sample image, which would allow me to add the image directly to the document, and have it just appear over the floor plan, rather than loading in a separate app.  Then I could have the image layers start out invisible, and toggle the visibility by clicking the camera icon.
    So I found this article that describes changing layer visibility from a hyperlink: http://help.adobe.com/en_US/Acrobat/9.0/Professional/WS58a04a822e3e50102bd615109794195ff-7 c5b.w.html
    It... sort of works.  I can create a link that will show a hidden layer... but not re-hide it.  I created a separate link that would hide it... but not show it.  Not really suitable - I'd like to have the same link toggle the layer on/off (heck, it would pretty much have to, or you KNOW the end users will get confused). 
    And the whole process seems a little clunky, at least from the above instructions.  Is there a better way to do this in Acrobat X?  Maybe a way to do it all within Illustrator?  Hope I'm clear enough about what I'm trying to achieve.
    If all else fails, is there a way to get rid of the $&^@*#!!! external program warning popup??
    Thanks, all!

    Forget that help page example, it's only practicable if you're setting a very simple pattern of layers.
    Instead, you should look at the JavaScript commands to control the visibility of individual layers, referencing them by their stacking order or name.
    For example this snippet will turn on the layer called "camera1":
    var ocgArray = this.getOCGs();
    for (var i=0; i < ocgArray.length; i++) {
      if (ocgArray[i].name=="camera1") ocgArray[i].state = true;
    You can easily extend this idea by creating a document-level function in the PDF, and calling that function from your links. For example if all your camera layers are named "camera1","camera2", etc. and you have a doc-level function like this:
    function showCamLayer(theName) {
      var ocgArray = this.getOCGs();
      for (var i=0; i < ocgArray.length; i++) {
        if (ocgArray[i].name.substr(0,6) == "camera") ocgArray[i].state = false;
        if (ocgArray[i].name == theName) ocgArray[i].state = true;
    then you can set your links to "run a JavaScript" and enter a single-line command such as showCamLayer("camera4")

  • "change" button is not visible in check status ?

    HI,
    We are under upgrade of SRM 4.0 to SRM 5.0 . In SRM 4.0 "change" button
    is visible in check status even if shopping cart is under approval
    state.
    But in SRM 5.0 "change" button is not visible in check status if
    Shopping cart is under approval state.
    for this i have raised OSS message. SAP replied that "please increase the security level of the buyer from 1 (= no changes
    allowed) to at least 2 (=low)."
    please let me know where exactly i can change this settings?
    Thanks
    Venkatesh P

    Hi Venkatesh,
    Steps :
    1) Go to SU01 of the buyer
    2) Go to Personalization tab
    3) Double click on Personalization object key 'BBP_WFL_SECURITY'
    You will get a pop up for 'Authorization level for Authorization'
    4) Here change the securtiy level from 1(=no changes allowed) to at least 2(=low)
    <b>Reward points for helpful answers</b>.
    Regards,
    Andy

  • Interactive PDF file with layer visibility issue.

    I have created an interactive PDF file in InDesign CC and added buttons in Acrobat CC. The buttons reveal layers with the layer visibility action under properties. The problem is that Reader takes 3-4 seconds to show the layer in full screen mode and flickers in any other view.

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • Layer Visibility Javascript

    Hi,
    I am working on a model of a dovetailed drawer. It is a simple model, but it must be made to show different design options - to be able to switch them back and forth.
    I have tried to use Daniel Beardsley's "Build Your Own Car Prototype" as a template for my own presentation. All seemed to go fairly smoothly until it came time to swap the Layer Visibility code around to my own needs.
    I want the user to be able to choose between three different deisgn options and so I put each mesh on a separate layer. However, I do not get the effect I am seeking. The console returns:
    TypeError: context3D.LayerManager has no properties
    2:AcroForm:Button2:Annot5:MouseUp:Action1
    How can I set this up correctly?
    - David

    Thank you very much, Daniel, for your further input.
    I have changed the document as you suggested, however it did not work for me. Perhaps I omitted something vital.
    Looking over the layers.js carefully I see that at the top a number of methods are named in the Layer Object Constructor, and that at the bottom a number of functions are offered as options for the user of the script. It would seem to me that the functions use these methods to make changes in the layers of the 3D object via its source code.
    Considering the above, it seems best to me that I use the functions offered and then define the variable and its properties as you suggest. Editing Layers.js like this:
    // The following functions can be called by any PDF document
    // that includes this file as part of its 3D Annotation JavaScript.
    // the rest of the code in this file (above) is private and can only
    // be accessed via the layersManager.
    var layersManager = new LayersManagerObject(4);
    function addPartToLayer( partName, layerIndex )
    layersManager.addPartToLayer( partName, layerIndex );
    layersManager.addPartToLayer( "Bottom", 0 );
    layersManager.addPartToLayer( "Straight01", 1 );
    layersManager.addPartToLayer( "DeepU02", 2 );
    layersManager.addPartToLayer( "Crescent03", 3 );
    function displayLayer( layerIndex )
    layersManager.displayLayer( layerIndex );
    layersManager.displayLayer( 0 );
    layersManager.displayLayer( 1 );
    layersManager.displayLayer( 2 );
    layersManager.displayLayer( 3 );
    Then set up the button to "displayLayer":
    var context3D = getAnnots3D(0)[0].context3D;
    context3D.layersManager.displayLayer( 1 );
    Unfortunately this does not seem to work either, but instead returns an error that "function is not a function" . . . :(
    - David

  • Keeping layer visibility overrides in CS2

    Hi,
    I apologize if this has been answered before - did a search but couldn't find what I was looking for.
    When using CS4 (6.0.3), I have no problem setting my "object layer option overrides" on a pdf file inside Indesign and having them stick when the pdf is updated.
    The problem comes when I have to use Indesign CS2 on projects.  When setting the over rides everything looks fine but when I use illustrator to make some changes to the pdf and refresh the link in Indesign, all the layers are shown and the "keep layer visibility over rides" does not do what it is supposed to do.  I have it set to only show 2 of 3 layers and the smallest change to the pdf file and a subsequent update to the link will always reset all the layers to show.  Is there a fix for this?
    Thanks,
    Rob

    From what I can tell, Illustrator CS2 does not export usable layer info. So apparently they didn't test if layer overrides would work correctly.
    It is kind of interesting that an Illustrator CS3/4 file has usable layer info in InDesign CS2, but you're correct that the layer overrides seem broken by any update to the file...

  • Saving layer visibility as views does not work - CS5 for Windows

    I've read about it multiple places, even watched a video where it supposedly works. But when I toggle layer visibility and save as a new view, it doesn't seem to work.
    Here's the video: http://layersmagazine.com/illustrator-different-views.html
    Any ideas?

    Layer Visibility Variables – A short introduction
    1. Open a new document and name Layer 1 "Cyan"
    2. Add three main layers and name them "Magenta", "Yellow" and "Black"
    3. On each layer draw a shape and colour it according to the Layer's name.
    4. Save the file as "My_first_Variables.ai"
    5. Target Layer "Cyan" (click the circle at the right hand of the Layer's name)
    6. At the bottom of the Variables Palette click the Make Visibility Dynamic button
    Now you've created your first Layers Visibility Variable. Continue with
    7. Target Layer "Magenta" and click the Make Visibility Dynamic button in the Variables Palette
    8. Target Layer "Yellow" and click the Make Visibility Dynamic button in the Variables Palette
    9. Target Layer "Black" and click the Make Visibility Dynamic button in the Variables Palette
    Done. You have created four Layers Visibility Variables. The next step is to define the Data Sets:
    1. Layers Palette: Show Layer "Cyan" and hide all other layers
    2. Variables Palette: Click the Capture Data Set button (the camera icon)
    3. Layers Palette: Show Layer "Magenta" and hide all other layers. Now in the Variables Palette the first Data Set becomes italic indicating that you can create an new Data Set. So click the Capture Data Set button to define Data Set 2.
    4. Layers Palette: Show Layer "Yellow" and hide all other layers
    5. Variables Palette: Click the Capture Data Set button to create Data Set 3
    6. Show Layer "Black" and hide all other layers. Click the Capture Data Set button to create Data Set 4
    7. Show all layers and click the Capture Data Set button to create Data Set 5
    Done. You have created five Data Sets. Just play around by toggling them in the Variables Palette (Next/Previous Data Set button or via Popup menu/Flyout menu) and see one feature among other things: The Variables Palette as a remote control of the Layers Palette. If you like, rename the Data Sets according to the Layers names for instance.
    Now it's time to create some simple Save/Export actions in order to Batch save/export Layers as single files. For example:
    Export as PSD
    1. Open any file
    2. Actions Palette: Create new action and name it "Export Layers as PSD"
    3. File > Export as PSD. Choose any destination folder, the desired options in the Photoshop Options dialog and hit Enter
    4. Click the Stop Recording button in the Actions Palette and disable the Show dialog icon (on the left hand of the action's name)
    Save as PDF
    1. Open any file
    2. Actions Palette: Create new action and name it "Save Layers as PDF"
    3. File > Save as PDF. Choose any destination folder, the desired options in the PDF Options dialog and hit Enter
    4. Click the Stop Recording button in the Actions Palette and disable the Show dialog icon (on the left hand of the action's name)
    Now start the Batch command:
    1. Switch to the original "My_first_Variables.ai"
    2. Actions Palette Flyout menu: Batch
    3. In the Play Area choose the Export Layers as PSD action
    4. Choose Data Sets as the source
    5. In the Destination Area enable the Override Action Export Commands option and choose any destination folder
    6. Choose an option for the File name and hit Enter to start the Batch
    Done. All four Layers plus the fifth Data Set have been exported as single Photoshop files. Repeat the Batch with the Save Layers as PDF action (don't forget to enable the Override Action Save Commands) and, of course, create your own actions, experiment with other file formats, figure out some harmless bugs especially in conjunction with the PDF compatible AI format when placing in InDesign.

  • InDesign Buttons Fail to Launch

    I'm struggling with InDesign buttons.  I am attemping to hide an answer under one button, and reveal it by clicking on another following these steps.
    I created the No. 1 as the button to click and reveal the response to the right of it.
    I created a text box for the text to the right of the No. 1
    Created the larger text box half hidden by the photo I have pulled to the left, which will be revealed when the 1 is clicked
    Created the photo as a "cover" over the text box
    Clicked on the single line of text, created a button with the characteristics
    on release
    normal
    clicked the check box "hidden until triggered"
    Clicked on the large text box and created a button with the following characteristics
    on release
    normal
    clicked the check box "hidden until triggered"
    Clicked on the 1 and created a button with the following characteristics:
    on release
    show or hide
    single line of text
    normal
    on click
    animation
    created an animation to fly in from right
    on click
    on click
    show or hide
    large text box
    click
    Clicked on the photo and created a button with the following characteristics
    on release
    show or hide
    large text box
    normal
    on click
    animation
    created animation for photo to fade out
    click
    When I preview the animation, the large text box never appears. I had the same problem to begin with, with the single line of text, and the fix was to change from flying in from the right to fade in. 
    I spend hours every time I start one of these "animations," and sometimes I find the choices I made changed after I left the menu; other times, I find it will work if I select a different animation; sometimes, I wait until the next day and start it all over.  It's really frustrating.  I have yet to get the "swoosh" animation to work. Has anyone encountered these same problems? 
    I'm a very new user, but I have watched every YouTube and read every tutorial I can find on these buttons. Nothing seems to be helping.
    I appreciate any help you can give me!
    Thanks.

    After trying successfully to uninstall and reinstall, the Adobe still fail to launch with the following error message: "Adobe has stopped working"
    Microsoft Window 7 and adobe reader XI
    Any suggestion?

  • Can I change layer order in PDF?

    Acrobat 9 pro: I'm doing a complicated map with layers in PDF format. I found a merge command to merge layers, which is cool. But better option for me is to change layer order, and possibly create new folders within PDF. Is this possible with Acrobat 9 pro?

    You can't, but "sub level layers" don't exist in Acrobat. OCGs exist in a single stack, though their NAMES can be grouped in the sidebar panel to make it appear they're in multiple levels. InDesign can create groups like that, Illustrator cannot, and Acrobat can't create them via the UI - however the names in the sidebar are NOT required to match the layer stack in the file, either in order or structure. You can use JavaScript to build the OCGorder array, including any sub-levels you want, and store it in the file.
    See the Acrobat JavaScript documentation on the setOCGOrder() function for help and a simple example of populating the array. Groups are created by putting an array within an array, just like any other tree of data.

  • Navigation buttons are not visible and lost it´s functional

    I have an intercative document that i have exported from Indesign. On every page their should be an navigation buttons with functions like
    next , previous , last page etc. Everything works on a PC but on the Mac the buttons are only visible on the first two pages and on the 80 other
    pages they are not visible, but I get the hand with the index finger when i put the pen/mouse on the location where they should be but they have also
    lost their function? Can anyone help me here?

    What you're seeing may be related to a known bug with InDesign CS6: http://forums.adobe.com/message/4482056#4482056

  • Save layer visibility states into new PDF

    Hi there,
    I have a document that is a floorplan of a building. I have created color layers to highlight specific rooms (e.g. Office 1, Office 2, Women's/Men's room, Storage room, etc.). I would like to save the PDF (overwrite or as a new PDF) with certain layers turned on so that the next time it is opened (by me or a client), the highlighted rooms are still showing. I found a somewhat convoluted way of doing this in Acrobat using Bookmarks and tying a "Set layer visibility" Action to it, but I am not sure how to go about doing it in Reader. Or should I look into creating a button or JavaScript in Acrobat so that it can complete the same tasks in Reader?
    Thank you for your help,
    Serge

    You might try using View>New View. It will entail going through and setting each map as you would like by turning on and off the layers you want and then save that view with a distinctive name. Then you can use the saved views to act as Layer Comps.

  • Layer Visibility Overrides

    I'm having an issue with InDesign's Layer Visibility Options when importing a PSD file. I use the layer visibility option upon import of the PSD and shut off the layers I do not want showing. But then if I edit the PSD and add an additional layer, the file updates in InDesign and turns on every single layer again. Is there a way around this? It makes the layer options kind of useless to me.

    When I import the PSD into InDesign CS3, I make sure it says to preserve the layer overrides, but if I end up adding a new layer to the PSD, when it updates in InDesign the layer override goes haywire and shows all the layers.

  • Feature Request: "View States" (layer visibility state)

    Hi all,
    I've been using Illustrator now for many years.  A large majority of the graphics I create are used in Flash for many of the games I develop.  Some of the graphics are exported from Illustrator as vector art, some are output as raster.
    There is a game that we've been working on recently that demonstrated a large need for a feature I came up with known as "View States."
    Why this is important to me:
    When you have an Illustrator file that contains many graphical elements, no matter how they are arranged in Illustrator using multiple layers or not, it is very, VERY challenging to be able to remember which layers and/or graphical elements should be kept visible, and which shouldn't be kept visible when you are outputing graphics in various ways.
    Going back to the game that my co-worker and I were working on, we have an Illustrator file that has 4 layers at the root level, in those layers, many more graphical elements and sub-layers each containing many, MANY more elements and sub-layers.  The game we are working is designed such that the background of the game is raster art; however, other foreground elements are output as vector art.  Anytime a change needs to be made to the artwork, I have to remember which layers I should hide and which should be kept visible in order to output the necessary graphics in whatever format I need to.
    The first question you may ask is, "Why not simply create a layer structure that allows you to simply hide the foreground or background elements so that you can output exactly what you need?"  That is a very good approach at producing the artwork.  And I'm completely open to changing the way I work being that is the only way I've been able to grow as a digital artist. However, I feel that this feature has merit in providing a simpler way for designers to work if they are unwilling or don't care to change the way they work.  In addition, some of the graphics we developed are grouped in such a way that splitting them could make it more challenging to find pieces of art in a file that has many many layers.
    How this feature may work:
    Basically a new panel titled "View States" would be in the interface.  This panel would allow you to create "view state" instances.  In each instance you provide a name for it to make it easier for you to remember what it is for.
    Each view state, when selected, would hide or show the layers you've set to be visible or not visible for that particular view state, thereby making it easier for the designer to know which graphics need to be output for a particular element of their artwork.  If you want to change the visible properties of a layer for a particular view state, simply select the view state and then alter the visibility property of that layer and it will remember that information for that particular view state.
    There are many other options that could be added for this feature, but I just wanted to get the feature information out there to see what you guys think.

    Hello Sly,
    I did exactly thuch beast for freehand some years ago. It's called Layersets. Perhaps we can discuss this off list first.
    My Email is [email protected]
    regards
    Michael

Maybe you are looking for

  • Rfc call from html page

    i wrote html code for entering username and password. then i got output in html page as SAP LOGON SCREEN USER NAME PASSWORD            ENTER when the user press enter button both username and password has to check with data in ztable in sap. validati

  • Restarting a elapsed time function in a for loop

    Hello, I am having an issue while using an elasped time function inside of a while loop (I wire the Time has elapsed? boolean to the stop function of the while loop), that is consequently inside of a for loop.  The elapsed time function works correct

  • Dynamic Report Generation C# Win Appl

    Hi to all,              My task is i have a DataSet object with some records. I want to bind all columns at run time. Using C#.Net Windows application , C# 11 R2.             I already did this type of work in Web application but some of th property

  • Reg: emca & database control

    I have a Linux server installed with Oracle 10g on it. emctl start dbconsole starts db control and I can access it using web browser. After logon to db control on home page - General Section, I can see the instance, version name etc. correctly. But H

  • Updating backup copy of HD

    Hi there, I created a backup of my HD when I first bought my imac last year and i'm now looking to update this as I have a few modifications to my setup from then. My OS and applications such as Logic Pro, Quicktime, iTunes etc are now all newer vers