Set effectsActive on a locked layer

I have a script I wrote that toggles the fx on/off for the layers in my comp.  It's really handy and speeds up my workflow quite a bit.  The only problem is when I have my layers locked, it won't let me set the effectsActive attribute.  I can toggle the fx switch on/off in the UI when the layer is locked with no problems.  Why can't I do this via a script.  Is there a workaround to accomplish the desired goal?
Thanks for any advice!
-Justin

That works for me!  Temporarily unlock then re-lock the layer when done.  
I'm curious why I'm able to toggle the fx switch in the UI with the layer locked but can't do it via script.  That's what gave me the idea for the script to begin with; I had no problems doing it via the UI.  Any idea why that is?
Thanks!
-Justin

Similar Messages

  • [JS] Unlock and lock layer

    I can see in the reference guide there is a Layer has a Locked property.
    "locked - If true, this layer is editable; set to false to lock the layer."
    Seems like that is reversed, but not matter. How do you actually set the property of a layer?
    Using some of the examples I figured I can point to the right layer which is the bottom most one:
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    But then what?

    bottomLayer.locked = true (or false)
    BTW, I think you're right, the documentation is wrong. Setting locked to true will lock the layer.

  • TS4006 I lost my iPad! I initially set up a screen lock in iCloud but now my iPad is no longer in the list.

    I lost my iPad! I initially set up a screen lock in iCloud, only to find out that I would then not be able to find my device. I then removed my device from the list in iCloud. Now, after clicking on "find my iPhone", it does not appear in the list. How do I get it back in my list of devices? The fact that it was originally in the list, does it mean that I did activate "find my iPhone"?

    you did activate find my iPhone but because you removed it from the devices list, you cant do anything further.  You need the device to add it back to the list.
    -Brenden

  • Help! My new iPhone is asking for a password but I never set one and am locked out - what can I do?!?!

    help!!! My new phone is asking for a password but I never set one and am locked out - what can I do?!?!

    Is it asking for your Apple ID password or the passcode to unlock the phone?
    If it's asking for your passode, use the steps in this article: http://support.apple.com/kb/ht1212

  • So my daughter set a password to lock her ipod and now she can't remember it.  I tried to restore to factory settings but it still wants a password.  I tried 0000 and that doesn't work.  Any ideas what to do to?

    So my daughter set a password to lock her ipod touch and now she can't remember it.  I tried to restore to factory settings but it is still asking for a password.  I tried 0000 and that didn't work  Any ideas what to do?

    From this Apple support document: iTunes: Specific update-and-restore error messages and advanced troubleshooting
    This device is not eligible for the requested build: Also sometimes displayed as an "error 3194." If you receive this alert, update to the latest version of iTunes. Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. First you must uninstall the unauthorized modification software from the computer, then edit out the "gs.apple.com" redirect from the hosts file, and then restart the computer for the host file changes to take affect.  For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the headingBlocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart. Also, using an older or modified .ipsw file can cause this issue. Try moving the current .ipsw file, or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
    Error 3194: Resolve error 3194 by updating to the latest version of iTunes. "This device is not eligible for the requested build" in the updater logs confirms this is the root of the issue. For more Error 3194 steps see: This device is not eligible for the requested build above.
    B-rock

  • Hi. I cant open my itunes?? comes up with locked layer or disc?? help !!

    Hi I cant open my itunes?? it comes up with locked layer or disc ?? Help please !!

    Sorry: once a device has been authorised for a particular iTunes account you can't change it to another until 90 days have passed. This is to prevent people cirumventing the restrictions of purchases to one account from consteantly swopping between accounts. You will have to wait for the 82 remaining days, and there is no workaround.

  • Setting Disk Utility to lock out bad sectors

    Setting Disk Utility to lock out bad sectors
    When my Leopard DVD arrives I'm planning on doing a clean install to my internal HD. I would like to format the drive to lock out bad sectors but I can't seem to find a setting to do that in Disk Utility or anything about it in Help.

    Hi Peggy Lynn;
    To the best of my knowledge there is no way to lock out bad sectors.
    What you can do is erase the disk and under security tab have zeros written to the disk. When you do this if any bad sectors are found, they will be mapped out so that will no longer be used.
    Disk drive always have some extra sector which can be mapped in to replace any that might go bad. The disk drive can continue doing this until the sectors are all used up then you will have to replace it.
    Allan

  • What function can I use set Product Master status = LOCKED?

    I have several Product Master records that the business would like to set Product Status = I1103-LOCKED.  Is there a function I can use to set product status?

    Hi,
    You can make lock objects via sm12. Your lock object name start with E.
    Every lock object is having two function module.
    enque_lock_object_name
    deque_lock_object_name
    hope it will useful.
    thanks
    Hemant

  • Unlocking a "Partially Locked Layer" in Ps CS3

    I am working on a poster for a school project and I have come across something that I have never encountered before in the 4 years of photoshopping I have done. Its a "Partially locked layer". The layer is a text layer and the "lock" button in the layers pallet is off. I have been searching around for how to unlock this layer I have only found these on the "backround" layer not text layers and i cannot figure out ( nor can my teacher(s)) how to unlock it. I need to just transform and edit the text in this layer but am unable to due to the partial locking of the layer.
    Any ideas on how to unlock?
    What I have tried:
    restarting Ps CS3
    Lock Button
    Copying the text layer
    saving as another name and re-opening
    Differnt Computer
    Thanks,
    Matt

    Are either of the 2 icons in red down? If so click on them so they are not depressed.
    If you accidentally used New>> background from layer (your layer would look like the screenshot above). In taht case thje text has been bitmapped, adn even releasing would release this bitmapped.
    If this does not solve your problem, can you post a screenshot of your layers palette?

  • Password Protected Locked Layer?

    As a photographer, we are very protective of our creations. I have an image that I took for a client, that needs some Photoshop clean-up work, that will probably take me 15~30 minutes to complete, and I plan on billing my client for my labor. However, when I mentioned this work to my client, they told me that they can't afford my price (which isn't that much), and that they'd like to have a family member who is a "Photoshop expert" do the work, instead of me, and then give me the image, so that I can send it to my lab for printing. I can't imagine having the image out of my control, where it could be printed by them, posted to Facebook or shared with others, so this option really doesn't sit very well with me!
    I like to do what I can to make my clients happy, but may not be able to in this instance. However, what I was thinking, although I believe that I already know the answer, is adding a password protected, locked layer with my low opacity watermark over the image. Unfortunately, I can't think of anyway to achieve this password protecting of a layer. Sure I can lock a layer, but it can be turned off at will.
    Can any one out there think of any other options or solutions, that will allow me to give my image to a client, and ensure that my watermark/copyright remain visible on the image during the entire time that they're editing it?

    We can only make conclusions based on what little you have described. GIGO.
    We're only left to addressing the foolishness of the shoot as there is nothing that can further be said about a ridiculous hope of software. Do we recognize the silliness in supposing that you could supply a file that is both editable and not editable?
    Adobe already offers some security options in PDF files (preventing copying, printing, editing, opening, etc), which are easily defeated. Hold your breath to wait for this stunningly ineffective technology to make it to other Adobe apps.
    As this is such an issue for you, it may be time to reevaluate the business model of prints as a significant portion of your service.  Home computers and Walmart's in-store photo printer have replaced most of your service, even if you forced the client to sign a piece of paper vowing not to duplicate.  Photographers really need to focus on and charge appropriately for the craft of photography (like employing guards on windy, rainy days) and not try to be intellectual property managers for an end product that they really cannot control anymore.
    You can enter feature requests here and then wait a year or so for the release cycle. How soon does your client need prints? 

  • Hidden / Locked Layer Drop Object Keeps Selection (BUG)

    For the past several versions of Illustrator (from CS5 through CC) this has been a HUGE problem:
    Whenever I turn off the visibility of a layer (and/or lock it), and I drag a selected object from a visible and editable layer and drop it into/onto the locked &/ hidden layer, the dropped selected object remains selected although I can no longer see or edit it.  The bounding box remains obscuring my work flow and prevents various boolean operations to be done on newly selected objects on editable/visible layers.
    Whenever a selected object is dropped onto a locked &/ hidden layer that selection MUST ALSO BE DROPPED.  Before CS5, to my recollection, this was the case and worked as expected.  But from CS5 onward, this logical and intuitive workflow fails.  So what I am forced to do is I have to changed the layer back to visible and editable, click somewhere off of any object to deselect, then return the layer to a locked &/ hidden state.  Now when I am working with hundreds, if not thousands, of objects that I have to sort and process using layers to manage them, this having to toggle ON, deselect, then toggle OFF to get back to work is hellish at best.
    No object on a hidden or locked layer should ever maintain its selection state --- EVER --- no matter how that object got onto that layer.  Any selection is worthless if it cannot be seen.  Any selection is worthless if it is locked.  Therefore, drop the selection state when a selection was dropped onto a locked &/ hidden layer.
    This has to change.  This issue alone accounts for adding  over 20% to my cost in hours spent on complex projects where thousands of objects need to be managed.  Such complex projects account for 75% of my workload.  So this issue costs me dearly.
    STATS:  Illustrator CC on iMac Mountain Lion w 8GB RAM.

    No.  They were both top-level layers during my latest attempt that finally worked.  In response to your post just now, I tried doing it with sublayers.  And with sublayers the problem re-emerged. I necessarily have multiple levels of sublayers to manage my assets, so I guess that's why it has failed for so long, but my earlier test (sans sublayers) worked.  So it must be the sublayers that cause the issue.
    When the problem happens boolean operations just fail to do anything, and trying to move an existing editable-layer object with a non-released object causes an outright crash.
    So this is definitely a bug that needs fixing.

  • Partially locked layer

    I am using CS4. I have a partially locked layer. It is not the background layer. I partially locked it myself but forgot how I did it. How do I unlock it?

    http://help.adobe.com/en_US/photoshop/cs/using/WS1375CE44-C305-4d39-8CAF-7CF770557E6Ea.htm l

  • Locked Layer in Photoshop CS4

    Hello,
    I have a layer in photoshop that refuses to unlock. Doesn't matter how many times I click on the lock, it just keeps telling me it can't edit the layer because it's locked.
    The file is in RGB and I just don't get it. So frustrating =[[

    I've seen this before under certain circumstances.  You can group layers together and select "Lock all layers in Group"  from the flyout menu at the top right of the layers panel.  At this stage, you can unlock the layers in the group through the same command.
    The odd thing is that while the layers in the group are still locked (via the "Lock all layers in Group" command), you can ungroup the layers, and the individual layers remain locked.  I never bothered to look for a way to unlock the layers which were locked in this fashion because in my case it was easier to just create a new layer and copy the contents of the locked layer into it.

  • Locked layer pasting glitch - HELP PLEASE!!

    Hello,
    My Adobe Illustrator CS3 appears to have picked up a glitch and I was looking for advice on how to remedy the situation:
    When I try to paste on any layer, I get the:
    You are attempting to paste or drag into one or more layers that are locked or hidden. Do you want to unlock and show all appropriate layers?
    Thing is the layer I am on is not locked.
    If I click okay it either opens a locked layer if there is one and pastes there, or creates a new layer - it varies.
    I have restarted etc. and tried other documents but it always happens now. Even if I make a new blank document and start a fresh pasting elements.
    Do I need to reinstall or is their simpler alternative?
    Many thanks in advance
    Anthony

    Thank you, thanks you, thank you! So simple when you know how. This had me pulling my hair out - You have really helped me out.
    Anthony

  • Use fitting options on all objects to a locked layer

    This will be a easy for some of you.  But I'm just a kid at this.
    I have a layer locked called AD.
    Not all the ads fit their boxes.  So I would love to run a script that would looked at the locked layer by the name of the layer and make all content fill frame proportionally.
    I tried to piece together other code I found here, but I failed miserably.  I appeal to the gods!!

    If you use the ESTK, look in the Help menu; it should have a "Browse Object Model" item.
    ... If you still can't find it after some frantically clicking :-) check out http://jongware.mit.edu/idcs6js/pe_FitOptions.html. It's the same information, but in a friendlier format.
    Although my version has an index as well, you might find stuff even easier to find if you download the CHM version from my site and open it with a suitable Help viewer. Searching is then just a question of typing just about annyfing in the provided "search" field ... (http://www.jongware.com/idjshelp.html) On Windows you can use the standard Help file viewer, for Mac OS X you have to find something suitable. A link to a fine one is on my web page.

Maybe you are looking for

  • Help needed in mapping BI query output to use as input for BAPI

    Hi, After wrestling with it for quite some time I choose to ask yet another question here. I want to use the output of a BI query I use as input for a BAPI. I just can not get the mapping correctly: The query delivers: 104908BA092F7501F5E100800082900

  • Importing BAPI with Import parameter Type Structure

    Hi All, I am importing BAPI as shown below: FUNCTION ZTEST_BAPIOC. ""Local interface: *"  IMPORTING *"     VALUE(A1) TYPE  ZLEVEL1 OPTIONAL *"  EXPORTING *"     VALUE(M1) TYPE  CHAR10 Where ZLEVEL1 is Structure which contains many appended structures

  • Birthday year bug for iphone4!!!

    As I'm entering birthdates for my contacts, I am noticing for January 1st birthdays, selecting the year is off by one year. This happens specifically when you choose the years of 1976 and years close to it. For example, my cousin's bday is Jan 1 1981

  • Duplicate the explorer window (Ctrl+N)

    Hi I'm using JSP and servlet that running in tomcat4.0 the problem is that if i'm choosing from the menu File-> New->Window (or pressing the Ctrl+N) it duplicate the jsp with the same session id and it cause problems. e.g the user can press the "Upda

  • Navigation Block and RRI

    Hello everybody, I use the RRI to jump from one report Q1 to another report Q2. Both report are using the same webtemplate W1 (the report is send as parameter to W1.) Both reports have the same structure and they are build one the same InfoProvider.