Find the index # a layer after the location by name.

Hi all

I understand the layer names are available in the form of objects. But is it possible to use this object name to find the position of the index in a table as well? In other words, I have several layers in a file. I want to find a particular layer, lock and edit the visibility of all layers above him and unlock and change the visibility of all layers below. I always will seek the same layer, but changes in number of total layer of employment. Any help would be appreciated!

You can get use of this excerpt from departure:

#target illustrator-20

function test() {}

var doc = app.activeDocument;

var myIndex;

for (var i = 0; i)

If (doc.layers [i] .name == "Bob") {}

myIndex = i;

}

};

for (var i = 0; i)

If (i<>

doc. Layers [i]. Visible = false;

} else if(i > myIndex) {}

doc. Layers [i]. Visible = true;

doc. Layers [i]. Locked = true;

}

};

}

test();

Tags: Illustrator

Similar Questions

  • find the location of course VI - dynamically

    Hi evryone,

    I intend to use a single VI in the main stage and the actions of the later stage. Part of this VI behaves differently depending on whether we are at the stage main or step after action. But the problem is finding the location... where are we? main stage? or after step?... How to find this dynamic? Any idea?

    Thanks in advance...

    Hi Anil,

    Why can not make us simpler and just add an entry to your VI supplement. Possibly a Boolean value by which you can pass a true in the case of the action step and a value of false in the case of the stage post phase. It would be much easier to implement that try to understand by programming where the call origin.

  • Degree of accuracy is to find the locations of friends?  If the location of a person is updated, the situation might be wrong or delay?

    Degree of accuracy is to find the locations of friends?  If the premises of a person is updated on my phone, could be wrong or delay of an hour or two?

    It is as accurate as the location information that becomes their phone. And which can vary wildly. GPS signals are subject to an intervention by buildings, trees, weather. The phone can get information about the location of a WiFi network that is inaccurate. Find My Friends is certainly not specific enough to be invoked in situations of life and death. Nor should it be used as "evidence" that children or spouses are lying to you.

  • Cannot find the location of the gps on the device

    in my application, I'm trying to find the location of the user.my code owrks in Simulator for the curve8300 and the 9000 "BOLD"

    but he does not get the cordinates on the device even though I update the gps manually using the options--> options--> gps.

    What to do

     package com.MyChamberApp;
    
        import javax.microedition.location.Criteria;
        import javax.microedition.location.Location;
        import javax.microedition.location.LocationListener;
        import javax.microedition.location.LocationProvider;
    
        public class GPS_Location {
         static double longi;
         static double lati;
    
         public GPS_Location() {
    
         }
    
         public void location()
         {
          new LocationTracker();
         }
    
         class LocationTracker
         {
          private LocationProvider provider;
          Criteria cr;
    
          public LocationTracker()
          {
           resetGPS();
          }
    
          public void resetGPS() {
    
          try {
          cr = new Criteria();
          cr.setPreferredPowerConsumption(Criteria.POWER_USAGE_HIGH);
          cr.setPreferredResponseTime(120000);
                    cr.setCostAllowed(true);
          provider = LocationProvider.getInstance(cr);
          provider.getLocation(120);
          if (provider != null)
           {
            provider.setLocationListener(new MyLocationListener(), 1,1,1);
           }
          } catch (Exception e) {}
    
          }
    
          public void run(){}
    
         private class MyLocationListener implements LocationListener
             {
           public void providerStateChanged(LocationProvider provider,int newState)
           {
            if (newState == LocationProvider.TEMPORARILY_UNAVAILABLE)
            {
              provider.reset();
              resetGPS();
            }
           if (newState == LocationProvider.OUT_OF_SERVICE)
           {
            provider.reset();
            resetGPS();
           }
         }
    
         public void locationUpdated(LocationProvider provider,Location location)
          {
           if (location != null && location.isValid()) {
            try {
          lati = location.getQualifiedCoordinates().getLatitude();
          longi = location.getQualifiedCoordinates().getLongitude();
             } catch (Exception e) {}
         }
          }
        }
       }
     }
    

    Although the code seems fine for me, check with this code...

    Criteria criteria = new Criteria();
    
    criteria.setHorizontalAccuracy(50);
                criteria.setVerticalAccuracy(50);
                criteria.setCostAllowed(true);
                criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_HIGH);
                _locationProvider = LocationProvider.getInstance(criteria);
                  Location location =_locationProvider.getLocation(-1);
                _longitude = location.getQualifiedCoordinates().getLongitude();
                _latitude = location.getQualifiedCoordinates().getLatitude();
                 _altitude = location.getQualifiedCoordinates().getAltitude();
                 _speed = location.getSpeed();
                if(_locationProvider!=null)
                 {
                  _locationProvider.setLocationListener(new LocationListenerImpl(), _interval, 1, 1);
    
                }
    
  • How to find the location of a file or folder in windows 7

    I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?

    Try this...

    Start button > in the search box, type the name of the gam, i.e. of Civilization 4 > (do NOT press enter) > top left corner, you see the name "Civilization 4 '?

    If so, right click on it > click Open File Location > the game exe file show be on the highlighted list > right click it > click on create a shortcut.

    Happens to you?

  • How to find the location of a (game) file or a folder in windows 7

    I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?
    I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?

    Program Files or Program Files (x 86) is where almost everything is installed - including games.

  • How to find the location of a cluster?

    If I have a Cluster123 cluster name. How to find the location of this cluster? for example, YellowFolderA/YellowFolderB/Cluster123

    Try something like this

    $clusterName = "MyCluster"
    
    $path = @()$cluster = Get-Cluster -Name $clusterName$parent = Get-View $cluster.ExtensionData.ResourcePoolwhile ($parent.parent){  $parent = Get-View $parent.parent  $path += $parent.Name}[array]::Reverse($path)[string]::Join('/',$path)
    
  • How to find the location of the server for fixing in Oracle Apps?

    We try to find the location of an attachment that is stored in FND_ATTACHED_DOCUMENTS.

    We need to know the complete file location.

    Help, please.

    In general, the files are stored in the database. You can find them in the FND_LOBS table.

    Kind regards
    Johan Louwers.

  • I couln can't find the location of the directory

    I create a directory, but I can't find the location of it I mean, I do it in the place, but I do not see the directory? I did something wtong?


    create or replace directory plsql_dir as 'C:\Users\Retail\Oracle\hello ';

    Created PLSQL_DIR directory.


    Grant read, write on directory plslq_dir for michael;

    It gives

    SQL error: ORA-22930:
    22930 00000 - "the directory does not exist.


    Thank you

    You have created a directory of Oracle named plsql_dir pointing to 'C:\Users\Retail\Oracle\hello '.
    You must manually create the physical directory. Oracle does not create it.

    Kind regards
    Sajeeva Lacotte.

  • Find the location of a particular line

    Hello

    Is is possible to find the location of a particular row of a table in a database?

    For example: I need to find in which tablespace or datafile is the particular row of a table.

    Kind regards

    007

    007 wrote:
    Hi 909592,

    How to find the IDENTIFIER records in a table?

    Kind regards

    007

    Each line/record has a rowid that are associated with.

    SQL> select rowid, DEPTNO, DNAME, LOC from dept;
    
    ROWID                  DEPTNO DNAME          LOC
    ------------------ ---------- -------------- -------------
    AAAR3qAAEAAAACHAAA         10 ACCOUNTING     NEW YORK
    AAAR3qAAEAAAACHAAB         20 RESEARCH       DALLAS
    AAAR3qAAEAAAACHAAC         30 SALES          CHICAGO
    AAAR3qAAEAAAACHAAD         40 OPERATIONS     BOSTON
    

    As above, you have rowid for each line in the dept table. You must get the rowid in listing files

  • How to find the location of the apostrophe in a string by using func instr

    I have a string ' 345634 ', ' 234' (single quotes 4 all are part of the chain) and I want to find the location of the 3rd single quote using the instr function, could quickly sum1 please help me.

    Concerning
    Rahul

    Published by: Rahul Kalra on August 26, 2010 08:58

    You must use a double apostrophe to denote an apostrophe in a literal string in SQL

    If ' "' is a single quote.

    Knowing that, it is what you need:

    SQL>  select instr('''345634'',''234''', '''', 3) pos_of_3rd_quote from dual;
    
    POS_OF_3RD_QUOTE
    ----------------
                   8
    
  • Find the client, domain name of the computers

    Hello

    Is there a way to find the customer domain name of the computers in the forms.

    I tried to use this, but got the domain of the user and not the field of systems.

    CLIENT_WIN_API_ENVIRONMENT. GET_ENVIRONMENT_STRING ('USERDOMAIN')

    Thanks for any help.
    Anand

    I guess that there is a registry key where you can find this information. Try searching for a forum related to windows, then use WEBUTIL to read the registry value.

  • How to find the same column name in different tables in the same schema

    Hello

    I find the 'ename' column name in different tables in the same schema.

    Thank you
    Nr

    Hello

    Try this query

    Select column_name, table_name from user_tab_columns where column_name = 'ENAME ';

    Award points and end the debate, if your question is answered or mark if she was...

    Kind regards

    Lacouture.

  • to find the real domain name

    Hello

    How to find the real field name in the table in the form of erp


    for example, there is a field EST_QTY
    When I check the history, he said that this field belongs to table XXNP_OPN_JOBLOG_EST_002

    When I check the table I can't find a column named EST_QTY


    kindly help

    Hello

    To be sure which is the column in the table that is linked to a form field, you need to open the form, make sure the block is source of table and the column bound to the field. In case you don't have a form generator, usually a good guess is to check if there is a column with the same name as the field in the table contained in the history of recording (what you did). If this fails, there may be a column with a name that is similar as ESTIMATED_QTY or EST_QUANTITY.

    But sometimes the screen field is not shot a column of the table/view (for example, if it is a calculation based on the other fields). In this case, you must open the form to know how it is filled.

    It will be useful.

  • Is it possible to find the location in the bookmarks of a bookmark?

    From time to time, it happens that I strongly suspect that I saved a bookmark, but I do not remember exactly where, and I maybe changed a category or subcategory description bookmark in the meantime.

    I usually remember something on the bookmark that allows me to find breast show all bookmarks, but it does not give me the option to rename or re-file the bookmark, category or subcategory.

    View all bookmarks, looks that the field called 'Location' (of a bookmark) should be called "URL" and that there should be another field called 'Location' which tells you where the bookmark is breast show all bookmarks.

    Is it already possible to find the current location of the current bookmark in view all bookmarks?

    If this isn't the case, I ask it is possible.

    The text that appears in "Troubleshooting information" seems not very relevant to my question.

    Without the use of an extension cord, you can click on that bookmark to open the link in a new tab (you can also do offline), and then click the star highlighted at the right end of the address bar to open the dialog box "edit this bookmark".

    See also these two extension that adds a parent column in the Manager of bookmarks (library)

Maybe you are looking for