Skip to main content
Inspiring
May 10, 2017
Question

Select Back Layer Without Make Visible... making visible!

  • May 10, 2017
  • 2 replies
  • 4286 views

Simple as it says. This works 80% of the time, but sometimes, it gets it in its head that it really wants to select the hidden bottom layer and make it visible.

I've got a large number of images spanning quite a few years, from different cameras and worked on by different people, using different languages... it has been a headache to get it all working right so I can run a single action or two and create matched images that play nicely with each other on websites, but it is working right... sort of.

Many (but not all) of the images have background layers that haven't been cleaned up properly. One of the background layers that shows up often are the extraction mask contrast layers (usually green or blue and sometimes a white one) that we use to check the quality of edges on background extractions. These layers can be labeled in English, Chinese or Spanish. So I use the "Alt+," command to select back layer.

Recently, the behavior of "Alt+," has changed. When I was making the actions yesterday, it always selected the back VISIBLE layer, ignoring the hidden layers. That is as it should be and with the twirldown, it says:
Select back layer
Without Make Visible

But today, it is actually making it visible. Also, when I hit "Alt+," it goes to the bottom (hidden) layer and makes it visible. It is explicitly not supposed to do this.

This only happens when there are no layers above the layer, so Layer 1 (Content layer with mask) and Layer 2 (utility color layer which has been moved to the bottom, but is hidden). If the layer in the PSD file is opened up with another layer above it, it works normally.

My workaround is currently to add a step of creating a blank layer above the starting layer. So far, this appears to allow normal behavior.

Any ideas?
This is PS CS6 and I am not planning to upgrade to CC ever. "Change to CC" is not an acceptable solution unless Adobe wants to give it to me for free. I paid for software and it should work as advertised.

    This topic has been closed for replies.

    2 replies

    JJMack
    Community Expert
    Community Expert
    May 11, 2017

    As I wrote Adobe contract does state that Photoshop may not always operate like it's documentation.  If their poor support is a criminal offence why would Adobe not be charged in Canada. Or Adobe banned from marketing Photoshop in Canada. Make Photoshop foreign contraband.

    JJMack
    eschelarAuthor
    Inspiring
    May 12, 2017

    They are a large corporation. Who will lead the attack? Nobody. Who is even in a position to? Every industry has a company that operates like this, creating its own little loopholes and hurting their own consumers, but because they are taking advantage of customers, they can thrive in ways that more legitimate and benevolent companies cannot, eventually taking strong dominance.

    Either way, they go against the spirit of consumer protection and operate under extremely poor ethic. With the inception of CC, that got markedly worse as many customers (especially specialist freelance professionals and small businesses using the intermediate suites) are now having to pay significantly more for significantly less product, which Adobe is putting less effort to improve and less effort to ensure they work properly in the first place.

    Regardless of whether you can see it or not, that is what is happening.

    Fortunately, a massive chunk of Adobe's customers have seen this coming and have left, preferring to dump cash into their competitors' pockets. That might be adequate for some in some industries, but for other avenues, Adobe's dominance is too strong to break. In our company, I have to use Adobe because everyone else uses Adobe. So I use Premiere Pro instead of whatever else because someone else is going to use InDesign and while there are strong video editing packages now to compete with Premiere/AE, there is nothing yet available for ID (this is not as simple as I am saying it, but for brevity's sake).

    I just lost an SSD type HDD on my office computer so I'm rebuilding a bunch of stuff from scratch these past two weeks. I find it remarkable to see the dramatic difference between how MS handles long-term hotfixes and how Adobe handles them. MS has so many hotfixes available for Office 2007 that they often obscure the path to the hotfixes for Office 2010. Yeah, in the year 2017.

    MS is no shining star here of course, but compared to the attitudes displayed by Adobe, they are light years ahead. And like I said before, these two companies work under the same basic set of rules. I find it very hard to believe that MS supports their products for 7 years+ just because they want to be nice. But I find it quite believable that they do it because they feel they are obligated to (probably legally obligated to), but they haven't put their effort into trying to shirk their responsibilities as software developers and find loopholes that allow them to screw over their customers like Adobe has. Adobe might have the letter of the law on their side because they found some tricks, but the consumer is clearly getting screwed here on many levels.

    As I said before, simply stating that software might not work as described does not absolve them of legal responsibility to ensure it works as described, it probably is just enough to make it too difficult for any interested parties to actually enforce their legal responsibilities as a software creator.

    I work in manufacturing and we cannot simply say "this product will function as this type of product, but we make no guarantee that it will function as described" because if our product fails in this way, someone will fall off the side of a mountain or have a massive accident on the roads at high speed, being slowed down by the friction of their face against tarmac. Pretty likely that we would face some lawsuits pretty quick. However, if the worst thing that could happen was quite minor, but still impaired the function of the product in some way, perhaps something like created a bad ankle position which encouraged tendonitis in some individuals, it's pretty likely that nobody would ever take us to court for that. As a manufacturer, it is our choice then if we will modify our design to prevent that bad ankle position or if we just say "nyeh" and play the odds at the customer's expense.

    You obviously care enough to speak out in defense of Adobe, but the matter is moot until either there is widespread, low level resistance (unlikely) or someone gets a bee in their bonnet enough to actually take them to court (also unlikely).

    I do appreciate that you're putting time and effort into making it work and I do appreciate the information out there regarding scripting. But maybe realize that CC is a strongly destructive force in this industry. For whatever reason, that doesn't impact you personally, but it does indeed impact many, many people. The correct path chosen by many since CC was introduced is to simply refuse to pay. Adobe's prices went up significantly for the people most strongly affected, so they are insulated from that. For the intermediate suite user doing an every 1.5-2 year upgrade path (very common), the cost of CC is almost 3 times as much. They can therefore afford to comfortably lose 60% of those customers without impacting their bottom line. Press releases at that time showed that they expected a mass exodus at that time, but were rolling the dice on their dominance. It paid off for them financially and they lost less than they expected, but still probably very large numbers (greater than 50% in many segments) who were paying customers are no longer paying customers. Further, you have already acknowledged that support is bad and getting worse, but also those of us who were paying attention for the past 15 years have seen a significant decline in *useful* improvements. Without a strongly iteration-based development cycle, there is less emphasis on large product improvements and most of their improvements, even on "major" cycle releases (ie the recent one a couple of months back) are very weak and offer few genuine benefits to their users.

    Don't be under the illusion that CC has done anyone any favors. I can't make them behave well, nor can you. But both of us who put time and effort into helping people with their Adobe software have a responsibility to be truthful and clear about the harm CC continues to do to the industry where we get they money to eat and feed our families. Is it criminal? Probably on some level. Are there loopholes so they can say "not specifically illegal"? I would assume so. Will anyone enforce it or try to clarify or protect the consumers? Doubtful.

    JJMack
    Community Expert
    Community Expert
    May 12, 2017

    eschelar  wrote

    You obviously care enough to speak out in defense of Adobe

    Stop I not trying to defend Adobe as I wrote Adobe Support is not what it should be.  My opinion of Adobe support is not favorable.   I tried for years in vain to get Adobe to fix bugs.  They have fixed some bugs I have reported other go unfixed release after release.    I still report bugs but don't anticipate that Adobe will ever fix them.  I just work around them.  I do not seem to have any other choice for I want to use Photoshop.  Currently I use CC 2014.

    All I wrote is where I live Adobe support is not a criminal offence.

    JJMack
    JJMack
    Community Expert
    Community Expert
    May 11, 2017

    It you want to automate selecting the bottom layer and insure it is visible it would be  an extremely easy process to script.  You could then use that script in actions.  If you look at the script I wrote and include in my crafting actions package. You should see how easy it would be.

    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains

    Example
    Download

    If I wanted to add such a script to the package I would encase the two line script in boilerplate to document it somewhat and show help in menu Help>About Plug-ins>TargetBottomLayer.

    The script would look like this,

    // A Script by JJMack's Designed for use with Custom Actions

    // This script targets the bottom layer and insures it is visible

    // This script is supplied as is. It is provided as freeware.

    // The author accepts no liability for any problems arising from its use.

    /*

    <javascriptresource>

    <about>$$$/JavaScripts/TargetBottomLayer/About=JJMack's Target Bottom Layer.^r^rCopyright 2017 Mouseprints.^r^rScript utility for action.^rNOTE:Targer bottom layer wwill maht the botton=m layer visible if it was not</about>

    <category>JJMack's Action Utility</category>

    </javascriptresource>

    */

    // enable double-clicking from Mac Finder or Windows Explorer

    #target photoshop // this command only works in Photoshop CS2 and higher

    app.bringToFront();// bring application forward for double-click events

    if (!documents.length) {  alert('There are no documents open.', 'No Document'); }

    else {  main(); // if at least one document exists, then proceed }

    ///////////////////////////////////////////////////////////////////////////////

    // main - main function

    ///////////////////////////////////////////////////////////////////////////////

    function main() {

      try {

         // declare local variables

         var layers = activeDocument.layers;

         activeDocument.activeLayer = layers[layers.length-1] // Target Bottom Layer

         activeDocument.activeLayer.visible=true;             // Insure later is visible

         }

      // display error message if something goes wrong

      catch(e) { alert(e + ': on line ' + e.line, 'Script Error', true); }

    }

    JJMack
    eschelarAuthor
    Inspiring
    May 11, 2017

    What are you saying JJ?

    I've already described in pretty good detail the steps I have gone through in creating my action. The tool used is Alt+,

    It explicitly called it "select back layer" and "Without make visible". However, the behavior is inconsistent. If there is another layer, it works as described. If there is no layer above it, Photoshop incorrectly selects the back layer which is hidden and makes it visible.

    How is this fixed by using scripting instead?

    While I do like the idea of educating myself and learning scripting, it's vastly vastly overkill for the amount of time I have for this job. The actions work fine until they come across this single odd situation.

    JJMack
    Community Expert
    Community Expert
    May 11, 2017

    The top line of my append  did not make it into the append. It stated. (I can not type)..

    Something is wrong with your Photoshop CC 2017 Att+,  on my machine select the bottom most visible layer.  If the bottom layer is not visible it is not selected.

    All the layer Alt+ whatever target only visible layers.  I find it I want to target layers that are not I have to script it.  You may be able to select by layer name in actions but I do not like to do that for layer names need not be unique  a document can have more than one layer with the same name.

    JJMack