IDCS5: How to access selected layers in layer panel

It seems the way to access the selected layers in layer panel has been changed in CS5.
Here is a link to the code that worked with CS4, but it is not working on CS5.
http://forums.adobe.com/message/1304622#1304622
Is there some way to find out how it works in CS5?
Thanks.

Please check Panel Options > Thumbnail Size from the Layers Panel’s pop-up menu in the upper right corner.

Similar Messages

  • How to identify selected layers in layer panel of Photoshop?

    Hi everyone,
    I'm working on a Photoshop plug-in, and I want to identify selected layers in layer panel.
    As I tested so far, didn't came up with a solution..
    If anyone can provide me a solution it will be greatly appreciated,
    Thanks in advanced..
    Nuwan.

    Looping through controls is indeed a inefficient way of doing what you want!
    With such a great number of controls, you could assign an appropriate callbackData to each of them when loading the panel. Next you could create an array of control IDs with all the LEDs and operate in the switch callback to turn on and off the corresponding led. A small example will be more clear:
    At panel load:
    int leds[200];
    SetCtrlAttribute (panelHandle, PANEL_SWITCH1, ATTR_CALLBACK_DATA, (void *)1); leds[1] = PANEL_LED1;
    SetCtrlAttribute (panelHandle, PANEL_SWITCH2, ATTR_CALLBACK_DATA, (void *)2); leds[2] = PANEL_LED2;
    SetCtrlAttribute (panelHandle, PANEL_SWITCH192, ATTR_CALLBACK_DATA, (void *)192); leds[192] = PANEL_LED192;
    In the switch callback:
    int CVICALLBACK switchOnOff (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    int sts;
    if (event != EVENT_COMMIT) return 0;
    // Get the status of the switch
    GetCtrlVal (panel, control, &sts);
    // Set the led to the proper status
    SetCtrlVal (panel, leds[(int)callbackData], sts);
    return 0;
    For this solution to work, leds[] array must be global so that it is available to the control callback.
    An additional improvement could be to modify the panel loading so that swithces and leds are created programmatically. You could have a single switch/led pair set in the UIR editor and next have a loop that duplicate the controls, sets callbackData and loads the array of led ids.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to access Selection Attribute Filter Key on a TG through CRMD_MKTTG* ??

    Hello,
    We need to apply all the attributes filters on a TG (for instance city filter) for searching an address  that comply with the filters.
    To create a segment at CRMD_MKTSEG transaction for using it later in a campaign, it could be done by 3 ways:
    1. Create a simple profile
    2. Create a target group: create a profile and build the targe group
    3. Create a profile set: create a profile and build for profile set
    When creating first the profile, it is possible to apply attributes filters. This atributes filters are stored in BD tables of marketing. We are able to find the filters for the first and third case, but not for second case.
    I proceed to explain the first and third case:
    CRMD_MKTTG_TG_H: CRM Marketing: Target Group Header Data
         GUID: CRM Marketing: GUID of Target Group (this data I know beforehand)
         SET_H_GUID: CRM Marketing: GUID Profile Set
         SET_GUID: CRM Marketing: GUID Profile Set
         PROF_GUID: CRM Marketing: GUID of a Profile
    For the first case directly we do a select on CRMD_MKTTG_PF_S where  PF_GUID = CRMD_MKTTG_TG_H-PROF_GUID:
    CRMD_MKTTG_PF_S: CRM Marketing: Selection Criterion of a Profile
         GUID:CRM Marketing: GUID for a Target Group Selection Criterion
         PF_GUID: CRM Marketing: GUID of a Profile
    For the third case we do select on CRMD_MKTTG_PF_H where SET_GUID = CRMD_MKTTG_TG_H-SET_H_GUID and we retive GUID:
    CRMD_MKTTG_PF_H: CRM Marketing: Profile
    GUID: CRM Marketing: GUID of a Profile
    SET_GUID     :CRM Marketing: GUID Profile Set
    Then  we do select select on CRMD_MKTTG_PF_S where  PF_GUID = CRMD_MKTTG_PF_H-GUID.
    And we can obtain the filters through:
    .INCLUDE     CRMT_MKTTG_PF_S_RANGE:CRM Marketing: Selection Range
    SEL_SIGN: CRM Marketing: Component SIGN for Selection Criterion
    SEL_OPTION: CRM Marketing: Component "OPTION" for Selection Criterion
    SEL_LOW     : CRM Marketing: Component "LOW" for Selection Criterion
    SEL_HIGH     :CRM Marketing: Component "HIGH" for Selection Criterion
    But what about the second case that correspond to CRMD_MKTTG_TG_H-SET_GUID?
    Could somebody explain how to access the filters when the second case happen? ¿What relationship MKT tables is based on?
    I would appreciate any suggestion.
    Best regards,
    Rosa
    Edited by: Carlos de Cozar on Feb 15, 2008 12:13 PM
    Edited by: Rosa on Feb 20, 2008 9:42 AM

    Can you please let me know how I can find out the duplicate record.
    you need to split the records from flat file structure into your internal table ans use a delete ADJACENT duplicates comparing fields
    split flat_str into wa_f1 wa_f2 wa_f2 at tab_space.

  • How to access the visibility of layer comps in indesign through scripting? [JS][CS5.5]

    Hi,
    I'm pretty new to scripting in adobe, but I thought this should be a simple one (think again...):
    I wanted to go over an array of all the psd-images in a selection or on a page in indesign, and then try to set their layer comp to a specific one (like "Diffuse".
    In photoshop I could make an action that would do this for me, but it seems that there are no easy ways in Indesign to do this.
    There also seems no way to change the layer comp or layer visibility for multiple selection...
    If anyone knows if it is possible at this moment to use layer comps in scripting (and how) or some kind of action for Indesign, I'll try to tackle the rest of the problem myself (and be forever grateful).
    If it isn't possible, I how it will be in CS6.
    Thanks to anyone interested,
    Mattaias
    ps: currently trying to solve this in JavaScript for CS5.5.

    Thanks for the information so far, but I've been looking at the links you added and haven't found anything about the scripting of layer comps...
    Here is the adjusted sample of your code:
    function Main() {
        var mySelection = app.selection;
        for(var n=0;n<mySelection.length;n++){
            if(mySelection[n].graphics.length === 1 && mySelection[n].graphics[0].imageTypeName === "Photoshop"){
                //Do your stuff on the selected frame or on the individual placed PSD file:
                // Adjusted Sample code:
                mySelection[n].images[0].graphicLayerOptions.graphicLayers.itemByName("Heat").currentVisib ility = true;
                alert(mySelection[n].images[0].graphicLayerOptions.graphicLayers.itemByName("Heat").curre ntVisibility);
    but what I actually need is more like
    mySelection[n].images[0].graphicLayerOptions.graphicLayerComps.itemByName("Heat").currentVisibility = true;
    It seems a bit strange (or I am looking on the wrong places) but there is no way to access layer comps in Indesign.
    Do I have to change the file in PhotoShop and save to get the result I need? Looks a bit strange that there isn't a more logical way then...
    The reason I want to script this, is because when there are 100 PSD's on one page and they should al get the same Layer Comp... you have to do this manually for every image.
    I like to use this feature to build texture-atlasses and have a dynamic result, but at this moment it would take at least 10 seconds for every picture... for 3 pages, and that for 7 files (and even more in the future).
    If anybody has ever scripted something with LayerComps, please let me know. (and something like recording Actions in photoshop is equally usefull)
    Otherwise I guess the Adobe programmers just didn't want to share this feature yet in CS5.5.

  • In Illustrator CC 2014 on Windows 7, placed images disappeared in 3 layers but layer panel icons show the place images so what happened?

    If the images may still be there, how do I look for them. The 3 images should show up on the 3 squares that I have highlighted in red.
    http://imgur.com/57P3stF

    Try dragging them above the Background layer.

  • How to access the JTextfield on one panel from the button on the other pane

    Hi to all!
    I m having very simple problem about getText() and setText(). I am developing the user interface for an application. I got the JTextField on one panel and one button on other panel. When I try to do getText() and SetText() operation on the JTextField which is placed on a JPanel with the help of JButton click event Which is placed on other panel. The JTextField doesn't response. My program is not showing any compilation as well as runtime error. So how can i solve this problem?
    Note: Duke dollar for rigth answer.
    Thanks! in advance!

    I've looked at the other post and was wondering what happened to all of those It is working briliantly...
    In any event, I've taken the original code and clean it up my way as shown below:
    import java.awt.event.*;
    public class MainClass {
       public static void main(String[] args) {
          MajorFrame majorFrame = new MajorFrame();
          majorFrame.setSize(550,550);
          majorFrame.show();
          majorFrame.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent e) {
                System.exit(0);
       }  //method ends
    }  //class endss
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class MajorFrame extends JFrame implements ActionListener {
       Container contentPane = getContentPane();
       Panel1 panel1 = new Panel1();
       JButton buttonMajorFrame = new JButton("Button MajorFrame");
       public MajorFrame() {
          contentPane.setLayout(null);
          contentPane.setSize(550,550);
          panel1.setBounds(5,5,400,250);
          contentPane.add(panel1);
          buttonMajorFrame.setBounds(5,350,150,20);
          buttonMajorFrame.addActionListener(this);
          contentPane.add(buttonMajorFrame);
       } //constructor ends
       public void actionPerformed(ActionEvent ev) {
          if (ev.getSource() == buttonMajorFrame) panel1.panel11.textField11.setText("majorFrame working");
       } //methode ends
    } //class endss
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Panel1 extends JPanel {
       Panel11 panel11;
       Panel12 panel12;
       public Panel1() {
          panel11 = new Panel11();
          panel12 = new Panel12(panel11);
          setLayout(null);
          panel11.setBounds(5,5,200,50);
          add(panel11);
          panel12.setBounds(5,65,200,50);
          add(panel12);
       //end constructor
    }//end classs
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Panel11 extends JPanel implements ActionListener {
       public JTextField textField11;
       JButton button11;
       public Panel11() {
          setLayout(null);
          textField11 = new JTextField();
          button11 = new JButton("Button 11");
          textField11.setBounds(5,5,120,20);
          add(textField11);
          button11.setBounds(5,25,120,20);
          button11.addActionListener(this);
          add(button11);
       } //constructor ends
       public void actionPerformed(ActionEvent ev) {
          if (ev.getSource() == button11) textField11.setText("Text11 working");
       } //method ends
    } //class endss
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class Panel12 extends JPanel implements ActionListener {
       JButton button12 = new JButton("Button 12");
       public Panel11 panel11;
       public Panel12(Panel11 panel11) {
          this.panel11=panel11;
          setLayout(null);
          button12.setBounds(5,5,120,20);
          button12.addActionListener(this);
          add(button12);
       }//constructor ends
       public void actionPerformed(ActionEvent ev) {
          if (ev.getSource() == button12) panel11.textField11.setText("Text12 working");
       }//method ends
    }//class endssI think this is what you're looking for and hope it saves your rear end...hehehe!
    ;o)
    V.V.

  • Replace layer names in selected layers only

    I am using this script to find and replace words in layers. (The script only targets particualr words, rather than the whole layer name).
    I would like to make it so it targets selected layers only.
    I have found this script which loops through selected layers only, but I am not sure how to add the find and replace layer name functioality.
    Thanks for any help that can be offered.

    big_smile wrote:
    Looking through the guide, it doesn't seem "hasSelectedArtwork", is a built in function either. Are there any tutorials or guides that explain how to target selected layers?
    Wrong reference manual, see this one:
    http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/cs6/Illustrator -Scripting-Reference-JavaScript.pdf
    Page 91 -- CHAPTER 1: JavaScript Object Reference
    Layer
    Property
    hasSelectedArtwork
    Value type
    boolean
    What it is
    If true, an object in this layer has been selected; set to false to deselect all objects in the layer.
    So as I talked about here:
    W_J_T wrote:
    Correct. Yeah there is no direct way unfortunately (like many things via scripting), thats why I suggested using "hasSelectedArtwork", that would work if you select the layer target when selecting your desired layers to rename.
    and...
    W_J_T wrote:
    if(layerReferenceString.hasSelectedArtwork == true){
         // relative code
    That would offer a way to know if a layer is selected or not.
    As far as I know that is the only round about way of knowing if a layer is selected via scripting.

  • Can't select layers with transparency

    Hello all!
    Some things just happend and I have no idea why.
    1. I can no longer nudge grouped layers. Photoshop complains that it cannot nudge layers in a group. I'm pretty sure I have done this many times before, so I guess I'm doing something wrong here.
    2. When I try to move a layer selected in the layer panel (or selected via ctrl-alt-right click), a click on the layer selects the layer effect above instead.
    It seems like there is some kind of click through enabled. If I click on a transparent part of the layer, the layer below get selected instead.
    My first thought was that this had something to do with "Autoselect layer/group", but it's disabled.
    This drives me crazy, how can I go back to normal mode, so I can click anywhere in a layer, transparent or not, and move the items in it etc?
    (I'm using Photoshop CS6.)
    Thanks in advance!

    1) Is a Selection active?
    What is the exact meassage?
    2) Could you please post a screenshot with the pertinent Panels visible?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • How do I save a specific layer as an audio file

    I needed a second audio file and created a layer and placed my video file that has the audio I want in that layer.  I edited the audio in that layer and now I want to save the result as an audio file.. preferably an MP3 file. How do I select a specific layer and save just that layer as an audio file?

    I would think  with Photoshop you may be able to save it as a video mp4 file then find a Video splitter program to split out the audio.  Or use and Audio program in the first place rather the using a program like photoshop that can do some basic video editing.

  • Select multiple objects faster, on layer panel?

    Hi everyone. I've asked my designers friends, but nobody knews the answer - so I need to post here.
    Question : Is it possible to select a few objects by "sliding a mouse", on layer panel?
    For example, you can hold down the mouse, slide to lock multiple objects. It's fast and easy!
    But if I need to select, say, only red, blue, yellow stars... I need to click the ◎ icons to select each sublayer.
    This drives me nuts, especially when I have so many objects to be selected on layer panel.
    I use CS6 on Mac.
    Is there any secret shortcut key to select objects on layer panel by "sliding a mouse"?
    Thanks bunch!!

    Hi Monika,
    Thanks for response.
    Not in CS6!?  Sad to know.
    If there is a way to do it, ---magically--- please someone let me know....
    Thanks, have a good day!

  • How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

    How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

        DIVAB71,
    Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • How do I create layers in an adjustment layer and transfer those layers?

    How do I create layers in an adjustment layer and transfer  or duplicate those layers in another image ?
    I need to transfer the same colour readjustment from one image to several other images ... I have been told to do this in the adjustment layer platform how ever I cannot drag or copy those layers over to the other images I have open and in need of adjustment to the same layers ...
    Images shows my lay out and what i've done this far.
    Thank you

    You need to get out of single image view. Go to the editor preferences>general>Allow Floating Windows, then go to Window>Images>Float all in Window, then Tile or Cascade. Then you should be able to drag the layers from the layers panel for one image into the main image window (not the panel) for another image.

  • How to select a particular layer in AE?

    Hi,
         I want to select a particular layer in Timeline. Is it possible to select a layer if I have the AEGP_LayerH? I searched in AE_SDK_guide but did not find any function in LayerSuite.
    Any ideas?
    Thanks,
    Dheeraj.

    Thanks Shachar. I checked the collectionSuite but got confused as to how to add items to collection and when to delete the collection. I will try again.

  • How to access the Document Options dialog box to select display properties?

    How to access the Document Options dialog box to select display properties (e.g. smartcut ) for a selected document to
    be viewed in the Workspace.
    regards

    Preferences --> General --> Reset all warnings.
    Mylenium

Maybe you are looking for

  • New voice message tune

    How do you set the new voice message tune for the 8310?  I know how to set the SMS message tune which seems to be the same as the voice message tune.  Is this even possible on this phone to have 2 different tunes for the SMS and new voice message?

  • Why do I get this errorThe server responded with "502" to operation CalDAVAccountRefreshQueueableOperation.

    Why do I get this message in iCal The server responded with "502" to operation CalDAVAccountRefreshQueueableOperation. And then it disappears it is very annoying, also for the mail program it gets password rejected by server. I have checked all the s

  • Multiple MacMinis in loging window?

    On my login window, I now see OS X - 'my name' MacMini (3). Why the multiple MacMinis? Has someone cloned my identity? The number has grown from (2) to (3) in the last 24 hours. Will this continue? Not sure if this is a problem, or just another Apple

  • QT Pro crashes when I click Settings...

    This is driving me nuts: every time I click Video Settings... QT Pro crashes. I can't find another posting describing this problem. Any ideas here would be much appreciated. Also, I no longer see Sorenson 3 in any menus. Did Apple remove it?

  • Ipod Touch rubato!

    Ieri mi hanno rubato il mio adorato Ipod Touch, ho fatto subito denuncia in Questura ed appena sono tornata a casa ho provveduto a bloccarlo su Icloud e questa mattina ho cambiato la mail e la password associate al mio ID... ma c'è un ma.. ovvero: io