A lot of Layer Opacitiy

Hello,
I am new in scripting and my question is determined very simply. Unfortunately I can not find a solution.
I would like to solve the following problem. In Photoshop I have many layers. The number is always different.
I want to generate the Opacitiy the layers from 0% to 100%. So, the top layer is 0% and the last layer is 100%. In addition, all levels to "Lighting" (Layer Mode)
Does anyone have a tip for me?
many thanks
Kenny

If you are new to this I think you may want to try this with Document Object Model code and not jump into Action Manager code immediately.
Edit: Even though AM code might run considerably faster.
Are all the Layers top-level or are Groups involved?
Edit:
For top-level Layers something like this would suffice to change the Opacity.
if (app.documents.length > 0) {
var myDoc = app.activeDocument;
var theFraction = 100 / (myDoc.layers.length - 1);
for (var m = 0; m < myDoc.layers.length; m++) {
var thisLayer = myDoc.layers[m];
thisLayer.opacity = theFraction * m
But mind that this assumes there are just plain Layers, so for example no Background Layer.
Regarding editing the BlendMode select "Adobe Photoshop … Object Library" in ESTK’s Help > Object Model Viewer and check out "BlendMode".

Similar Messages

  • Show/hide lots of layer, image swaps and page size

    Hi - I am working on a webpage that requires 39 thumbnails to
    show 39 large
    images when clicked and to also show some text on mouseover -
    take a look.
    http://www.redsea.co.nz/lipitor/slidekit.shtml
    I have been asked to use scrolling divs to house the
    thumbnails and so i
    have.
    I'm working through the image behaviours (up to slide no. 10
    you'll see) and
    I'm wondering if there is a better way to do all this. 39
    rollover show/hide
    layers and image swaps seems very laborious to me, not to
    mention the page
    is getting far too heavy........
    Anyone got any better ideas? (apart from a dynamic page) -
    all thoughts much
    appreciated.
    Also, any other issues spotted around this site please let me
    know, I'm
    supposed to have this finished by monday am..
    Thanks in advance
    Karen

    Yes, I have a better idea. Use the ShowPic extension from
    PVII -
    http://www.projectseven.com/,
    or even do it yourself with the SetTextOfLayer
    behavior in DW -
    http://dreamweaverresources.com/tutorials/settextoflayer.htm
    Either of those would be much better ways, since the page is
    not encumbered
    with the weight of all of the enlarged images UNTIL you click
    on the
    corresponding thumbnail.
    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
    ==================
    "Karen J" <karen@don'tmailmeredsea.co.nz> wrote in
    message
    news:eaeto3$758$[email protected]..
    > Hi - I am working on a webpage that requires 39
    thumbnails to show 39
    > large images when clicked and to also show some text on
    mouseover - take a
    > look.
    >
    >
    http://www.redsea.co.nz/lipitor/slidekit.shtml
    >
    > I have been asked to use scrolling divs to house the
    thumbnails and so i
    > have.
    >
    > I'm working through the image behaviours (up to slide
    no. 10 you'll see)
    > and I'm wondering if there is a better way to do all
    this. 39 rollover
    > show/hide layers and image swaps seems very laborious to
    me, not to
    > mention the page is getting far too heavy........
    >
    > Anyone got any better ideas? (apart from a dynamic page)
    - all thoughts
    > much appreciated.
    >
    > Also, any other issues spotted around this site please
    let me know, I'm
    > supposed to have this finished by monday am..
    >
    > Thanks in advance
    >
    > Karen
    >
    >

  • Advice when using lots of Adjustment Layers/Layer Masks

    I want to create an image that will be composed of lots of layer masks that I am going to use to paint different effects back over someone's face. I currently have a hue/saturation adjustment layer that I used to desaturate the image and then I selectively painted that desaturated layer back over the skin of someone, I also want to add some green so I created a color balance layer and made a layer mask out of it and want to selectively paint back some green to the skin tone.
    1. Does it matter in the layer stacking order where these adjustment layers/layer masks reside?
    2. Any general tips for working with an image with lots of adjustment layers/layer masks?
    Thanks.

    Depending upon the blend mode, it does matter what order you put the layers, as the topmost layer will affect what's below it.  You can play around with the different postions and see what works best for your image.  You can also group the layers, and set the blend mode of the group to anything other than "Pass Through", so that the adjustment layers only affect what's in the group.

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

  • Need help saving layer styles Photoshop CS6 Extended for Mac (Mountain Lion)

    I have been trying to learn Photoshop. I am using Photoshop CS6 Extended on a Macbook Pro (Mountain Lion). My Adobe software has been updated. I have been doing tutorials using a lot of layer styles. In one of these tutorials, it was suggested that if I would possibly want to use the style again that I should save it. At this point I had entered all my layer styles info and was still in the window with the list of layer styles on the left (bevel and emboss, drop shadow, etc., and the "New Style" button on the right. I clicked on the "New Style" button and when another window popped up asking me to name the style, I named it. When I looked at my styles in the styles panel, I saw the little button for the new style. I saved my graphic and closed it. Later I wanted to apply this style to text in another graphic. The style was used on text originally. When I clicked on it though the style didn't look the same. Upon investigation, a couple of setting under Bevel and Emboss had reverted to defaults. They were different numbers when I saved the style. I could go back in and change these two numbers and get the same results, but I don't understand why these numbers changed on their own -- why the style didn't completely "save." Is there something I have done wrong, or is this some kind of bug? Any help would be greatly appreciated! Thank you in advance!

    Thank you very much for your reply! Yes, both documents were at 72 resolution. This morning I tried to save yet another style (same resolution document). It worked when I used it the first time. Then I switched to the other style I had saved. That one took some of the bevel and emboss settings from this morning's style. The numbers which will not save are the angle and altitude under the shading section. Just now I made another document (text at 72 resolution) and both styles had changed these numbers to 120 and 30. Is this something I am doing wrong? I am trying to use text of a similar font and size. I updated my software last night in the hopes that that would help. This morning I reset preferences. Don't know what to do! Thanks for helping me!

  • Moving Elements in Layer Groups

    I need feedback as to how to move elements around within layer groups. I always organize my psd files by setting up lots of layer groups. I've noticed that with CS3, that I am unable to move just one layer within a group without everything in the group moving. For example, If I have a group and within that group I have a text layer, and other layers with various elements, If I want to move the type, everything goes with it even though I haven't linked them altogether. Am I missing something? I don't remember this with earlier versions. It is driving m crazy. Is there a preference I have to set? Any advice would be greatly appreciated.

    Is your Move Tool option set to Auto-Select: Group? Change it to Auto-Select: Layer.
    Or just turn it off to disable any Auto-Select..

  • Extract layer with alpha channel or with whole layer size?

    First of all.Sorry about my English.But I'll try my best to describe what I mean.
    The text with transform:
    The extract window of text:
    Is any possible make the extract given whold layer size result ?
    What I except:

    But that's a lot of layer i need to extract
    Almost like ... 21 layers and i need another scaled level "x/2" "x/4"
    21 * 4 = 84 I must do 84 save as. thats not good.

  • Photoshop CC layer mask on 3d model!

    Hello Adobe. I have tryed photoshop cc and found one bug. I can't paint on layer mask on 3d model. I am always use photoshop for texturing 3d characters, and i use a lot of layer masks. Now you made awesome feature when i can paint on 3d model with normal map. But i can't do anathing because of the masks.
    Hope you will fix it. Thanks.

    Ok, thank you very much mr. Chris Cox.
    As i understand i can use different layers and masks, in document with model, and then merge it and it will project on mapping texture. But i think that it a bit uncomfortably. Because, for example i have model of gun. I want to paint rust in some places of it. How i usually do it. I make new layer filling it all by texture of rust, creating mask, filling it black (hide) and then painting on mask by white color in places where i want rust. And i want do exactly same but on 3d model, because it more simple and comfortably.
    But as i understand i need to create new layer and layer mask in document with model, and paint all there, and then merge.
    In this case i have 3 problems.
    1. I can't rotate model before i will merge.
    2. My texture of rust for example will projected on texture not correctly with distortion (as compared if i will paste it on mapping texture)
    3. When i will marge this layer with layer mask i will lose my mask.

  • Capwap layer 3 question

    Hello all,
    I have a question about the capwap. Here http://www.cisco.com/en/US/docs/wireless/controller/7.0/configuration/guide/c70ovrv.html#wp1069102
    I read, that 'CAPWAP communications between the controller and lightweight access points are conducted at Layer 3. Layer 2 mode does not support CAPWAP' and also 'The requirement for Layer 3 CAPWAP communications across subnets is that the controller and lightweight access points are connected through Layer 3 devices'. I cannot understand what's meaning the Layer 3 for CAPWAP? Maybe that the controller and capwap AP must be on the different subnets and connected across the subnets? But, now my controller and APs are on the same subnet and all are working. Example, if I connect a controller and capwap APs to Catalyst 2960s, and all are in same VLAN, I think that it also will work? I see the guide deploy 2500 controller and some scenarios there, where controller and APs are connected to Catalyst 3560 and Catalyst 3560 have only switchport trunk or switcport access settings. I can do this on the Catalyst 2960S too. Where is difference?
    Thanks a lot.   

    Layer 3 CAPWAP has nothing to do with AP being able on the same subnet of the WLC or not. AP and WLC can be on the same subent and operate at Layer 3.
    When we say L2 LWAPP it means that it operates with native L2 ethernet frames.
    The LWAPP Control and Data messages are encapsulated in Ethernet
    frames using Ethertype "0xBBBB". In Layer 2 LWAPP mode, although the access points may get an IP
    address via DHCP, all LWAPP communications between the access point and WLC are in Ethernet
    encapsulated frames, not IP packets. The access points must be on the same Ethernet network as the
    WLC. For this reason, Layer 2 LWAPP mode may not be suitable for scalability purposes in most
    deployments. Furthermore, Layer 2 mode is supported only by the Cisco 410x and 440x series of WLCs
    and the Cisco 1000 series access points. Layer 2 LWAPP is not supported by lightweight Cisco Aironet
    1200, 1130AG, or 1240AG access points, or the Cisco 2006, WiSM, or WLCM series WLCs and ofcourse the new stuff.
    In L3 mode LWAPP/CAPWAP are encapsulated in UDP packets instead of ethernet frames.
    Please make sure to rate correct answers

  • When I install Oracle 9i on RedHat Linux 7.3 ...

    Hello , everybody :
    When I install Oracle 9i (9.2.0.1) on Red Hat Linux 7.3 ,
    I got an error when invoking the target of "install" in makefile : "ins_ctx.mk" ,
    all of the message is "Error in invoking target install of makefile /oracle/product/9.2.0/ctx/lib/ins_ctx.mk"
    and I edit the file "$ORACLE_HOME/ctx/lib/env_ctx.mk " , add a "$(LDLIBFLAG)dl" to the "INSO_LINK" ,
    but there is still an error when I press "Retry" and "Retry" ...
    Will it occur any error when I use Oracle 9i on Linux (because I press "Ignore") ?
    Does somebody can tell me how to solve the problem ?
    Thanks a lot.

    Hi Lai Yu-Tai,
    I'd the same problem. You can fix the problem (fixing provided by Werner Puschitz, http://www.puschitz.com/OracleOnLinux.shtml):
    "Error in invoking target install of makefile /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk"
    I saw this error only in connection with Oracle 9i R2 (9.2.0) installation.
    Also, this is the only problem I experienced with Oracle 9i R2 on Red Hat 8.0 (and 7.3 -MQ). But this does not necessarily mean that you won't see other problems described here.
    The following errors showed up in $ORACLE_HOME/install/make.log:
    /lib/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE'
    /lib/libdl.so.2: undefined reference to `_dl_open@GLIBC_PRIVATE'
    /lib/libdl.so.2: undefined reference to `_dl_close@GLIBC_PRIVATE'
    /lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE'
    /lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE'
    It happens when the following step is executed:
    /usr/bin/make -f ins_ctx.mk install ORACLE_HOME=/opt/oracle/product/9.2.0
    Edit $ORACLE_HOME/ctx/lib/env_ctx.mk and go to "INSO_LINK =", add a "$(LDLIBFLAG)dl" to the line and save it.
    Here is the full line with the added "$(LDLIBFLAG)dl" flag:
    INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m $(LDLIBFLAG)dl $(Long postings are being truncated to ~1 kB at this time.

  • Creating a DVD9+R DL master with 1.51

    I'm working on a DL +R replication master for a DVD9 project. The master DVD looks to be ok except when it hits the layer break. At the layer break playback basically seizes up and stops. Playback anywhere else on the disc is fine so I'm assuming (QED) that something is wrong with the layer break.
    I've been digging around the net for past 24 hours or so and I've seen a lot of layer break related posts, but nothing that's right on target with regard to Encore.
    Should I avoid using DVDs for use as masters and stick to DLT?
    Any recommendations on tools / process / other companies for working around a problem like this? I see a lot of posts for using GEAR to create DDP images - is that the way to go? Finally, should I bother upgrading to 2.0?
    ...that's a lotta questions from someone who's stuck!
    Thanks all
    =8^)

    This looks to me as if your set top player cannot read a DVD+R DL disc correctly. This is quite common.
    I would
    i personally
    avoid sending +R DL discs as masters & stick to either DLT tapes (which Encore will create for you) or possibly as CMF-DVD or DDP-DVD from something along the lines of GEAR Pro Mastering Edition.
    Second option is to change your set top player for one that
    i will
    read a +R DL disc.
    Odds are extremely high there is nothing wrong with your disc though.

  • In TMS, can you have routes from a dev to multiple consolidation systems?

    My developers want to be able to choose from a list of target systems when creating a transport so that transport would go to a target group, or individual systems.
    Currently, I have my my ECC 6.0 Dev system transport routes configured to send to a transport group which adds the transports to two other systems queues.  there is a SAP layer and zxxx layer. All custom development classes
    use the zxxx layer.
    My problem is that sometimes they only want the transport to go to one system or the other, but not both. They would like to choose which system to use in the target system field when creating a transport.  Is this possible?
    All development classes (packages) use the same
    transport layers, either sap or zxxx, I have tried to create routes from DEV to these to 3 different locations, but TMS only lets me use the layer for one route. if I create a SAP route to the /ZXXX/ target group it will not let me also create a SAP route to the individual systems. It appears you can only use a layer to go to one destination.
    Is there some way to give them a choice? The developers swear they have seen this before in development systems.
    Thanks, Pat

    Hello Pat,
    The customer i work for has a complex landscape. We have one development system and 6 quality systems.
    I have just checked the transport routes in STMS and i see that there are a lot Z layer created for the transport routes to the multiple systems.
    Hence i agree with you from an SAP standard point of view all options are closed out. (and believe me i am working on the old R/3 3.1 version)
    But what is the problem with transport target group. Just because a request goes and sits in the buffer of a system, it does not mean the request has been imported. right? why cant you convince them on those lines?
    But at the same time, i hope your company does not use the standard SAP concept od doing an import all every few hours.
    Regards,
    Prashant

  • Photoshop crashes constantly

    This is the fifth time that I have spent HOURS on a picture just to have the tablet go to sleep while I'm doing something like grabbing a soda, answering the phone or using the restroom, and upon awakening the app crashes. I do not have this problem with autodesk or any other program on my tablet, it is only photoshop; which I'm somewhat forced to use bcause CS6 is what all my coworkers have on their computers. This needs to be fixed, I know I am not the only person with the issue, and if you're not going to fix it you need to impliment an autosave feature so pictures can be retrieved after this shoddy program screws an artist out of hours, or in some cases DAYS of work.
    I expect more from a company like Adobe.

    Please always consider that a phone is not a workstation. Save your projects frequently (and create versions) especially when working with big documents and/or lots of layer!
    Be aware that on a device running low on memory the OS starts quitting apps!

  • Help the newbie

    I'm so new to Dreamweaver. I can only create static webpages
    but now I really have to create a page with dynamic contents (like
    get live data from a db), lots of layer manipulation(like layers
    changing sizes, etc) and javascript. Any recommendations on books
    that I should read to learn really fast? Any links?
    Please help. Thanks.

    newbiejane wrote:
    > I'm so new Dreamweaver. I can only create static
    webpages but now I really have
    > to create a page with dynamic contents (like get live
    data from a db), lots of
    > layer manipulation(like layers changing sizes, etc) and
    javascript. Any
    > recommendations on books that I should read to learn
    really fast? Any links?
    >
    > Please help. Thanks.
    >
    >
    >
    If you need to do it soon, the best advice anyone can give
    you is to
    hire someone already proficient in these things (not sure
    what you mean
    by "layer manipulation," though).
    Otherwise, you need to get a book, take a class, or sign up
    for online
    training videos, depending on your learning style, and
    depending on
    what your host supports, and learn PHP, ASP, or CF (there are
    others,
    these seem to be the most commonly mentioned these days). It
    also would
    help to learn some theory about constructing databases
    efficiently.
    I am only a beginner myself, and if I needed something like
    that in a
    hurry I would probably try to hire a PHP person I know from
    this ng
    (Steve Fleischer, Gary White, there are quite a few who
    answer PHP
    questions frequently here) to do it for me.
    In the long run, I have bought and started to study these two
    books:
    Database Design for Mere Mortals (don't remember author
    offhand but you
    can find in any online bookstore) and
    PHP for Dreamweaver 8 by David Powers (who also frequents
    these and
    other newsgroups).
    Still, unless you can devote hours a day to this, it takes
    time to
    learn, and you can mess up a lot more much more quickly using
    dynamic
    pages than you can with a simple html page.
    Another option, depending on your needs, would be to delve
    into an
    existing content management system such as Joomla, Website
    Baker, etc.,
    but from what I've observed with others' experience, these
    can be more
    or less difficult to customize depending on your level of
    expertise and
    the adequacy of the documentation.
    Bonnie in California
    kroko at
    sbcglobal dot net
    http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa

  • Unlocking Background Layer with lots of other layers

    I've been looking at the similar questions, but no script has worked perfectly yet. I have a series of phoshop actions that I run on a regular basis. I have two version of each, one for if there's a locked background layer, and one for when its already been unlocked. Otherwise my actions error.
    I'd like to simplify the process and have a script run that finds any locked layers (ie: background) and unlocks it, even if there are 15 other layers and even if I have another layer selected. It should also run without errors if there are no locked (background) layers to be found.
    I don't know the first thing about writing my own scripts, so can somebody tell me what lines of code I'd need? Thank you Thank you!

    function makeActiveByIndex( index, visible ){
        var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putIndex(charIDToTypeID( 'Lyr ' ), index )
        desc.putReference( charIDToTypeID( 'null' ), ref );
        desc.putBoolean( charIDToTypeID( 'MkVs' ), visible );
        executeAction( charIDToTypeID( 'slct' ), desc, DialogModes.NO );   
    function getNumberOfLayers(){
        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 getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
    var doc = app.activeDocument;
    var layerCount = getNumberOfLayers();
    var invisibleLayers = [];
    var loopStart = Number(!doc.layers[doc.layers.length-1].isBackgroundLayer);
    for(var layerIndex = loopStart;layerIndex<=layerCount;layerIndex++){
        if(!getProperty( charIDToTypeID('Lyr '), stringIDToTypeID( 'visible' ), layerIndex )) invisibleLayers.push(layerIndex);
    for(var hiddenIndex=0;hiddenIndex<invisibleLayers.length;hiddenIndex++){
        makeActiveByIndex( invisibleLayers[hiddenIndex], true);
        if(doc.activeLayer.allLocked) doc.activeLayer.allLocked = false;
        if(doc.activeLayer.pixelsLocked) doc.activeLayer.pixelsLocked = false;
        if(doc.activeLayer.positionLocked) doc.activeLayer.positionLocked = false;
        if(doc.activeLayer.transparentPixelsLocked) doc.activeLayer.transparentPixelsLocked = false;
        doc.activeLayer.visible =  false;

Maybe you are looking for

  • Images on Portal Report

    I have images stored in a table (stu_pic long raw). How can I select the image to show on a portal Sql based report?

  • How can I get rid of a whirling circle that stops me using a document?

    How can I get rid of a whirling circle that stops me using a document?

  • Help.... cant access object

    public void getProduct(Product item)      this.product = item;      System.out.println(this.product); public boolean orderProduct(int productCode, int orderAmount)      boolean validOrder = false;      if(this.product == null)           return validO

  • Column Width

    We are currently running Version 6.70.190 SP:00 PL:31 When I go to write a PO I open Modules / Purchasing AP / Purchase Order to open the form and go to the Item tab. The columns that I need (Item Description, Item No. etc.) are too small to type in.

  • Fast Image - Slow Image

    Hi In my game I load a 2D landscape from a gif image. The image consists of mostly two colors. If I use this image in my game, the game runs fast. as it should. But to make the graphics nicer, I have drawn a second, small image with lots of colors an