How can I close or open a layerset

Hi,
I want to close a layerSet which is contain one or more layers in it close or open. How can I do that? please look below image.
thank you.

I also don't think there is a easy way. The frist problem is there is no way for a script to know if the layerSet is open or closed by checking the layerSet properties( neither DOM or Action Manager ).
To open a closed layerSet you can make one of the layers in that set the activeLayer.
To close a layerSet is much more involved. You first would have to get all the layerSet properties. Then check to see if it has a channel or vector mask and if so get their setting and dupe them. Then un-group the layerSet( the layers will all be selected after ungrouping ) and group the selected layers( the new layerSet will be closed ). Then reset all of the layerSet properties and restore the masks if needled. With CS6 you also have to deal with possible layer effect.
I have seen a script on PS-Scripts.com that does some of that but I think it misses some setting like layer locking, layer color, channel restrictions. It also doesn't check for vector masks nor keep the channel mask settings.

Similar Messages

  • How can I close all open subVI front panels, without closing my top level VI front panel when all VIs are built into executables?

    I'm using the code shown in the sample VI discussed here: http://digital.ni.com/public.nsf/allkb/353A696A3F393D9B86256E8B007A2912
    to close all open VIs except my top level VI.  My top level VI is actually a separate executable and the sub-VIs are their own executables.  All reside under the same project.  It works very well if I'm running in LabView but will not work when I build them.  I added all the sub-VIs to the Always Include box in my top level VIs properties which did nothing.  I also tried adding them to the Startup VIs box.  This allowed me to close them all programmatically from the top level VI but it also open all the VIs at once (which was expected and not desired).  I think the problem is the executables are not able to see outside their own memory space so the top-level VI never finds any other open front panels to close.  Is this correct?  Is there another way to go about doing this? 
    Thanks!

    Where do I begin…..
    I’m using a “server” to control 4 “client” PCs.  My server opens references to 4 VIs on each client then executes them sequentially.  So on a normal day, the server will run everything itself and I will have no contact with the clients.  But on a several occasions, I’ve needed the ability to walk up to one of the clients and run just one of the 4 VIs. 
    We are updating from LabView 6.1 to 8.5 and we want to run executables rather than VIs for various reasons.  I have a new VI running on the client PCs who’s only function is to initialize the shared variables and open/close the VIs.  I initially thought of making the remaining 4 VIs sub-VIs but I will loose the ability to run them individually.  I think I would also have to rewrite the VI running on the server since the 4 references it originally opened do not exist.  I don’t think you can open a reference to a sub-VI on another PC.  Can you???
     As you can see, this is a huge mess.  I’m still pretty new with LabView so any help you can provide would be great. 

  • How can I close an Open PDF form without crashing the browser

    Hi
    We have build a webdynpro application in Java. In this application, we are make using of the Interactive form to bring up  a PDF form that the users can print. Our issue is that no matter what approach we take there is no gracefull way to exit once the PDF is displayed.
    Here are the approaches we took.
    1) Embed the PDF in the existing Window. The form comes up correctly with all fields, but there is no way to get out from it. A browser back doesnt help, nor is there a default close button in the PDF window.
    2) Bring up the PDF on a separate window.The PDF does come up fine on this new window. We were hoping to use the window.destroyInstanece() method on this new window to both close the window and gracefully exit the PDF form. This too dint quite work out and resulted in a browser crash.
    I am sure others must have faced a similar problem. Are there any suggestions on how we can handle this. I found a few other posts with similar issues but no clear answers.
    We are using Adobe 7.0.9 Reader on the client end.
    Regards
    Aju Paul

    I have been working with Aju on this issue. We are still experiencing the issue.
    We have tried using the destroyWindow() method and using a fireplug to redirect the application. When we have an Interactive form embedded on one of the views in the window, the application will cause a browser crash when we try to destroy popup window or redirect the applicaiton.
    If we remove the Interactive form from the view, we can destroy the window and we can redirect the application. The problem only  occurs when the Interactive form is present.
    We have recently upgraded our server to SP10. I have also reloaded the ACF on my pc. Neither of the steps resolved the issue. What else can we look at to see what may be causing the issue.
    Thanks.....Tommy Knight

  • How can you close 10 open apps at once on iPad retna mini

    Is it possible to do the above as the title says.

    No. And, it is not necessary if they are all in the background.

  • 2 websites are open simultaneously. How can I close one of the websites to have more space for the otheer websites

    Each time I use Firefox to open a news website A, another news website B appear on the left of A. How can I close A in order to have the full screen for B.

    Do a malware check with some malware scan programs. You need to scan with all programs because each program detects different malware. Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and Searches are redirected to another site

  • I can't use my skype's cam because FaceTime'cam is open.how can I close FaceTime?

    I can't use my skype's cam because a FaceTime's cam is still open. how can I close it?

    Quit FaceTime.

  • How can i close the preview in Adobe Viewer when the LINK ist fullscreen on my eMag? It will always go to URL and i can't open the summary.

    How can i close the preview in Adobe Viewer when the LINK ist fullscreen on my eMag? It will always go to URL and i can't open the summary.

    You have to change your page design so the link doesn't occupy the full screen of your content.
    Neil

  • HT4943 how can i close open application i don't want to use now on my iphone5s?

    how can i close open application i don't want to use now on my iphone5s?

    Double click the Home button and then swipe on the screen image of the App you wish to remove.

  • When pressing Ctrl+f to find something in a page the Find box remains open until I close it, in ALL tabs I have in the firefox window. How can I make firefox open the Find box ONLY in the tab I am in?

    When pressing Ctrl+f to find something in a page the Find box remains open until I close it, in ALL tabs I have in the firefox window. How can I make firefox open the Find box ONLY in the tab I am in?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it?

    When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it? Approx 1 quarter of the left side of the screen is taken up by this popunder. I've rebooted. No difference. Ive even done a system restore, No difference. I've done a search of my whole p.c. with no result.It appears to be only on firefox as it's not there on internet explorer. I've tried to attach a screen shot for you but no luck. I hope you can help me ,as I've tried everything I can think of.

    When i open firefox browser i get a sort of pop under of the weather channel which i can't close. how can i close it? Approx 1 quarter of the left side of the screen is taken up by this popunder. I've rebooted. No difference. Ive even done a system restore, No difference. I've done a search of my whole p.c. with no result.It appears to be only on firefox as it's not there on internet explorer. I've tried to attach a screen shot for you but no luck. I hope you can help me ,as I've tried everything I can think of.

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • How can you close all pages in safari?

    On my iPad it is possible to close all windows in Safari.
    Is there a similar feature in Safari? Every time I clear the history, the last page remains open.
    How can I close that window as well without having to first create a new blank one?
    Regards

    Yes, ok, but then I still have to open a new page to continue browsing.
    on the iPad i can close all pages and safari for iOS defaults to favorites.
    regards

  • How can I close DatagramSocket?

    I have DatagramSocket in my WP 8 project. I can open it and receive data but there is no Close() method even though MSDN says it exists. How can I close the socket?
    If I go to the definition of DatagramSocket I see this text at the top of the page:
    #region Assembly Windows.winmd, v255.255.255.255
    // C:\Program Files (x86)\Windows Phone Kits\8.0\\Windows Metadata\Windows.winmd
    #endregion
    The version number seems a bit weird. Am I using wrong assembly?

    If you are programming with C#, you can call datagramSocket.Dispose(), that is the C# projection of
    Close().

  • How can I close this application?

    I entered a script that autoclicks every 0.1 seconds and I didn't turn off the mouse thing so it just keeps entering 5s. I can't do anything except move my cursor(can't click or type). How can I close this application?

    > I have an interface (main vi) wich call another interface (pop
    > up).this interface call another interface. How can I do in order to
    > close the interface which is calling without stopping my application
    >
    There is a mechanism built into subVIs and subVI calls to open when
    called and close when finished. This still works fine for many tasks
    and is quick and easy. To use this, you can use the File>>VI Properties
    on your subVI, go to Window Appearance, Customize, and it is in the left
    column near the bottom.
    You can also set this on a subVI call by right clicking, choosing SubVI
    node setup and set the same Open when called and Close on exit settings.
    The difference between them is that the first will affect every usage of
    the VI, whereas the
    second can be set to pop open sometimes and other
    times not.
    Of course there is another way, introduced when the VI server was added.
    There is a VI property for the VI class, Front Panel Window Open.
    Setting it to True and FALSE will open and close. There is also now a
    method for opening and closing with a few additional options.
    The VI Server allows for more control and flexebility, but the first two
    options are still perfectly valid for simple things. If using them,
    closing your subVI is as simple as exiting your outer loop of your
    subVI. This returns and closes the window all at once giving control
    and and data parameters back to the caller. If using the VI Server, you
    can either close the window just before returning or leave it to the
    caller. Just be sure they are in agreement.
    Greg McKaskle

  • How can i close internet explorer to download flash

    how can I close internet expllorer to download flash

    37393 are you referring to Flash Professional or Flash Player?  Also have you tried closing all open browser windows?

Maybe you are looking for

  • Why have some tracks appeared in duplicate?

    Some tracks in iTunes Match appear on my iPad and iPhone in duplicate. For example, the iTunes library on my Mac has Goldfrapp's Seventh Tree on it. This appears in playlists so it is on both my mobile devices as well. However, since subscribing to M

  • Need code for dynamic insertion of a MIME object(image) into WebDynpro View

    Hi experts, I am attempting to insert an image into a view at runtime, using lines of code. I know that this code must be present in the WDDOMODIFYVIEW method of that particular view. However I am not sure about the lines of code which can do this. C

  • Pause movie after loading, then play after playing another clip

    Hi, This is the set up so far. Loader1, is playing till home.swf is loaded. I am using the loadClip function for it. onLoadProgress plays the first bit of Loader1. What I want to do is within onLoadInit() = function(_mc:MovieClip) { _root.ldr1.addEve

  • Restoring a database

    I have RMAN backup of 2 days back the current date. Now I deleted all the control,dbf,log files in /oradata/orcl/. Now I am trying to connected to database using RMAN to restore the database. It's saying connected to database (Database not opened) No

  • Unable to update itunes-Apple mobile device failed to start

    Tried updating to latest version of itunes. Gets so far with installation then comes up with the message-  Service ' Apple mobile device' failed to start. Verify that you have suffiicient priveleges to start system services. Unable to continue after