Rename layers with layer 1, layer 2 till and layer N

My Name is Sathya Murthy
I have psd files with many layers each with different names
I want to rename the layer which i have selected using right click with name Layer 1
Next layer which I right click with layer 2 and so on till layer N
and layers with are left out without renaming should be put in a new layer set or group in layers separately in the same file.
which i have opened
and layers should be arranged like this
till Layer N
Layer 4
Layer 3
Layer 2
Layer 1
Group or Layer Set
Background
I hope you understand what i am saying
I want scripting for that action as I have more files to rename layers so by using scripts i can work little bit faster
anyone knowing please help
Thanks In Advance
Sathya Murthy

I don’t think one can select Layers in the Layers Panel or on the Canvas while a Script is running.
One could select the Layers via a dialog, but that would take focus and need to present a list of the Layers.
Alternatively it might be possible to set up a work-around by selecting a Layer, invoking a Script (either by Keyboard Shortcut or from a Configurator Panel) that stores data (the activeLayer in this case), repeating that as often as needed and at the end of the selection process trigger another Script (or possibly the same with the shift-key pressed) that then processes that stored information.
But maybe someone else has more insightr or a better idea.

Similar Messages

  • [svn:fx-trunk] 9924: Empty design layers with id' s are now persisted and declared as top level properties.

    Revision: 9924
    Author:   [email protected]
    Date:     2009-09-02 09:11:03 -0700 (Wed, 02 Sep 2009)
    Log Message:
    Empty design layers with id's are now persisted and declared as top level properties.
    QE notes: None
    Doc notes:  None
    Bugs: SDK-22904
    Reviewer: Paul
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22904
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/analyzer/SyntaxAnalyzer.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/dom/DocumentNode.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • Issues with merging layers with layer styles

    Just downloaded CS6 Photoshop off the creative cloud and the merge layer command does not work. What is happening is there is one layer with a layer style then a shape layer and when I hit Cmd E it merges the layers but the layer style will not merge with it. I was chatting it up and everything they recommended did not work. It works on all my other co-workers computers and we are all on the cloud. I tried renaming pref. folder, settings folder, re-installing, holding down shft+option+cmd on start up. I also created a test account but that turned out to be a major inconvenience. Once logged into the account there is nothing there. The suggestions just started getting more ridiculous as chat proceeded. Nothing.
    Has anyone experienced this issue?
    Does anyone have a solution where I don't have to create a whole new admin account just to see if CS6 Photoshop works correctly?
    P.S.
    Adobe customer portal is about worthless.

    Get Rich or Die Tryin wrote:
    Just downloaded CS6 Photoshop off the creative cloud and the merge layer command does not work. What is happening is there is one layer with a layer style then a shape layer and when I hit Cmd E it merges the layers but the layer style will not merge with it. I was chatting it up and everything they recommended did not work. It works on all my other co-workers computers and we are all on the cloud. I tried renaming pref. folder, settings folder, re-installing, holding down shft+option+cmd on start up. I also created a test account but that turned out to be a major inconvenience. Once logged into the account there is nothing there. The suggestions just started getting more ridiculous as chat proceeded. Nothing.
    There are two merge layers type commands  one is merge down involves only two layers and another that is merge visible layers.  In my opinion there is a problem with the way merge down is implemented. When you use merge down if the bottom layer in the merge down has a layer style the merged layer also has this layer style attached.  This means that pixels from the layer merged into it will be effected by this layer style.  The result may well not look like the composite looked before the merge. The will also happen in CS5. Merge visibile layer works the correct way in my view as the merge progresses the top two layers are merge by applying any layer masks and layer styles first and merging the two layers the resulting layer has no layer masks and no layer style. This result is then merged with the next lower layer with its masks and style applied first. The result is a single layer without mask and style that looks like the original composite view.  If your having the problem with CMD|CTRL+E and the result has a layer style try turning  the layer style visibility off see if that helps.  If it helps some  backup to before the merge down  use merge visible or first rasterzise the bottom layer to be merged.

  • Flattening or merging layers with layer effects and maintaining them.

    How do you maintain multiple layer effects when merging or flattening the layers within a group or on their own ensuring they end up eventually to normal and 100 % opacity? (Using PSCC)
    Thank you.

    You want to flattern an image with multiple layers and layer effects?  It should just happen for you, but there some occassions where flatterning does not show the expected results.  When that happens, select the upper-most layer (so long as it is turned on) and add a copy merged layer to the top of the stack (Shift Alt Ctrl e).  Then flattern, and it should be fine.

  • Saving adjustment layers with layer mask

    Hello -
    I need to be able to save a curves adjustment layer WITH its layer mask.
    I have written a longish automatic applescript to process image files that are all identical in pixel dimension. Part of the script relies on Photoshop, where a number of actions take place. In one of the Photoshop actions, I need to load an adjustment layer with a precise layer mask. I realize that if a layer mask file is open I could write an action to load a selection from that file, but I very much want to avoid keeping a second file open, or forcing PS to open and close that file.
    Is there a simple way to "load" a layer mask into an adjustment layer?
    Thanks,
    - M

    Maybe you could do something like this...
    if(documents.length){
    CurveLayer();
    colourMask();
    function colourMask(){
    selectMask(true);
    var black = new SolidColor();
    black.rgb.hexValue = '000000';
    var Width = activeDocument.width.as('px');
    var Height = activeDocument.height.as ('px');
    var stripWidth = Width/12;
    var Left = 0;
    var Top = 0;
    var Right =stripWidth;
    var Bottom = Height/2;
    for (var a =0;a<12;a++){
        activeDocument.selection.select([[Left,Top],[Right,Top],[Right,Bottom],[Left,Bottom]], SelectionType.REPLACE, 0, false);
       if( a % 2) activeDocument.selection.fill(black);
        Left +=stripWidth;
        Right +=stripWidth;
    var Left = 0;
    var Top = Height/2;
    var Right =stripWidth;
    var Bottom = Height;
    for (var a =0;a<12;a++){
        activeDocument.selection.select([[Left,Top],[Right,Top],[Right,Bottom],[Left,Bottom]], SelectionType.REPLACE, 0, false);
       if(a % 2){}else{ activeDocument.selection.fill(black);}
        Left +=stripWidth;
        Right +=stripWidth;
    activeDocument.selection.deselect();
    selectMask(false);
    function CurveLayer() {
        var desc3 = new ActionDescriptor();
            var ref1 = new ActionReference();
            ref1.putClass( charIDToTypeID('AdjL') );
        desc3.putReference( charIDToTypeID('null'), ref1 );
            var desc4 = new ActionDescriptor();
                var desc5 = new ActionDescriptor();
                desc5.putEnumerated( stringIDToTypeID('presetKind'), stringIDToTypeID('presetKindType'), stringIDToTypeID('presetKindDefault') );
            desc4.putObject( charIDToTypeID('Type'), charIDToTypeID('Crvs'), desc5 );
        desc3.putObject( charIDToTypeID('Usng'), charIDToTypeID('AdjL'), desc4 );
        executeAction( charIDToTypeID('Mk  '), desc3, DialogModes.NO );
    function selectMask(BOOL) {
        var desc184 = new ActionDescriptor();
            var ref84 = new ActionReference();
            ref84.putEnumerated( charIDToTypeID('Chnl'), charIDToTypeID('Chnl'), charIDToTypeID('Msk ') );
        desc184.putReference( charIDToTypeID('null'), ref84 );
        desc184.putBoolean( charIDToTypeID('MkVs'), BOOL );
        executeAction( charIDToTypeID('slct'), desc184, DialogModes.NO );

  • Can't rename Layers in Flash CS4

    When I double click on a layer name the editable text field appears for a fraction of a second, then disappears.
    The only way around this is to right click and change the name in Properties... which isn't very convenient esp. since "Properties" is at the bottom of the list and the timeline is also at the bottom of the screen.
    At one point, this problem resolved itself. Not sure what I did to fix it. But recently I had to trash my preferences and now the problem is back.
    Can anyone help?

    Using CS4 on Visat Ultimate.
    I closed Behaviors and Actions in the Classic workspace and still couldn't rename layers.
    I switched to Essentials workspace and then could rename layers.
    Then switched back to Classic and could still rename layers.
    Haven't reopened Behaviors or Actions, though.
    Why doesn't Adobe fix this stuff?
    And add Type on a Path at the same time!
    G

  • Sequence Layers with Transition

    Because when I do a sequence of layers, with the transition "Cross Dissolve Front and Back Layers", the first layer is "0" in opacity and no have keyframes like others layers?
    System Windows 8.1.
    After Effects CC 2014.2.

    Could be some bug, but nothing stops you to do a little copy&paste of the keyframes...
    Mylenium

  • How do I automate merging multiple layers with same name?

    It was suggested I ask this question in this forum - any advise gratefully received!
    I have to combine over a 800 files into one photoshop file. Each file has with sixty layers. The 60 layers in each file are named identically: Layer 1, Layer 2, Layer 3 up to Layer 59, Layer 60. My intention is to create a final composite file with 60 merged layers (for an animation). That is, with all the Layer 1's merged, all the Layer 2's merged, all the Layer 3's merged and so on. What I need is a script which will merge all layers with the same layer name, ie all the Layer 1s, all the Layer 2s etc (ideally without having to merge each set of layers separately).
    I am using Photoshop CS6 and at present I am merging by using the find/name function, then highlighting all the layers selected and then using 'merge layers'.
    Any ideas?
    Best
    JR

    This might be close, it will prompt for a folder containing all the 800 files, it will use tif or psd files.
    Once you have selected the folder sit back and watch...
    #target photoshop
    app.bringToFront();
    main();
    function main(){
    selectedFolder = Folder.selectDialog( "Please select input folder");
    if(selectedFolder == null) return;
    var fileList = selectedFolder.getFiles(/\.(tif|psd)$/i);
    open(fileList[0]);
    checkBackGround();
    setLayersVisOn();
    for(var z = 1;z<fileList.length;z++){
        open(fileList[z]);
        checkBackGround();
        setLayersVisOn();
        dupLayers(app.documents[0].name);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    if(z % 9 == 0) mergeSameNamedLayers();
    mergeSameNamedLayers();
    function checkBackGround(){
    activeDocument.activeLayer = activeDocument.layers[activeDocument.layers.length-1];
    if(activeDocument.activeLayer.isBackgroundLayer){
        activeDocument.activeLayer.name=activeDocument.activeLayer.name;
    function twoOrMoreSelected(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var desc = executeActionGet(ref);
    if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) )  return true;
    return false;
    function mergeSameNamedLayers(){
    //Get a list of the layer names
    var layerNameList = getNamesPlusIDs();
    //create an array for unique layer names
    var uniqueName = new Array();
    for(var s in layerNameList){
        if(layerNameList[s][2] == "false") uniqueName.push( layerNameList[s][1].toString());
    //now we should have unique layer names
    uniqueName = UniqueSortedList( uniqueName ).sort();
    //select all layers with the same name, merge them and set blendmode
    var BlendMode = new String();
    for ( var w in uniqueName){
        deselectLayers();
        for(var z in layerNameList){
            if(uniqueName[w].toString() == layerNameList[z][1].toString()){
                //select these layers and get blendmode.
                BlendMode = layerNameList[z][3].toString();
                selectLayerById(Number(layerNameList[z][0]), true);
    if(twoOrMoreSelected()) activeDocument.activeLayer.merge();
            setBlendMode(BlendMode);
    function setBlendMode(blendMode) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var desc2 = new ActionDescriptor();
    desc2.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), stringIDToTypeID(blendMode) );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), desc2 );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    function deselectLayers() {
        var desc01 = new ActionDescriptor();
            var ref01 = new ActionReference();
            ref01.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc01.putReference( charIDToTypeID('null'), ref01 );
        executeAction( stringIDToTypeID('selectNoLayers'), desc01, DialogModes.NO );
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function selectLayerById(ID, add) {
        add = (add == undefined)  ? add = false : add;
    var ref = new ActionReference();
    ref.putIdentifier(charIDToTypeID('Lyr '), ID);
    var desc = new ActionDescriptor();
    desc.putReference(charIDToTypeID('null'), ref);
    if (add) {
      desc.putEnumerated(stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection'));
    desc.putBoolean(charIDToTypeID('MkVs'), false);
    executeAction(charIDToTypeID('slct'), desc, DialogModes.NO);
    function dupLayers(DocName) {
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    var ref2 = new ActionReference();
    ref2.putName( charIDToTypeID('Dcmn'), DocName);
    desc.putReference( charIDToTypeID('T   '), ref2 );
    desc.putInteger( charIDToTypeID('Vrsn'), 5 );
    executeAction( charIDToTypeID('Dplc'), desc, DialogModes.NO );
    function selectAllLayers() {
        var desc29 = new ActionDescriptor();
            var ref23 = new ActionReference();
            ref23.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc29.putReference( charIDToTypeID('null'), ref23 );
        executeAction( stringIDToTypeID('selectAllLayers'), desc29, DialogModes.NO );
    function setLayersVisOn(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ))
            if(layerName.match(/^<\/Layer group/) ) continue;
            if(!desc.getBoolean(stringIDToTypeID('visible'))){
                var list = new ActionList();
                list.putReference( ref );
                desc.putList( charIDToTypeID('null'), list );
                executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            var layerType = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'layerSection' )));
             desc.hasKey( stringIDToTypeID( 'smartObject' ) )  ?  SO = true :  SO=false;
             var blendmode = typeIDToStringID(desc.getEnumerationValue( stringIDToTypeID( 'mode' )));
    Names.push([[Id],[layerName],[SO],[blendmode]]);
    return Names;

  • Photoshop CC 2014 hangs for nearly 15 seconds when using Layer Group Layers or Layer Palette Group from Layers commands.

    Photoshop hangs for nearly 15 seconds when using Layer > Group Layers or Layer Palette > Group from Layers commands. NOT on creating new group and creating layers and drag-n-dropping layers into group manually in Layer Palette. Got a UI design file with nearly 800 layers and lot of groups. This doesn't occur in smaller files. Using OS X Mavericks, Photoshop CC 2014.2.2, Mid 2014 15-inch Retina Macbook Pro.
    I understand that the solution would be just to cut the file into smaller files and design each UI view in a separate file but that would be painful. And it does not seem to be a very hard task to just group layers.

    Does the document also have a lot of layer comps?
    And can you post that document or send me a copy of it so we can see exactly why it is hanging?

  • Photoshop crashes when rearranging layers in layer window.

    Photoshop crashes when rearranging layers in layer window.  I'm using Photoshop CS4 Extended on a MacBook Pro purchased 5 months ago. I have tried restarting the computer.  I am able to rearrange layers with the hot keys.

    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.
    Does turning off OpenGL in the Performance Preferences and restarting Photoshop have any bearing on the issue?

  • 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

  • Help with Layer Positioning and TimeLine

    Hello all, here is my situation:
    I am trying to do a simple Layer animation for my home
    page... 4 Layers startoff at the right of my webpage(table) and end
    up at the left handside, as an example.
    My problem is I have a main 1x1 table that is centered, and
    that works fine to center all the text and images that are within
    it, but the layers that I tried placing within it stay absolute to
    the screen and not relative to the table.... and if I try to
    specify relative position in the first place for any of the layers
    that Layer disapears from my Layer panel and I cannot timeline with
    it???!!!
    This Started out as a lame trial to avoid making a flash
    movie for this animation.. but right now I am more interested in
    knowing the possibilities and limitations of using Layers and
    Timelines in Dreamweaver.... Any help or comments are most welcome.
    Layth

    I have requested that the thread be removed, Andrew. That's
    the best we can
    do, I'm afraid. Thing is, it can only be removed from the
    webforums, and
    not from the local computers of those who have already
    downloaded the
    message. Also, if Google Groups synched already, then it's
    like being
    carved in stone....
    You can see if that's the case by searching here -
    http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamweaver
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > If you go here -
    http://www.great-web-sights.com/g_layerlaws.asp,
    and read
    > through the layer laws, you'll see that you have broken
    at least one by
    > putting your layers into a table. Being absolutely
    positioned, the layers
    > do not rely on the table for their location on the
    screen. There are ways
    > to do this (easily) if you understand the whole concept
    of CSS
    > positioning. You can try the following things -
    >
    > * After setting your timeline the way you want it,
    MANUALLY change the
    > position attribute of each layer from "absolute" to
    "relative". The
    > timeline will still work, but you have changed the
    entire paradigm for
    > positioning on the <div> tags by making that
    change. Having relatively
    > positioned elements withing a table seems to work pretty
    well.
    >
    > or
    >
    > * After setting your timeline the way you want it,
    MANUALLY move the code
    > for the layers OUT OF THE TABLE, and place it back on
    the page,
    > immediately above the </body> tag. Then follow
    these directions -
    >
    > Change this -
    >
    > </head>
    >
    > to this -
    >
    > <style type="text/css">
    > <!--
    > body { text-align:center; color:#CCC; }
    > #wrapper { text-align:left; width:720px; margin:0
    > auto;position:relative; }
    > -->
    > </style>
    > </head>
    >
    > change this -
    >
    > <body ...>
    >
    > to this -
    >
    > <body ...>
    > <div id="wrapper">
    >
    > and this -
    >
    > </body>
    >
    > to this -
    >
    > </div><!-- /wrapper -->
    > </body>
    >
    > and see if that helps.
    >
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "laythss" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> Hello all, here is my situation:
    >> I am trying to do a simple Layer animation for my
    home page... 4 Layers
    >> startoff at the right of my webpage(table) and end
    up at the left
    >> handside, as
    >> an example.
    >> My problem is I have a main 1x1 table that is
    centered, and that works
    >> fine to
    >> center all the text and images that are within it,
    but the layers that I
    >> tried
    >> placing within it stay absolute to the screen and
    not relative to the
    >> table....
    >> and if I try to specify relative position in the
    first place for any of
    >> the
    >> layers that Layer disapears from my Layer panel and
    I cannot timeline
    >> with
    >> it???!!!
    >> This Started out as a lame trial to avoid making a
    flash movie for this
    >> animation.. but right now I am more interested in
    knowing the
    >> possibilities and
    >> limitations of using Layers and Timelines in
    Dreamweaver.... Any help or
    >> comments are most welcome.
    >>
    >> Layth
    >>
    >
    >

  • 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?

  • Photoshop TIFFs with layer masks do not display correctly

    I am sure other people must have this problem, but I cannot find any related posts so here goes:
    I open an image using the "open in external editor" command (typically a RAW file converted to a TIFF), edit in Photoshop and save the file (as a TIFF, I do not use PSD format)
    If the PS edit contains any layer masks or alpha channels (masks in the channel pallet) it does not display correctly when it reappears in Aperture. Only the top most mask will display, assuming I have multiple layer masks in the PS edit.
    Not only will the TIFF only appear as the mask in Aperture, but Aperture will print or email the mask, not the PS edited file as it should appear.
    It seems that Aperture only recognizes the layer mask (or alpha channel mask) as the image, and all the other layers etc are disregarded.
    Is this a confirmed bug, or is there some setting I have not correctly configured or some other issue?
    I love Aperture, but this problem is nearly a deal-breaker for my workflow, and would be for any serious photoshop user, I would imagine!
    I cannot believe this is still a problem in version 1.5, which is the version I am using (thus my system is 10.4.8)

    David,
    I assume you mean in the edited PS TIFF file:
    In different cases I have either:
    A. A TIFF file with layer a layer mask
    B. A TIFF file with multiple layer masks
    C. A TIFF file with an alpha channel mask
    D. A TIFF file with multiple alpha channel masks
    E. A TIFF file with any combination of the above
    the outcome is the same, they all do not display correctly in Aperture. It does not seem to matter if the file was opened in PS from Aperture via the open with external editor command or if it was worked on outside Aperture entirely then imported. I do have maximize compatibility in PS checked (though I understand this is only for PSD files, though perhaps I am wrong here)
    any thoughts?

  • 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.

Maybe you are looking for