Painting Process Documentation: Stamp Visible, Move to layer Set and hide

I like to capture my screen while painting and when I am done I make an animated GIF from these "process shots". I am trying to automatize the process and I have managed to come up with this which meets my needs:
#target photoshop
app.bringToFront();
// Stamp visible Layers
var idMrgV = charIDToTypeID( "MrgV" );
    var desc2 = new ActionDescriptor();
    var idDplc = charIDToTypeID( "Dplc" );
    desc2.putBoolean( idDplc, true );
executeAction( idMrgV, desc2, DialogModes.NO );
// Move Active Layer to the Bottom of LayerSet "process"
var activeLayer = activeDocument.activeLayer;
    var processFolder = activeDocument.layerSets.getByName("process")
    activeDocument.activeLayer.moveToEnd (processFolder);
Now I would like to add a conditional to check, whether or not the "process" layer-set exists and if it does not, create it. This should look something like this:
// Process Image Capture
// V 0.3
// PIC Stamps Visible (creates a new layer that combines all visible information in flattened form) and moves that to a "process" Layer Set.
// Layer is then hidden.
// If Layer Set is not there, it will be created.
#target photoshop
app.bringToFront();
// Check for "Process" Layer-Set on root. Create, in case it is not present.
if (!activeDocument.layerSets.getByName("process")) {
     activeDocument.LayerSets.add();
     activeDocument.LayerSets.name = "process";
/* else {
// Stamp visible Layers
var idMrgV = charIDToTypeID( "MrgV" );
    var desc2 = new ActionDescriptor();
    var idDplc = charIDToTypeID( "Dplc" );
    desc2.putBoolean( idDplc, true );
executeAction( idMrgV, desc2, DialogModes.NO );
// Move Active Layer to the Bottom of LayerSet "process"
    var activeLayer = activeDocument.activeLayer;
    var processFolder = activeDocument.layerSets.getByName("process")
    activeDocument.activeLayer.moveToEnd (processFolder);
    activeDocument.activeLayer.visibility = false;
The condition seems to be what causes the problem, but I have no idea how to fix it. Can somebody help?

Ok, here is the script that does the deed, it requires an additional function to catch what getByName() returns.
// Process Image Capture
// V 1.0
// PIC Stamps Visible (creates a new layer that combines all visible information in flattened form) and moves that to a "process" Layer Set.
// Layer is then hidden.
// If Layer Set is not there, it will be created.
#target photoshop
app.bringToFront();
// Check for "Process" Layer-Set on root. Create, in case it is not present.
if (!hasRootLayer("process")) {   
    var addedLayer = activeDocument.layerSets.add();
    addedLayer.name = "process";
// Stamp visible Layers
var idMrgV = charIDToTypeID( "MrgV" );
    var desc2 = new ActionDescriptor();
    var idDplc = charIDToTypeID( "Dplc" );
    desc2.putBoolean( idDplc, true );
executeAction( idMrgV, desc2, DialogModes.NO );
// Move Active Layer to the Bottom of LayerSet "process"
    var activeLayer = activeDocument.activeLayer;
    var processFolder = activeDocument.layerSets.getByName("process")
    activeDocument.activeLayer.moveToEnd (processFolder);
    activeDocument.activeLayer.visibility = false;
// Function to check whether "process" layer exists, passes result back as a boolean
    function hasRootLayer(layerName){
    var hasProcessLayer = false;
    try{
        hasProcessLayer = (typeof activeDocument.layerSets.getByName(layerName) != "undefined");
    }catch(e){}
    return hasProcessLayer;

Similar Messages

  • Move Custom Value Sets and Custom Concurrent Programs from Dev to Test

    Hi,
    Friends,
    I want to move the Custom Value Sets and Custom Concurrent Programs from Development to Test Instance...how can i Acheive using FNDLOAD....
    At a time single stroke can I move them using FNDLOAD...
    Please help me in this regard....

    You can do it with FNDLOAD.
    http://appsdbablog.com/blog/2006/09/fndload.html
    Aviad Elbaz

  • Sequentially number layer sets

    Great, apparently if I add Tags it wipes out my question and just posts the tags as the message body. Brilliant. Re-typing...
    I have a large and growing PSD with many layer sets (folders of layers.) I need to sequentially number the layer sets, but preserve their existing names. For example, layer set named "foo" should be renamed "001 foo",  the next layer set "bar" should be renamed "002 bar" and so on.
    Doing this manually would take a long time, but more importantly, as I add new layer sets and reorder them I don't want to have to do it all over again.
    I am not a programmer so I don't know where to begin writing this script. Google helped me find a few scripts that do something similar, but not exactly what I want. Most of the scripts I found will rename layers, but I need to rename the layer sets (folders.)
    If it helps, I'll explain what I'm ultimately trying to do. I want to export each of my layer sets to an image, and have those images numbered sequentially based on the order of the layer sets. I already found a script that will export all of my layer sets to JPG images, so if I can find the script described above, I should be able to do this in two steps (1. rename layer sets, 2. export images.) If there is an easier or better approach, let me know.
    I have Photoshop CS5 on Mac OSX Lion.
    Any help is appreciated! Thanks!

    Could you try this?
    // add sequential three places number to beginning of layersets’ names or change existing three places number;
    // 2012, use at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theSets = collectLayerSets(myDocument);
    for (var m = 0; m < theSets.length; m++) {
              var thisSet = theSets[m];
              var myRegExp = /^\d{3}/;
              var theNumber = theSets.length - m;
              if (thisSet.name.match(myRegExp) == null) {thisSet.name = bufferNumberWithZeros(theNumber, 3) + " " + thisSet.name}
              else {thisSet.name = thisSet.name.replace(myRegExp, bufferNumberWithZeros(theNumber, 3))}
    ////// function collect all layersets //////
    function collectLayerSets (theParent) {
              if (!allLayerSets) {var allLayerSets = new Array}
              else {};
              for (var m = theParent.layers.length - 1; m >= 0;m--) {
                        var theLayer = theParent.layers[m];
    // apply the function to layersets;
                        if (theLayer.typename == "LayerSet") {
                                  allLayerSets = allLayerSets.concat(collectLayerSets(theLayer))
                                  allLayerSets = allLayerSets.concat(theLayer);
              return allLayerSets
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
              var theNumberString = String(number);
              for (var o = 0; o < (places - String(number).length); o++) {
                        theNumberString = String("0" + theNumberString)
              return theNumberString

  • Photo changes tones when i add a new Stamp Visible Layer!

    When i make adjustments like for example adding a Posterise layer! lets say i would like to Stamp visible, shift+alt +command+E for mac. My photo changes tones slightly!!
    Why does this happen??

    Does it happen if you first set the photo to 100% view (actual pixels) and then do Stamp Visible?
    View>100% or double click on the Zoom Tool in the toolbox.

  • How to paint-in visibility of a layer

    I recently upgraded to cs5 after effects after years of using earlier versions.
    It is a normal part of my working procedure to use a white solid layer as a track matte in order to reveal or hide the layer beneath
    it by painting in the invisible solid layer with Vector paint in the composition window.
    This means I can paint directly over the underlying image and brush-in the visibilty of the hidden layer.
    How do I achieve this now that vector paint has gone and the ability to paint in the composition window is also gone?
    It is no use to me to have to paint in a layer window when I cannot see the underlying layer beneath my paint strokes.
    How do I achieve this basic requirement?
    Thanks for any responses
    Geoff

    Hi Rick,
    Many thanks for trying to help me here.
    I don't need to see the layer i am painting on, i need to see the underlying layer.
    If for instance i have an adjustment layer with say curves applied to it. I want to be able to brush in and out that effect to the underlying layers and see the result as i paint.
    This is a pretty basic requirement that has been easy in all versions of ae up to the current version, by simply painting in a white solid track matte layer in the comp window so you can see all layers beneath being affected in realtime as you paint.
    How do i do this now that painting on a layer in the comp window is no longer possible?

  • Stamp Visible not allowing me to make adjustments

    I'm using Photoshop CC. After using a process known as frequency separation the stamp visible layer does not allow me to use any tools to make adjustments. Is this a bug or am I doing something wrong?

    I think I discovered what my problem was caused from. When using the frequency separation technique I used on the top layer an apply image command which looks like a high pass filter has been appleied. When setting blend mode to linear light on screen I get an image which no longer looks like it is being covered by 50% gray. When attempting the stamp visible command on this layer Photoshop interprets the top layer as hidden thus causing my problem with the stamp visible layer. On top of my last frequency separation layer I added a curves adjustment layer and immediately applied the stamp visible shortcut which created a layer where the previous layer is no longer hidden and I'm able to use tools for further adjustments. Short version I was screwing up.

  • Stamp Visible - Save Layers

    In their books, Martin Evening and Vincent Versace recommend using Stamp Visible and not flattening layers so that the layers will be available for re-editing.
    It appears to me that if layers are stamped into a new layer, the stamped layer and subsequent layers must be deleted in order to re-edit the layers that were stamped.  This results in the layers not being re-editable along with creating huge file sizes.
    I may be misunderstanding the use of Stamp Visible layers.  Please explain where my misunderstanding is, and give examples of how saving layers that have been stamped can be used in an efficient workflow, taking file size into account.
    Thank you.

    Haven't looked at the book, but the terminology you're using, "Stamp Visible layer" isn't ringing any bells for me...  Is this a term the authors have coined?
    Are you describing the technique where you create a transparent layer over the top of your image, then clone / fill / paint on it to correct defects in the image?  You end up with the original image and an "acetate-like" layer over the top of it where you have just the corrections.  You can, for example, blink this layer on and off to see all you've corrected.
    I suppose you can erase just parts of it easily enough (Eraser tool) and re-correct just those parts.
    I don't usually work that way myself, but I do do it now and then (e.g., when turning a photo into a painting with the mixer brush), and I have seen others do so on occasion.
    -Noel

  • Layer mass will let paint black to reveal but I click on white and paint it won't conceal

    With my layer mask when I paint with black it reveals but when I paint in white it won't conceal.

    t5179 wrote:
    You all not understanding I was able to switch between to either hide or reveal then I was only able to reveal my brush size is the same and my flow is the same but it not working when switch to white.
    It could be your not understanding what we write either. Many here are experts on using Photoshop and masking. It clear Masking is not working for you the way you want  the way you state it use to work.  Therefore something has changed in your setup.   You stated that black use to reveal and and white hide.    In reality black does both hides and reveal. It hides areas in the layer the layer mask is on which reveals what is in lower visible layers.   You state white reveals  again it does both it reveals and it hides.  If the current layer mask was hiding area in the layer its on which reveals what is in lower visible layers when you paint with white it will hide what is in lower layer by revealing what is in the layer it on. Layer masks are like a stencil Black cuts out what is in the layer white leave what is in the layer there. Also visible layers above a masked layer can hide all layer below and any effect a lower layer mask may cause.
    As Noel wrote some screen grabs showing your image window, layers palette showing layers and target layer mask, tool  pallet and tools option bar for your brush tool active and the areas your painting Black and White  and will enable some here to help point the way and shade light on your problem.

  • Process is not visible in BPM Workspace in Application panel 2

    Hi dear developers,
    I had a problem about BPM process. I was trying to implement this tutorial -> http://st-curriculum.oracle.com/obe/fmw/obpm/11g/r1/firstProcess/firstprocess_obpm11g.htm#t3
    And all the steps had been done. But the deployment step, i couldn't see my process on the BPM Workspace. I searched the other opinions in the forum. It's completely same with this thread -> Process is not visible in BPM Workspace in Application panel
    Nevertheless, couldn't find anything helpful. Could you help me please?
    Thanks in advance.
    Erdo

    Hi Erdo
    I hope you already ran the demo community seed app to create all the test users and groups etc in the default authenticator. If not, please see this below post:
    Re: New to BPM: How to get the tasks in the Workspace
    1. First login into bpm/workspace with domain adminstrator username/password. Then on right side, click on Adminstration link and see if you could see all the roles related to hello world app and also the users that you added to those roles.
    One other very basic thing is, you should and must deploy the TaskForms project that has all the taskdetails UI pages. I hope you did this while deploying the workflow and checking the check boxes to deploy other ui projects also.
    If seeding and getting demo uses is confusing, you can always use your own users. From weblogic console, create some extra users like weblogic1, weblogic2, weblogic3 etc with some password. Then use these users to assign to the roles from hello world app. Then login with these users. This will also work.
    Thanks
    Ravi Jegga

  • WM: Return Purchase order process issue-Using 161 movement type

    Hi
          i did return PO with using 161 movementype .when i do GRN, WM is appear 601 movement type and storage type is 916 .
          i  think is wrongly triggered the movementype and storage type 916 .
          so where i made mistake the configuration.pls suggest me to do the configuration.
        with regards
       dinesh
    Edited by: code acess on Jul 8, 2011 7:50 AM

    You can ask SAP AG why it was designed this way - I already told you my explanation I have no better thoughts.
    Just remark: WM-mvt 601 is not only related to sales process. Just check the WM/IM interface and you will see it (e.g. IM-mvt 261, IM-mvt 541 are assigned to it). I think it generally means outbound delivery process.
    If the stock is not in the right place and system cannot find it based on the search strategy you use, you have to enter the data manually.
    Edited by: Csaba Szommer on Jul 8, 2011 11:41 AM
    Edited by: Csaba Szommer on Jul 8, 2011 11:48 AM

  • How to move a layer to a X/Y position with VB/DOM ??

    Hello,
    I try to move a layer on a picture to a position X/Y. Up to now, I'm only able to move for a relative mouvement from initial position, but I would like a move with the corner of the picture as reference.
    The need : To place on the doc1 (big doc) a small picture (doc2). I use copy/paste to have the small picture as a new layer on the big picture
    I use VBA-excel to open Photoshop and run the differents step.
    What I suceed to do :
    PS = CreateObject("Photoshop.Application")       ' Launch PS : OK
    'Open the 2 doc (doc1 : big picture, doc2 : small picture) : OK
    'go on the small picture and select/copy the picture : OK
    PS.activedocument = PS.documents(2)
    PS.Documents(2).selection.selectall
    PS.Documents(2).selection.copy
    'go on the big picture and paste as a new layer : OK
    PS.activedocument = PS.documents(1)
    ps.documents(1).paste
    'find the information about the new layer : HERE IS THE PROBLEM
    'move the layer in the correct position after compute the need move : OK
    ps.document(1).translate 20,20
    I found this information for another script language
    >var currentBounds = targetDoc.activeLayer.bounds;// get the bounds of the layer - which is the activeLayer of the targetDoc
    >var offsetX = new UnitValue( newX-currentBounds[0].as('px'), 'px');// the required offset needed for move
    So I think it's possible to get the bound of the mayer, but I don't know how to write it in VB
    The other solution is to find a "translate" method which use the destination point x/y without using initial position (absolute coordinate), but i don't find this kind of method.
    Thank's for any help

    Hi again,
    Thanks for the reply...
    Mads wrote in news:506500000005000000A6110100-1042324653000
    @exchange.ni.com:
    > It a "Current VI's path constant", you can find it on the file palette
    > under constants. It'n not really constant as it will always give the
    > path of the VI it's in...a useful reference.
    Oh, it's not what I'm looking for then I've got a complex script parser
    which is fully multitasking and re-entrant so I can run multiple scripts in
    parallel. (The scripting languauge is just a high level access to some
    functions of my program so that non-LVers can still have a degree of
    programmability)
    Currently every time I call my re-entrant SubVI I have to pass it its own
    VI Reference from the Open VI Refere
    nce with "prepare for re-entrant" bit
    set.
    Is there an equivalent constant anywhere "Current VI's VI Reference"? Of
    course I can't reference by path, as I can have 20 of the same VI running,
    all with their own Reference and execution space. It gets very messy when
    my VI calls itself, or I have to pass the reference to other places.
    Thanks again,
    Andrew

  • DOCUMENTATION OF GOODS MOVEMENT

    How the documentation of goods movement is made active?

    Hi,
    In t.code opl8 for the order type you have to select the necessary options for doc to be active.
    Regards,
    SDS

  • Business Process Documentation

    Dear All
    Business Process Documentation
    I just want to know foloowing thing sabout Business Process Documentation.
    do yuo know where there any documents about Business Process Documentation and system log ?
    Edited by: Koji Watanabe on Feb 16, 2012 1:52 AM

    Hellow Watanabe-san
    Could you explain little bit mroe about what you are looking
    for ?
    Are you looking for the way to document Business Process in SolMan ?
    Or
    Are you looking for the way to monitor your business process in
    the backedn system ?
    The link that vasanthgobi mentioned is the SAP help on business
    process monitoring.
    Documentation topic
    In SAP Solman, you can document your business process in following
    2 area. Project area and Solution area. Project area is mainly used
    for implementation phase or initial documentation. Solution area is
    used for operation phase.
    And to support the documentation, SAP Solman provides several
    supporting tools for project area (you can copy the document in
    project area to solution later).
    In SolMan 7.1, if you want to document your business process,
    you may have following possibility.
    (General motivation for the documentation, please refer to the
    this blog http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/27054.
    And service Market Place
      http://service.sap.com/esacademy  (login in english)
      =>meet the expert =>Replay  Library.
      =>SAP Solution manager =>Solution Documentation )
    1.Upload via EXCEL (initial upload) and adjust in project area
    <Create templete via project, and create excel content locally
      and upload to project area>
    2.Maintain business process by using Business Blue print function
    <Using more graphical instead of SolMan screen>
      Also refer to these blogs
      http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/28304
      http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/27212
      And service market place link (webinar)
      http://service.sap.com/esacademy  (login in english)
      =>meet the expert =>Replay  Library.
      =>SAP Solution manager =>Business Process Blueprint
    3.Start initial documentation using RBPD content and adjust it in
    project area
    <SAP and IBIS develop analysis content based on the business
      process repository. By using this content, you can execute
      analysis for ERP and can get process utilization info.
      And you can create initial process from this>.
      Also refer to these blogs
      http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/26074
      And service market place link
      http://service.sap.com/rbpd
    4.Document manually in project area
    (Also ARIS integration is possible).
    In above case, if you use RBPD content, yes, you have some step
    related to the backend system (collecting process execution statistic
    in ERP). But in other case, you do not have any activity to ERP.
    For RBPD, it collects the data by using job, and you can control
    the number of WP to be used. The runtime will be depending your
    ERP system size.
    Business Process Monitoring topic
    In SolMan, there are business process monitoring functionality.
    Actually, it is not only the monitoring, but also you can use it
    for business process improvement.
    Basically in business process monitoring related tools,
    there are 2 main tools
    1.Business Process Monitoring tool - Monitoring
    2.Business Process Analytics tool - Analysis & benchmarking
    (Also there are dashboard).
    Business Process Monitorings enables monitoring of your core
    business process from technical and application side.
    The tool can monitor specific job(normal job/BW process chain),
    interface(IDoc, tRFC, qRFC etc), performance, and also different
    types of transaction document like sales order, delivery,
    purchase order, production ordet etc.
    For transaction monitoring, there are pre-defined template
    (best practice).
    Also it allows to monitor any table (z/y-table also).
    And the Analytics tool is the tool based on the BW.
    By using this, you can do benchamarking, trend analysis,
    backlog analysis.
    In more, I highly recommend to check the series of blog
    by Volker. And FAQ document.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251688346
    http://wiki.sdn.sap.com/wiki/display/SM/FAQBusinessProcess+Monitoring
    There are configuration document in service market place also.
    http://service.sap.com/bpm
    Hope this helps you.
    Best Regards
    Keiji Mishima

  • I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border

    I can't move a layer in photoshop CS6 Beta for Mac. I just get a red border around the canvas. Any Ideas?

    You might want to try posting in the CS6 forum.
    http://forums.adobe.com/community/labs/photoshopcs6?view=discussions

  • Time stamps in mov files created with iPhone and Vista

    This has to do with the time stamps for movies created with the iPhone 3GS. When I directly view the files on the iPhone in Vista, it populates the "date taken" field. However, when I copy the files from the iPhone onto my desktop computer, I no longer see the "date taken" field. Any suggestiosn?

    Just wanted to repost this question and see if anyone has any thoughts...thanks.

Maybe you are looking for

  • ACtiveX Control

    Error message when starting Quicktime after installation. "Could not load or find Quicktime ActiveX control" Running Vista 64 bit

  • Ipod firmware 1.1.2 (1.1.3??)

    Hiya and good afternoon everyone: My question (and I did a quick search for previous posts): I am currently on firmware 1.1.1 for ipod "classic" 160 gb with current iTunes Version 8.0.1. On two previous occasions, I updated to 1.1.2 which caused endl

  • After installing latest itunes on new PC unable to login to my account in iTunes Store

    Hi all, I get a new PC and wanted to use it with my apple devices. System is Windows 7 64 bit and, after installing latest iTunes I am not able to login to iTunes (needed to authorize my new PC and use it with my devices) Always get the message that

  • RAC DB Report

    Hi , We have a RAC setup in Production environment , and I am just a general user on RAC DB. I have to get Information about RAC DB,Instances,Nodes and other metrics. Now my question is 1: What are the Metrics to make Report of RAC DB. 2: how to coll

  • Home Sharing for 12 a complete mystery

    Can someone please explain how i pull across content from one authorized computer to a second on my Home Sharing?  There is no longer a Show or Import button on the bottom of the Itunes 12 menu and the new system is so overly complicated I can't figu