Illustrator CC 2014 - Script to show and hide sublayers of name before exporting

Hello

I'm looking for a way hide and sublayers by name in Illustrator CC 2014 so that I can export each image as an action. I currently have an action for export, but I am unable to display and hide sublayers of name before as I have the export unless I do it manually.

show and hide sublayers.png

Step #1: Sublayer "gray 1', the visible value.

Step #2: Export image.

Step #3: Primer 'Grey 1' set to hidden.

Step #4: Primer 'Gery 2' the visible value.

Step #5: Export image.

Step #6: sublayer 'Gray 2' set to hidden.

Etc...

Can I use a script or is there another way I can do this automatically without having to manually select each sublayer, and then export?

its not easy at first, but once you get the hang of it, it is not difficult

in a Word

-create a variable of visibility for each object that must be changed, or get hidden at some point, 1 grey, grey 2, etc.

-Gray cover 2, 3 grey, grey 4

-make a set of data

-Hide grey 1, gray unhide 2

-make a set of data

-Hide gray 2, gray unhide 3

-make a set of data

-Hide 3 gray, unhide Grey4

-make a set of data

then navigate with the arrows to view each set

Tags: Illustrator

Similar Questions

  • I created show and hide features in InDesign I want to export to interactive PDF format. These functions work when seen in Acrobat on the desktop, but not on iPad/Tablet - why?

    I created show and hide features in InDesign I want to export to interactive PDF format. These functions work when seen in Acrobat on the desktop, but not on iPad/Tablet - why?

    Why? Most likely because the PDF Viewer on the Tablet is too stupid to deal with show/hide functionality.

    You could try PDF Expert of Readdle on qpdf Notes Pro on Android and iOS devices.

    Depending on how the show/hide was created during the export of InDesign, it can work in viewers. Otherwise, you will need to open PDF files in Acrobat and edit features show/hide something more digests of PDF device viewers.

    BTW, you will encounter the same issues with the PDF display components in web browsers.

    I hope this can help.

  • Show and hide the scroll bar

    Hello!

    How could I show and hide the scroll bar attached to a dynamic text field depending on the size of the text?
    I tried different solutions based on bottomScroll and maxcroll, but nothing works...

    Thank you very much in advance for your help.

    Best regards
    Gerry

    If you use a text field, you can do a simple test:

    If (textInstance.textHeight > textInstance._height) {}
    show the ScrollBar
    }

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • Show and hide content on stage with the action of the button

    Hello...

    I created a button to show and hide certain content on stage. The button works fine, but there is a problem... when I click on the button to display the content and I move to another section of the timeline, hides the content again, and I just want that it to hide when the button is clicked again :-(

    Here is my code:

    Quote:
    Posted by: kglad
    and your a real button or movieclip button? If it's a button movieclip instead of btAcess use _root.btAcess and see if that solves your problem.

    Forget it! you were right, and it's really simple after all...
    just need to add _root variable btAcess: s

    Thanks once again kglad for the patience and most importantly, help ;-)

  • Show and hide multiple items using wildcards in advanced Actions?

    Is there a way to show or hide multiple items at once by using a wildcard character in advanced Actions?  Ex: Hide all the boxes to click in the presentation that begin with click_ *.

    I'm trying to find a good way to use the same CBT to show me Mode (demo video with audio and no interaction) and the practice Mode (interactive simulation with boxes to click and prompt text box for interactions).

    I saw a few business solutions have the ability to have 1 source file that publishes on multiple formats (demo, simulation, quick guide).  However, they are a little more than 800 $de Captivate.

    Micky

    If I want to create a combination, I capture in all modes search and then copy and paste what I want one of the files? An example, but it's on a Dutch version of my blog, watch movie (power of lightning, hope, that you will always be able to see SWF?):

    http://captivatenederlands.posthaven.com/classic-tutorials

    Lilybiri

    PS as for your original question: no wildcard in advanced actions. You can filter drop-down lists on "click_" and only objects will appear then (in CP6/7) but you will still need a single statement by click box unless you group boxes click on a slide (impossible to group objects sitting on different slides).

  • Copy of a slide with a 'model' for the buttons to show and hide across multiple slides

    Here's my problem... I'm going through many different products that each have a similar style click on each slide.  The user can choose from 5 different catergories, when you click on one of the 5 buttons it shows the appropriate text box and hides one of the other visible text that can be opened from clicking on any other category.  When all the 5 keys were pressed game re bar appears allowing the user to continue.  It works just like a champion on a slide.  Here's my problem, although I need to duplicate this slide about 200 times.  When I duplicate, the name of the element in the text boxes so any change so my actions advanced making hide / display is no longer working.  Do I really have to create a new tip action for each text box for each slide with a unique name for the element? (I know that I can't have the same text on several slides box item name... at least I don't think I can).  I can do this, but there must be a quicker way?  What Miss me?

    I am using Captivate 5.5

    Very brilliant way to beat the system, I am impressed.  A problem, however, the text box must have a gray background to make the text readable, and for some reason when the variable positions within the text are it is overlooking the sid on the left of the box by a character.  Everything else seems to fit but not that. See slide below and the "Drytime" box to the right illustrates my problem.

  • Show and hide some fields against a number

    I have a form for number of dependants and their insertion of names. A user can insert maximum 5 number of dependents, so total I have 6 fields, for the insertion of several dependends and 5 others to insert their names,

    I want to hide all five fields of dependents in the form, and if the user makes any number less then 6 then filleds should be visible depending on the number the user will be in put.

    I tried but I get no success, I used a dynamic insertion for if the user enters 2 or 3, but it does not work. I used two action individually for 2 and 3. but without success.

    Need advice on this.


    Thanks in advance

    Concerning

    Mazahir Abbas

    Hello

    You can show/hide elements based on the value entered in a number of ways.

    Here is an example: http://apex.oracle.com/pls/otn/f?p=12983:9

    Who uses dynamic Actions. That the user changes the value of 'Count', individual text fields are shown/hidden depending on the value selection. In this example, there are five dynamic Actions on the page - one for each of the possible values and related items.

    Each action has the following parameters:

    Event: change
    Selection type: item (s)
    Article (s): P9_COUNT (which is the selection list)
    Condition: greater than or equal to
    Value: * 1 * (for the first article of dynamic Action, then 2, 3, 4 and 5 for the other)

    Real Action: show
    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    Action of false: hide

    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    When a Count is selected, all dynamic Actions will trigger - each will control the display of the text elements. If the selection is 3, the first three dynamic Actions will show the first three text elements and the last two actions allows you to hide the text elements.

    Andy

  • Show and hide tabs

    I want to use my application with different users (with a different authorization) and
    I have to parent 12 navigation tabs.
    But depending on the user (permission) I want to show or hide the parent tabs.
    Is this possible in Apex?

    I also have a second question:
    I want to make changes in the CSS for the appearance of the tabs in my theme (topic 13). But how do you do that?
    I tried on different ways, but it does not work.

    1. I tried to use inline styles in my template on the page 'two level Tabs '.
    I put the style of style inline = "color: Green;" in the tag DIV with id = "t13PageTabs", in the TR tag but nothing works.

    2nd I tried to make a copy of the original CSS, and then make the changes in the CSS for the classes in the following tag:
    -a: link, a: visited
    -a: active,: hover
    -span. OnC
    -span. Creancesc a: link, span. Creancesc a: visited
    -span. Creancesc a: hover
    After the changes I load the CSS file (with a different name) through Shared
    Components-> Cascading Style Sheets and change the href attribute in the link to the CSS tag
    in the header of the page 'Two level Tabs' but who do not work also.

    My questions are so follow them... Can I change the style of the tab (I mean just the color of the text in the tab)?
    And how do you do that?

    Somebudy can help me...

    Hello

    Question 1: Go to Edit tab and use the conditional display settings.

    Question 2: Go to the page template that you use and modify attributes of the tab Standard.

    See you soon

    Ben

  • A Script to find and replace the layer names

    Is there scripts to find and replace the names of layers?

    There is an excellent script available for Photoshop that allows you not only to replace words in layer names, but also insert words as prefixes, Suffixes and sequential numbers.

    The version of the illustrator of this script allows only sequential numbering: it does not offer search and replace words.

    Ideally, it would be great if there were something that could find multiple and replaces in a go:

    (for example

    You have layers like this car, the dog, the bat

    You enter: because (Option1), dog (Option2), Bat (Option3)

    Your layers become then: option 1, option 2, Option3).

    )

    Big_SmiLe, which is a very good start! Step 1 of learning how to Script is indeed, by adjusting an existing simple script to make things more complicated. (And usually then "break something", which is also a necessary part of the process.)

    You are right your comment, it comes to repetitive things. For one or two different articles that wouldn't be a problem, but in the longer lists you are soon lost.

    As usual to work with lists of search - replace is to build a table:

    var layernames = [
    [ 'FHairBowlBoy *Hair', 'Hairboy1' ],
    [ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
    [ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
    ];
    

    The general idea is to loop through all the names, check if the current layer name is "layernames [i] [0]" (the left column) and if so, rename it "layernames [i] [1]" (the right column). If you know how to write a loop in Javascript, then you can implement this immediately.

    However...

    A more advanced method to do this didn't need even loop on all layernames - instead you can immediately 'get' the correct name by layer! It's magic! Almost!

    The trick is to use a Javascript object rather than a table. JavaScript objects are nothing special; "Layers" of Illustrator are an array of objects, and each object 'sex' has a 'name' property, which you can read and set the value. What I do here, is to create a new object, where the part 'name' is the name of the original layer and its value is the name of the new layer. All you need to check each layer is if there is a "object.originalLayerName" property and if so, assign its value to this layer name.

    It looks a bit like the table above, except that (1) you use {.} instead of [..] to create an object and (2) you add pairs "name: value" instead of 'value' only (in fact, the 'name' of a value in a table is simply her number).

    So here's what it looks like:

    // JavaScript Document
    var doc = app.activeDocument;
    // name indexed object
    var layernames = {
     'FHairBowlBoy *Hair':'Hairboy1',
     'FHairCurlyafroBoy *Hair':'Hairboy2',
     'FHairSpikyBoy *Hair':'Hairboy3'
    };
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++)
    {
     //Set up Variable to access layer name
     var currentLayer = app.activeDocument.layers[i];
     if (layernames[currentLayer.name])
     {
      currentLayer.name = layernames[currentLayer.name];
     }
    }
    

    Enjoy!

  • show and hide a text with a qml button

    Hi, I have a button and when onClicked I want to display a label and with a second click it hide again, what is the best way to do this in qml?

    Lable{
      id:lable
      text: "My Text"
      visible: false
    }
    
    Button{
      text: lable.visible? "Hide" : "Show"
      onClicked{
        lable.visible = !lable.visible
      }
    }
    

    something like this should work

  • Show and hide the symbols on the click event

    Hello

    I have 4 text overlays. Each of them can be clicked and opened individually. Any combination of them could be opened at any time. It can also be closed individually buttons within the same window.

    In the assets Panel, I have a set of buttons that sit on the text overlays. What I want to do is to start with the visible buttons. Once all 4 text overlays is open the buttons are hidden. Once all 4 text collections are closed the buttons must be visible again.

    I would be grateful for anyone's help.

    You can set your buttons to display off the coast in the interface user, then show(); in your case.

    Example:

    SYM.$('elementName'). Show();

    You can use an indicator of close all when the flag is true:

    Insert a variable in each symbol example

    A = 1;

    B = 1;

    C = 1;

    D = 1;

    then have a conditional in each event which will check the variable

    If (A == 1 & B == 1 & C == 1 & D == 1) {}

    code to display your buttons

    } else {}

    code to hide your buttons

    }

  • Show and hide the problem of groups (topics) of Param

    My plugin brought fairly complex has quite a few settings, I've grouped using topics to keep things neat. The user can choose which limits to start or stop using a checkbox for each. Turn on a checkbox displays the settings group; turn off, cover the group settings. I use the following code in a function called from PF_Cmd_USER_CHANGED_PARAM and PF_Cmd_UPDATE_PARAMS_UI:

    AEGP_StreamRefH wfm_streamH = NULL;

    A_Boolean hide_wfmB =! params [QPGA_SCOPE_OPTION_WFM]->u. bd. value ;     The value hide_wfmB to the inverse of the value of the checkbox

    AEGP_EffectRefH                    meH                                                  = NULL;

    AEGP_SuiteHandler suites (in_data->pica_basicP);

    ERR (suites. PFInterfaceSuite1 ()->AEGP_GetNewEffectForEffect(NULL, ->effect_ref, & meH in_data));

    Example - waveform monitor only, but in the code for real there is one of these for each of the groups of five range

    ERR (suites. StreamSuite2 ()->AEGP_GetNewEffectStreamByIndex(NULL, meH, QPGA_WFM_TOPIC_START, & wfm_streamH));

    etc...

    Visibility Toggle of the parameters

    ERR (suites. DynamicStreamSuite2 ()->AEGP_SetDynamicStreamFlag(wfm_streamH, AEGP_DynStreamFlag_HIDDEN, FALSE, hide_wfmB));

    etc...

    if (meH) {

    Err2 (suites. EffectSuite2 ()->AEGP_DisposeEffect(meH));

    }

    if (wfm_streamH) {

    Err2 (suites. StreamSuite2 ()->AEGP_DisposeStream(wfm_streamH));

    }

    etc...

    It works fine when the check box is selected, but the problem is if I save my instance effect as a preset of effects. When I apply the preset to a new layer, I get for example, all parameters in the hidden groups appear less their group themes, when they should be hidden. These two images show what controls should look like, and what they look like:

    Expected result:

    qpga_params_correct.jpg

    Actual result if the application via an effect preset:

    qpga_params_incorrect.jpg

    Settings between the red lines are those of the four other groups that should not be displayed.

    I hope this makes sense. My hunch is that I have to disable sur-ou * every * parameter within a group. This will require a lot of flow Ref handles well and seems a little inelegant/inefficient!

    One thing I do not use sequence data - I tried this because he was part of the sample project (master of work, I think), but it did not affect the result. I thought that the sequences were a red herring here anyway.

    Thanks in advance!

    Christian

    Unfortunately, you can't hide/show each param within a group, or such bugs happen. (for example, which appears in the timeline panel is touch-ups)

    However, as the coding of the problems come, is not a problem. only a nuisance.

    (and you're right, the sequences have nothing to do with this problem)

  • Show and hide a button

    Hi, I have a doubt. I created a page with a large image. I need to put a subtitle, but I want to show the subtitle just at the time when I click on a button. And when I click once again I want to hide the subtitle. How can I do this? I use an Indesign CS5.5.

    Thanks to you all

    Alysson

    Hi Alysson,

    What you build is best done with a slideshow or multi-state-object, often referred to as a MSO.

    Create an MSO with two States, one for the image without subtitle and one for the image with the subtitle.

    Your show/hide button is then set to display the status 'next' your MSO.  Whenever the user clicks the button, the DSO will switch from one State to the other.

    Good luck!

    Steven

  • Show and hide the text in a page of questions / answers

    I need to create a FAQ page in Flex3. The page initially lists all questions with a "Show" button after each question.

    A click of a button 'Show', the answer to this specific question is inserted and displayed below

    the question and the button becomes "hide the answer.

    A click on the button "Hide the answer," despairs the answer to this question, the questions (and answers if there is)

    below moves upward to support the space and the button becomes «See the answer»

    Suggestions or examples? DataGrid with masking of rows? Directly using state transitions?

    I would use visible and includeInLayout properties

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • One button - show and hide the function

    Hi I want to use it to be able to click the button once to show a subfield and click again to hide

    I hide the code to the click event and click to show works of stage, but the second click does nothing

    my code is:

    If (help1vidlist.presence = "hidden") {}

    help1vidlist. Presence = "visible";

    } else if (help1vidlist.presence = 'visible') {}

    help1vidlist. Presence = "hidden";

    }

    any ideas?

    Thank you

    I think that you should use the operator 'is' under the conditions, it is;

    If (help1vidlist.presence == 'hidden') {}

    help1vidlist. Presence = "visible";

    } Else if (help1vidlist.presence == 'visible') {}

    help1vidlist. Presence = "hidden";

    }

    Concerning

    Bruce

Maybe you are looking for