Problem with layer fixed opening

Hello

I have a problem open layer sets. In my script, I get index of layers and then iterate through the layers.

Here's the script:

function getAllLayersByIndex(){
       function getNumberLayers(){
       var ref = new ActionReference();
       ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID("NmbL") )
       ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
       return executeActionGet(ref).getInteger(charIDToTypeID("NmbL"));
       };
       function hasBackground() {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr"), charIDToTypeID( "Bckg" ));
           ref.putEnumerated(charIDToTypeID( "Lyr " ),charIDToTypeID( "Ordn" ),charIDToTypeID( "Back" ))//bottom Layer/background
           var desc =  executeActionGet(ref);
           var res = desc.getBoolean(charIDToTypeID( "Bckg" ));
           return res   
        };
       function getLayerType(idx,prop) {       
           var ref = new ActionReference();
           ref.putIndex(charIDToTypeID( "Lyr " ), idx);
           var desc =  executeActionGet(ref);
           var type = desc.getEnumerationValue(prop);
           var res = typeIDToStringID(type);
           return res   
        };
       function getLayerVisibilityByIndex( idx ) {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
           ref.putIndex( charIDToTypeID( "Lyr " ), idx );
           return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));;
       };
       var cnt = getNumberLayers()+1;
       var res = new Array();
       if(hasBackground()){
    var i = 0;
          }else{
    var i = 1;
          };
       var prop =  stringIDToTypeID("layerSection");
       for(i;i<cnt;i++){
          var temp = getLayerType(i,prop);
          if(temp != "layerSectionEnds") res.push(i);
       };
       return res;
    };

       function getLayerVisibilityByIndex( idx ) {
           var ref = new ActionReference();
           ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
           ref.putIndex( charIDToTypeID( "Lyr " ), idx );
           return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
       };

function makeActiveByIndex( idx, visible ){
    var desc = new ActionDescriptor();
      var ref = new ActionReference();
      ref.putIndex(charIDToTypeID( "Lyr " ), idx)
      desc.putReference( charIDToTypeID( "null" ), ref );      
      desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
};

var groups = getAllLayersByIndex();

    for(var i = groups.length-1; i >= 0 ; i--) {
      makeActiveByIndex( groups[i], true );
      ....working with layers....

Me, my problem is in the makeActiveByIndex function, because it is not activate a file and does not open it.

script_forum.png

You can see on this picture. All of the active layer is 'Skupina 1' and she is defined layer "hlavicka". But "hlavicka" is not open. WHY?

Can you help me solve this problem?

Thanks Domaneni

Make an active layerSet located in a closed layerSet will not open the parent layerSet. It's true wheither you use the project manager or the object model of Photoshop. To open a narrow layerSet in a script, you must make one of the artLayers in the value active.

Tags: Photoshop

Similar Questions

  • Get the message "This Mac cannot connect to iCloud due to a problem with my Id, open Preferences to solve iCloud iCloud" after entering my password which is accepted and then after a minute or two messages is.

    Get the message "This Mac cannot connect to iCloud due to a problem with my Id, open Preferences to solve iCloud iCloud" after entering my password which is accepted and then after a minute or two messages is.

    I'm your pain ptapp!

    Through my research for an answer that solves this problem, I have found that not even Apple knows how to solve this problem of password to iCloud.

    All 4 of my devices constantly ask my password because of some problems with xyz account.

    Then I enter the password only to be told that iCloud cannot check my password.

    Then after several repetitions of this I get locked and have to go to the site apple id to change my password.

    I didn't spend $6 000 on these beautiful devices so I could spend countless hours dealing with support (with no positive result) and find themselves just beyond myself in frustration. I have a Mac Pro, 2 iPads, 2 iPhones and an iPod touch. All are behaving this way, no matter what it is I'm doing at the time.

    Apple needs to fix this problem, if they have any idea how to.

  • Bridge does not open? Initially the 8.1 Win &amp; problem had started. Have now earn 10 &amp; still a problem with not to open the bridge?

    Bridge does not open? Initially the 8.1 Win & problem had started. Have now earn 10 & still a problem with not to open the bridge?

    Hi Matthew,

    If you use Bridge CC, update to the latest version 6.2. Adobe Bridge CC 6.2 version now available! Adobe content corner

    1. Please, do a right-click on the bridge on the desktop icon and select "Run as Administrator".
    2. If this does not help, reset the Bridge preferences and then try it.

    Steps: -.

    Start Adobe Bridge, and immediately press Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS down) until the dialogue box reset settings appears.

    Select all three options - reset preferences, reset Standard Workspaces and all miniature Purge Cache - and then click OK.

    Reference: troubleshooting errors, freezes | Adobe Bridge | Windows, Mac OS

    Let us know if it works.

    Kind regards

    Assani

  • "Delayed write failed" message keeps appearing to external hard drive (WD passport) and problems with suggest fix kb908673 (register edit).

    I had problems with my WD usb hard drive, where a "delayed write failed" message keeps appearing when the transfer of files to or from it. Among the fixes suggested on the WD support site is a link to kb908673, and this seems to sum up my problem. This fix is included in sp3, I believe, however, the fix indicates that a manual registry editing needs to be done;

    "After you install this hotfix, the following registry subkey is automatically added and configured:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB\EnSoftRetry

    The registry key is configured with a DWORD value of 1. This value allows the Soft-Retry code path that is used in this hotfix.

    "If you install a later version of the patch (a patch that contains later versions of Usbport.sys and Usbehci.sys), including Windows XP SP3, this registry value not be automatically added and configured. The registry value must be manually added and configured as described above to activate the Soft-Retry code path that is provided in this hotfix. »

    I don't have this registry subkey and have no idea how to do to configure a key to have a DWORD value - I can create as a registry entry DWORD value in this key, but it must be given a name. Should I create a DWORD value called "EnSoftRetry" in the USB, or should I create a DWORD value in the EnSoftRetry key and, if so, what should it be called? Or am I completely misunderstanding something here?

    (1) manage devices

    (2) find each host EHCI USB controller

    3) click on USB EHCI host controller Details of the

    Highlight 4) Device Instance path

    (5) copy "Device Instance path«path information in the Notepad for quick and easy access»»

    (6) open Regedit

    7) click "HKEY_LOCAL_MACHINE."

    8) click on 'SYSTEM '.

    9) click on CurrentControlSet «»

    10) click on 'Enum '.

    11) click on "PCI".

    (12) click on ' * the folder that corresponds to the stage 4 information.

    (13) this is where you should be now: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\------\Device Parameters.

    (14) right click on 'device settings '.

    (15) select "new-> Key".

    16) enter the field of naming the new key 'EnHcSoftRetry '.

    (17) right-click on "EnHcSoftRetry"the ket has created "

    (18) select "new-> DWORD (32-bit value).

    19) enter the field of naming 'DWORD '.

    (20) right click 'DWORD '.

    (21) select 'change '.

    (22) entry in the field value '1' Base of Hex

    (23) close regedit complete process :)

  • problem with layer background

    This happened about 3 weeks ago.  I have scanned the internet and have not found any problem like this.  It may be something simple that I'm just missing.  The problem is when I open a pix or anything and click to crop or resize, I lose my background layer that has the lock on it.  For some reason any as soon as I get anything, it immediately becomes the first layer and my background layer has disappeared.  Yes, every time when I go to save something (unless, of course, I didn't have to crop or resize), I always flatten image first to get it as a jpg.  I need my coat because I work with layers a lot and it will become more difficult now.  Anyone know why this could happen or what do I do next?  Thanks in advance!

    PS... someone please answer because I posted this on other places and I have never answers.  I don't have an issue with redownloading photoshop, but I am only the monthly fee of photographer and cannot find where to download it again since I did that once already.

    I think that your problem is related to not have Delete the cropped Pixels checked in the toolbar options for the crop tool.

    Delete with cropped uncontrolled Pixels, photoshop will unlock the background layer, if it is the only layer in your document.

    (turn the background layer to a regular layer Layer)

  • Problem with the menu "open with."

    Hello

    I'm using windows vista and have a strange problem with the "Open with" menu

    When I click on a file and select 'Open with', the program I want is not shown on the list of programs. so I click on "Browse" and find the program I want on the program folder files, but the very fact that it does not appear on the list of programs in the "Open with" menu.

    The program works normally, I can open the program and click on the file-> open and choose the file I want, but it is easier and faster to double-click a file to open the program...

    Any help is appreciated!

    Thank you!

    Record the programs with the "Open with:" dialog box
    http://WindowsXP.MVPs.org/openwithadd.htm
    Ramesh Srinivasan, Microsoft MVP

  • Problem with the file opened in the application via InvokeRequest

    Hello

    my application opens the file and reads its binary content. I have a small problem to open a file from a navigation or an attachment.

    But first here's how my app works. I have a signal/slot-connection in my applicationUI constructor:

    ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app), m_invokeManager(new bb::system::InvokeManager(this)) {
    
      bool ok;
    
      // Since the variable is not used in the app, this is added to avoid a
      // compiler warning.
      Q_UNUSED(ok);
    
      ok = QObject::connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));
    
    }
    

    So if the user clicks on a file it can open in the following C++ function:

    void ApplicationUI::handleInvoke(const bb::system::InvokeRequest& request) {
    
        QString workingDir = QDir::currentPath();
    
    // Initiate the appropriate target based on the invoke.target-key
        if (request.target() == "com.myapp.card.previewer") {
    
            m_uri = request.uri().toString();
    
            QString FileToOpen = m_uri.replace(QString("file://"), QString(""));
    
            bb::cascades::Page* PageToOpen = ApplicationUI::doLoadPageDetails(FileToOpen);
    
            if (PageToOpen != NULL) {
                initPreviewerUI();
            } else {
                ShowToast("FEHLER! Seite kann nicht geladen werden");
            }
        }
    }
    

    The doLoadPageDetails () - function creates a page and filled with binary content of reading a file. If the file contains errors or is corrupted an exception is thrown.

    And here is my problem. When I opened a file corrupted first the screen becomes darker before opening the app. The I get error messages, exactly as I want. But the screen stays dark. I can't take another navigation element. Also, I can't use the back button. The only solution is to wipe the screen and then use the active frame to close the filebrowser and reopen it.

    That I can't use it with attachments to emails. When I open on and the screen is dark, I can't close the view for emails. So to see the mails again I have to restart the BB decive.

    I'm not fluent in English, but I hope you understand my problem. Is it possible to cancel the invokeRequest when the file is corrupted? Or what can I do here?

    Well, the solution was to use a Toast message but the dialog box. Because that prevents the application and I can't and shows just the message, with the button on this dialog box, I cannot tell the app to close.

  • A problem with importing Interface Open Payables

    Hello

    I am facing a problem with the import of accounts payable of the open Interface...

    My requirement is:
    1. need to download the PO, vendor, invoice #, Date of invoice in detail in table custom (via web ADi)
    2. in table storage custom in AP invoice tables interface.
    3. of the call (Payables open Interface Import) the table API Interface, which create the invoive (IN. matched)

    Now, if the user gave wrong data a few reasons... Payables open Interface Import rejected this entry... user has this checked and corrected later and trying to create the same correct invoice with the data... As there is a rejection there is a line on the header, line interface interface... Although if it passes the correct data in the second time it is cosidering that rejected row and does not concerned line...


    The one you suggest on this...

    Kind regards
    Bala

    When processing a file, you can check if another ap_invoice_interface record exists for the same invoice number and
    (1) delete the old record, then insert a new
    OR
    (2) update the old record rather than create a new

    Hope this helps,
    Sandeep Gandhi

  • Problems with layer visibility/PS CS6 Timeline

    Hello

    I've been animating with Photoshop CS6 for some time, but a new problem today and I don't know how to fix it. My current project has 112 executives and about 3 times as many layers. Everything was going well until I exported a GIF to work under test. After the fact, each image has been shortened by 0.01 seconds, and all the layers were "visible" in each image. Toggling the visibility of each layer does not allow me to see an individual layer but, and layers on that I need to remain invisible when the toggling the visibility of each layer button.

    I am able to get a new layer over an existing layer and those normally. I really have trouble understanding what is happening here. Help, please!

    Record Photoshop which layers are visible for each image.  When you change the visibility in the palette layers only change you its visibility in the frame (s) that is targeted in the frame animation palette. You must either select the image that you want to change the visibility of the layer in. Here is an animation that I have all the layer show in all frames.  I target all odd frames and turned it off of the top layer. Siena is the screenshot just before I turned off the visibility of the top layer. After that I turned off the visibility of the layer. I saved on a GIF.

    You can also make a picture at the same time.

    When the top layer is visivle in all frames it look like this

  • I have problems with Microsoft Fix It.

    I have problems when the hang up windows Internet, programs will not end/end as it should. It freezes up.etc. I installed Microsoft Fix It to my counter top, but whenever I try to use the resolution of performance problems & security I get the above error # 0 x 80040154 "an unexpected error has occurred, the Trouble Shooting Wizard cannot continue.  Most likely, I would get the same answer had tried other troubleshooting issues.  I have Microsoft Essentials for security and Windows XP Professional Version 2002 w/SP3 and Windows Internet Explorer 8. If any other information/details are required please contact me by e-mail (* address email is removed from the privacy * or your Microsoft Answers.)

    I have a lot of saved files w / diagrams, pictures etc, saved the internet... could it be my PC down? I am disabled and I use my PC so much for taking the time and stay in touch with the outside world. Help, please.

    Thank you for your kind assistance in advance.

    I thank very you much for your kind cooperation. I ran Malwarebytes(full scan), then MSE full scan. I used cleaner c, disc cleaning & fragmenteur. I always had problems. Performance has been a little better but still had problems major w / windows & Internet Explorer do not want to close the programs. I researced and downloaded Advanced System Care & performed a deep clean. He did wonders on my p.c. performance and other problems. It's the free version for which I am very grateful. Each day I pull up of Advanced System Care & he told me if I need quick care or the deep treatment. When you are finished, it provides found problems and fixed.

    I'm so glad that my friend shared about this cleaning/performance tool.

    Maybe this will help someone else.

  • Problems with the installation/opening After Effects 7.0 Pro

    Good morning/evening. Can someone help me get my copy of After Effects (7.0 Pro) to run? When I try to run the program, in a first step, the screen goes black, causing me to have to use the Task Manager to close. When I do that, I get the error message that:

    "After that the effects cannot continue: Sorry, After Effects broke down." See /http:www.adobe.com/support/products/aftereffects.html for known issues. If you can't always solve the problem, contact Technical Support of Adobe (2).

    (0: 42) »

    On the second attempt, I am asked to enter my serial number (my name and my organization is already automatically registered) but when I hit ENTER, told me then:

    "After effects error: your serial number is not valid."

    (0 :: 3) »

    I tried to enter my serial number with and without a hyphen after each number 4 (ie: XXXXXXXX-XXXX-XXXX-XXXX etc.), and I tried the uninstall and repair the program, but to no avail (I am invited to insert the disc by repairing, even if the disc is already in the drive and the seconds after the start of uninstall AE, I get the prompt "the wizard was interrupted before After Effects 7.0 could be installed completely (even if I try to UNINSTALL).") Your system has not changed. To complete installation at another time, please run Setup again. "Since my product does not give me the opportunity to talk to someone on the phone, I have to post on the forums. If anyone has experienced the same problem and knows how to fix it, please help!

    FYI: I have a HP Pavilion 2000, Windows 8. If the additional pc specs are needed, let me know.

    If it's cs2, error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3

  • Problem with the download &amp; opening the App

    Well I made this account just today and have tried to download the trial version of Photoshop CC and creative cloud, both have downloaded without any problems, but when I go to open Photoshop CC, it comes up with a message saying: "You have 00 days left in your trial", why is this? (Im on a Macbook, incidentally). If someone could help, that would be grateful! Thank you.

    Hi Marcor79278333,

    Same issue was addressed in the below mentioned son, Veuileez refer to them:

    Re: Completed trial period?

    Re: My trial has expired, but I didn't try it

  • Problems with a fixed layout TOC

    When I export a layout fixed epub from a file of book with the names of files chosen as type of OCD, I get the entries of table of contents for each page instead of chapter. Need help solving this.

    The problem you are experiencing here is the chapter names based on the names of the xhtml files (for example chapter-4-2 and not Chapter-4) and not the chapters. Am I correct here?

    This problem is known to us, and we try to fix it in the next update.

    Kind regards

    POOJA

  • Problem with layer in PSE 9 masks

    Yesterday my layer in PSE9 masks stopped working for midway through an editing session. I can always create a layer mask and reveal all or hide them all (it displays in the layers Panel on the full editing screen), but I can't change the areas of paint mask to hide or reveal the parts of the mask.  No clue as to why it happened all of a sudden and how to fix it?  Could I have accidentally "toggled a switch" somewhere?  I hope not to have to reload the program from scratch, so suggestions as to a fix would be appreciated.

    AHA!  The Brush tool did not work, but as I was dinking with it, I realized that it was not defined in "Normal" mode.  When I changed the brush returned to 'Normal' it works great!  * sigh * sometimes I'm terribly slow!  Laughing out loud

    Thanks for your help, hatstead!  If you didn't have me focused on the Brush tool, off the coast of the layer itself, I would have been banging my head against the wall for three days!

  • Problem with window new opening

    Hello

    I have a problem in my application when opening new window by clicking on the button (window.open ('http://...')). After the new window opens, "parent" window becomes dead - all session variables are lost, and as a result, he throws the user to the login screen (default page).

    I noticed that the URL in both windows have the same CFIDs and different JSession ID.

    Does anyone know how to handle this problem, another words how to make new window open with CCFC new?

    I don't know if it is for this reason, but cannot imagine anything else.

    Thank you in advance,

    LKhodab.

    According to the standard HTTP protocol, all applications are completely stateless and have absolutely no connection to any other reqeust coming before or after.

    To enable session state management, ColdFusion uses cookies to know when a new application needs to share data with an application that preceded it.  These cookies can be either a pair called "CFID" and "CFTOKEN" or a named 'JSESSIONID '.

    When you use JavaScript to create a child window in a browser, ColdFusion doesn't know anything about.  All he knows is that he gets another request.  If this request does NOT contain valid cookies identifies as belonging to an existing session, ColdFusion will create a new session with completely new data.

    If you see different of JSESSIONID values when you open this child window, it's probably what's happening.

Maybe you are looking for

  • 1500 HP: HP network check Helper - what happens if I do not use Internet Explorer

    This add-on it's an update of Internet Explorer for the detection of problems of internet connection, the tools to resolve these. Preferring as I do not use Internet Explorer, Chrome and Firefox, can I guess that I don't need to bother with this?

  • Size of 4 TB drive ReadyNAS Duo V2 Windows7

    I ReadyNAS Duo V2 equipped of two red disks WD 2 TB. Running on network with computers mainly to Win7. Works perfectly. I want to bring to disks of 2 x 4 TB, which are on the approved list. Question - NAS continued to work fully with these or will be

  • Can I limit the bandwidth of comments for the R7000 Netgear network?

    Hello dear community, is there a way to limit bandwidth (not for games) for the network of comments? Or you can limit the bandwidth with this router for specific mac addresses? Is it possible to display consumption of direct download (real time) for

  • Processor gets 100 if I open any program, constant at 80-90% use always.

    Ulitmate VISTA 32, dual core 2.6.4 GB of ram, 100 GB Processor gets 100 if I open any program, constant at 80-90% use always. 2twice formatting, re-installed, reinstalled all the drivers and windows update. no sharing, no network or usb drive connect

  • Uninstall Windows 7 laptop (2 OS on the laptop)

    Hello! My laptop is running 2 OS at the same time (he wonder at startup every time that I want to continue). It has Windows Pro 8.1 and Windows 7. I use only Windows Pro 8.1 at present and I would like to uninstall Windows 7 but I don't know how. Can