Feature Suggestion: ruler guides instead of grid in Lens Correction

In my work, I photograph two dimensional artwork in artist's studios or galleries which do not have the space, time,  or facilities to allow for perfect positioning when taking a picture. Since these photos are intended for print, it is essential that they are well aligned w/o being distorted. While just eye-balling works well for ordinary photos, these are doubly complicated because the image itself is contained within a four-sided shape that has to be "square."
I often need to use the custom tab of Lens Correction to adjust vertical or horizontal perspectives. In these cases, the problem isn't the distortion inherent in a particular lens, it is a problem due to the angle of the camera or to where I had to stand to take the photo, usually w/o tripod and often not hanging on the wall.
If I had the same kind of dragable guides I have in photoshop and could set them before starting, I wouldn't have to eye-ball it so much. I have to keep going back to PS to see if I nailed it and (usually) start over.  The grid is not much help, regardless of size, because I have to choose whether to position it for the horizontal line I'm trying to achieve or for the vertical, but not both. (Not to mention that dragging and positioning the grid isn't exactly a piece of cake!). If I could place four guides where I need them, I would be better able to tell how each nudge of the slider is affecting the image.
It's hard to describe the problem but, if you create a square custom shape then use the 3-d controls to turn it sideways a few degrees and tilt it slightly back, you see what I'm up against.

There would also be able to simply add the "perspective"as in Photoshop, probablyeasier to develop and integrate the interface.

Similar Messages

  • Is there a way to create guides within ruler guides or aligned to ruler guides?

    So I was wondering for my own sake if there was a way to create guides within ruler guides or have it align to ruler guides? I am working on this magazine where the layout has a ruler guides. Which is inside the margins. I'm guessing this is to ensure the content is safe and also leaving adequate room for folios and running heads. This leaves me with the inside of the ruler guide to create my own grid. I tried doing this by hand and it seems to work fine however I was wondering is there a way to align the guides/grid (columns and rows) to the ruler guides instead of the margin or page? This would be extremely helpful as doing it by hand is quite the task. I'm trying to personally see how many rows and columns I can get in for a verstatile grid that can be used for different sorts of layout. (although I guess the grid could too many rows and columns) Any help would be greatly appreciated.

    Is there a way to make it align to the ruler guides instead of the page and margin? example of what i'm talking about:

  • Ruler guides, again

    Yes, I did a search and I found a few discussions about ruler guides. But, nothing is working for me yet. All I want is ruler guides across ALL my pages, not just the page I created it on. I've tried using Control. Doesn't work. I've tried making sure the guide is outside of the page margin when I create it. Doesn't work. I've tried pressing "w" off and on. Doesn't work.
    Thanks,
    Peter

    P Spier wrote:
    Peter Britt Bailey wrote:
    Adobe InDesign Help.
    Are you referring to http://help.adobe.com/en_US/indesign/cs/using/WSfd1234e1c4b69f30d2a505 1004d659b1c-7fefa.html?
    Ruler guides are different from grids in that they can be positioned freely on a page or on a pasteboard. You can create two kinds of ruler guides: page guides, which appear only on the page on which you create them, or spread guides, which span all pages and the pasteboard of a multiple-page spread. You can drag any ruler guide to the pasteboard. A ruler guide is displayed or hidden with the layer on which it was created.
    I can see how you might have misinterpreted this by not reading carefully. Let me add a little emphasis to the critical wording: spread guides, which span all pages and the pasteboard of a multiple-page spread
    Note that it says spread, not, document. Further clarification should come fromthe next paragraph:
    New ruler guides always appear on the target spread. For example, if several spreads are visible in the document window and you drag a new guide into the window, the new guide becomes visible only on the target spread. (Emphasis added)
    Hi, Peter S.
    It seems that the Help's description favors a somewhat experienced user, rather than a newer user. Your clarifications are helpful; if you have a few spare moments, you might want to post a comment on the help page that suggest a bit of "disambiguation."
    Regards,
    Peter Gold
    KnowHow ProServices

  • Cannot add ruler guides in InDesign CS4. What am I doing wrong?

    I'm trying out InDesign CS4 on a trial basis. I have the Web Design CS3 suite and have no problem making ruler guides by clicking and dragging from a ruler. I'm wondering if there is a conflict between CS3 and CS4 products. I can't select the Selection or Direct Selection Tools by clicking on them. They do become active, however, if I use the keyboard shortcuts (V) or (A).  According to the 1-on-1 tutorial, my Selection Tool cursor should change from black to white when the guide snaps to an existing margin. My cursor turns white as soon as a click on the ruler. When I drag, nothing happens. When I release the mouse button, the cursor turns black again. With the Direct Selection Tool, the cursor remains white throughout the entire attempt. Nothing happens in either situation. This is a simple, getting started doc. There is only one layer, I'm in Normal view, and I have created margins and columns that are visible. I can select Baseline and Document grids and they work. Is this a bug or am I missing something?
    P.S. I've tried to attach the InDesign file (840 kb), but got the message, "The content type of this attachment is not allowed." Sheesh!

    You were right in your original assessment; it was a corrupt installation. There were several other things not functioning as designed. I just came upon the guides problem first. BTW, I found that if I expanded the document to where it covered the entire screen, the guides were visible. Unfortunately, the tool box and menus are covered, so that was a bit inconvenient. Just wanted to say thanks and tip my hat to you and the others who responded by offering help.
    One last thing, when I posted my original posting, I tried to attach the InDesign doc file I was working on and got a pop-up window saying that these type of files are not allowed. Am I to understand that you can't post InDesign files on the Adobe forum?

  • Change dpi for Ruler Guides

    Hello.
    I'd like to use exact size in dots when making layout for my document.
    Ruler Guide set to "px" displays pixel values for 72dpi, but I'll print the document in 300dpi. I'd still like to measure dots exactly, is there a way to change Ruler Guide pixels to 300dpi?
    Thanks in advance.

    Thanks for the quick replies.
    What I'm trying to do is to print enlarged pixel art illustrations, which are very low resolution images that are meant to be enlarged.
    The problem is, when we enlarge those low-res images, their new size must be exactly divisible by their original size. Let's say, if I have 7x7 picture (I know it's too small, just for the sake of example), it should have 14x14, 21x21 or maybe 70x70 frame, but not 22x22, since this will lead to scaling artifacts. The artifacts are only visible if you look very closely (or, alternatively, look from far away), but it appears that they are able to mess with pixel patterns slightly.
    In other words, each pixel art enlarged "pixel" should ideally have the same size in real dots, or else there'll be some approximations, which are harmful to clean pixel art. Not neccesarily, but it'd be cool.
    So, if it's possible, I'd like to define exactly how much points on print will the frame take in any given dpi (300 dpi is just an example).
    Eugene Tyson is pretty close with what I wanted to do. But it'd be even greater to position Ruler Guides using real points in their X and Y coordinates for given dpi, not only 72 dpi (otherwise I'll have to count all those grids manually). I guess that's impossible?
    Thanks.

  • Ruler guides are not exact, Can you Help?

    I'm dealing with a Block of text and the Frame is set to leading and the text is 10 pt and 11 pt leading. If i Drop a ruler guide on the baseline of the text I can put the continuation of the column in the next column and just line the top of the 2nd column frame to the base line of the next and the columns will line up exactly. my problem is about every 5th line of text I can't line the guide up exactly. It may be OCD but my lines are of by .0005 and I have to zero out the ruler guides nudge it .0005.
    I upgraded from indesign cs2 to cs5. In cs2 at 4000% view it was never a problem but now i waste time by having to zero the guide and type in the nudge in the controll pallete, before the upgrade this was never an issue.
    Is there something I'm missing?

    Excellent Idea, i set them up and they are working fine, I am able to snap to the grid. This is a great,  and negates the use and the time spent of laying down guides.
    But when the baseline grid is hidden I'm still not able to drop a ruler guide on the bottom of, lets say a serif on a lowercase "i" (this only happens about every 5th baseline, if you were to dray a ruler guide on 5 consecutive paragraph sentences and it seems like the one that don't work is the one i need, 50% of the time). With the baseline grid shown i shouldn't need the ruler guides as much, but it's still annoying that I can't do it. I've included a more Exaggerated close up of what I'm talking about. See how its just off on the 2nd line.
    I dont know if there is a fix? kind of a non issues with the baseline grid. Thanks for your help Peter.

  • Keyword Bugs and Some Keywording Improvement / Feature Suggestions

    Tagging Bugs and Some Improvement / Feature Suggestions
    Please excuse where I should use the word Tag or Keyword or vice versa!
    1.       BUG?    If a tag synonym is added or changed then all affected photos should be marked for re-publish.  I do not think this currently happens.   Should this possibly be considered a bug?
    2.       BUG?    When viewing a smart collection in a Flickr publish service and a new tag is added to a photo it is correctly moved to the “requires re-publish” section.   However … the thumb selection in the grid moves to the next photo, the loop view remains on the photo just tagged and the key wording still reflects the just tagged photo.    The selection shown in the grid appears to be wrong.      When working quickly this can result in tagging errors as the user looking on the grid believes he is working on the next highlighted photo in the grid.      This is surely a bug?
    3.       BUG?      A minor point and I realise this is probably not the correct way to do things … but a double word synonym entered with quotes for example “Ice Climbing” will create two tags “Ice” and “Climbing” at the flicker end of things.    Removal of this synonym and forcing a re-publish does not delete these two tags at the flicker end of things.    I may have miss-understood, but perhaps it is best for LR not to allow quoted tags? 
    4.       SUGGESTION      An easier and more powerful way to review tagging of current photos should be provided whereby it is possible to clearly see the current tagging of a photo and have immediate access to the keyword list at the same time to make corrections.    Having both the Keywording and Keyword List panels open in Library mode results in a lot of up and down scrolling for me and is a slightly inelegant UI in my opinion.   I would suggest it should at very least be possible to have the tags viewable in Loop info as an option - so long as no truncation is made and all tags visible.    Ideally a better way should be sought.
    5.       SUGGESTION      It would be very useful when reviewing tagging to select to show all photos in the currently selected folder or set which do not contain the selected tag.    Note, I don’t think this can be easily achieved by using a keyword filter and selecting all keywords and unselecting the tag of interest as the pictures may have many tags.    The same might be performed by textual based searches but this is inelegant and its slowness precludes a browsing approach.     For example – for me it would be useful to look at all my mountain shots in a trip which have not been tagged with “Glacier” and it will be immediately visually apparent where I need to make tagging corrections.    I would suggest a “Not” checkbox is made available on the top of each column in the library filter – this may also provide a great deal of power for other situations.
    6.       SUGGESTION      It would be useful to allow a means of showing all pictures with a certain tag but which have not been tagged yet with any children of said tag.   For example all pictures tagged with Glacier which I have not yet named the glacier by introducing a relevant child tag or selecting an existing child tag.    A similar situation occurs for wildlife and potentially many other scenarios … I would like to use a tag “Butterfly” which I can quickly use on my first pass… and then do the identification and child tagging on a second pass using appropriate filtering.   This allows for a step wise or “top down” approach to tag classifying things in a workflow.    I appreciate this can be achieved (as I do now) by using a child tag called “Unnamed butterfly” or “Unnamed Glacier” but it seems more powerful, elegant and generically applicable to be able to filter on a “not tagged with a child” basis.
    I apologise if I have missed the point on some existing functionality on any of these points and welcome any suggestions.

    This is a great post.
    I couldn't have written it myself better.
    I'm also in dying need of Korean input as I can't communicate with my Korean friends.
    But I second every point.
    I hope the tech teams are reading this.

  • How to change ruler guide to custom units

    I have changed the line grid to a custom size by this code:
    InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
    iUOMPref->SetVertCustomPoints(gridDivision);
    where gridDivision is my number of points. This works.
    Now I'd like to apply the same unit to the vertical ruler guide. The value is already applied to custom units, but the measurement shown is still millimeters.
    What is the right way to switch to custom units?
    Thanks!

    Unfortunately, the last change did not update the vertical ruler immediately. So I decided to use a boss command:
    /* set line grid to user defined size (gridDivision):*/
    InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
    iUOMPref->SetVertCustomPoints(gridDivision);
    /* set vertical ruler to user defined size:*/
    InterfacePtr<ICommand> smuCmd( CmdUtils::CreateCommand( kSetMeasureUnitsCmdBoss ) );
    if( !smuCmd )
        return false;
    InterfacePtr<IMeasureUnitsCmdData> smuData( smuCmd, IID_IIMEASUREUNITSCMDDATA );
    if( !smuData )
        return false;
    smuData->Set( pDoc->GetUIDRef(),
                    iUOMPref->GetYUnitOfMeasure(),
                       kRulerCustomMSBoss,
                       iUOMPref->GetTextUnitOfMeasure(),
                       iUOMPref->GetTextSizeUnitOfMeasure(),
                       iUOMPref->GetPrintUnitOfMeasure(),
                       iUOMPref->GetLineUnitOfMeasure(),
                       iUOMPref->GetHorzCustomPoints(),
                       gridDivision,
                       iUOMPref->GetKeyNudgeInc() ,
                       iUOMPref->GetPointsPerInch());
    if (CmdUtils::ProcessCommand(smuCmd) != kSuccess)
        return false;  
    Works fine.

  • How can I make the ruler guides work?

    I am working on a large document. For some reason, I cannot extend the ruler guides onto most pages. They will appear on some pages though. Does anyone know why this happens and how to fix it?

    If the mouse is over a page when you release, the guide will be confined to that page, so horizontal guides will appear only on one side of a two-page spread. You can hold Ctrl (Cmd) while dragging to make them extend across the entire spread and pasteboard, or releas the mouse over the pasteboard for the same result.

  • Changing ruler guide color not working

    Having an issue when I go to Layout > Ruler guides and change the ruler guide color, it doesn't update on the canvas and the color is still this mint green which is hard to see against a white background. Any idea on how to fix this?

    yeah i went into preferences and changed all the colors in there too, but the one for ruler guides isn't in preferences its under layout > ruler guides. not sure why its not updating

  • Error occurred in deployment step 'Activate Features': Feature with Id 'GUID' is not installed in this farm, and cannot be added to this scope.

    Really frustrated!!! Using SP 2010 with VS 2010. Created a simple project with just 1 elements.xml file for adding 2 columns. Scope of the feature is "Site". When I right click and deploy it gives below error.
    Error occurred in deployment step 'Activate Features': Feature with Id 'GUID' is not installed in this farm, and cannot be added to this scope.
    If I look at the CA, I see the wsp is installed but NOT deployed (Status = "Not Deployed", "Deployed To" = None). I have checked the GUID in the error and its my feature id.
    Please let me know what is going wrong here! Thanks for your help.
    Please mark as 'Propose as Answer' or 'Vote' as appropriate.

    Hi Sagir,
    Try to check the GUID in error message to see if it’s in Feature1.Template.xml file.
    For more information, please refer to
    http://markviky.blogspot.com/2010/09/error-while-activating-feature.html
    http://alltoft.wordpress.com/2011/06/13/sp2010-error-occurred-in-deployment-step-activate-features/
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • InDesign CS 4 reliable Ruler Guide locations in Rotate Spread View

    While working in a Rotate Spread View (90º CW) the X and Y location of the Ruler Guides will be no longer reliable until you Clear the Rotation.
    Sounds like a Bug or needs to be added in an update!

    They look reliable to me. The absolute coordinates don't change because you are just rotating the spread VIEW, not any positioning. If you rotate 90 degrees, the y ruler will now be horizontal and the x ruler will be vertical, but the zero point will remain in the same position on the page.
    That isn't to say it takes some getting used to. :)
    Peter

  • ITunes User Feature Suggestions

    I think it would be beneficial for Apple and the users to have a dedicated thread
    for User based feature suggestions ,So with this in mind I hope you add this as a sticky or ad this as a category all it's own .

    A built in album art/pdf. viewer : As Music makes it's change more and more over to digital distribution artists are making the art/packaging available in.pdf and ,or embed in the mp3's themselves however the user "experience" in this is laking .
    A built in viewer for the "digital booklets " and embedded art would add that missing streamlined sexy appeal we mac users are missing and accustomed to .

  • Script to crop (no delete pixel) snap to ruler guide

    Hi everyone,
    I manually make 1 ruler guide and automatically create 3 ruler guides. These 4 ruler guide form a rectangular.
    Could I have a script that crop my image (no delete pixel) to fit that rectangular formed by the 4 guides .
    Thank you in advance for your help!

    I had a fight scripting it. Strange thing were happing when I was testing. There seems to be a bug in scripting in cs6 -> CC 2014. Re-size layer seems to back up a history step. undoing the last step.  When I was using suspend history states I was loosing the last guide I set or the layer mask from my last test that I deleted the mask was restored and the script would fail.
    http://www.mouseprints.net/old/dpr/FitImageToGuides.jsx
    /* ==========================================================
    // 2014  John J. McAssey (JJMack)
    // ======================================================= */
    // This script is supplied as is. It is provided as freeware.
    // The author accepts no liability for any problems arising from its use.
    /* Help Category note tag menu can be used to place script in automate menu
    <javascriptresource>
    <about>$$$/JavaScripts/FitImageToGuides/About=JJMack's FitImageToGuides .^r^rCopyright 2014 Mouseprints.^r^rFour and only four guides are required</about>
    <category>JJMack's Script</category>
    </javascriptresource>
    // enable double-clicking from Mac Finder or Windows Explorer
    #target photoshop // this command only works in Photoshop CS2 and higher
    // bring application forward for double-click events
    app.bringToFront();
    // ensure at least one document open
    if (!documents.length) alert('There are no documents open.', 'No Document');
    else {
      // declare Global variables
      main(); // at least one document exists proceed
      //app.activeDocument.suspendHistory('Fix Image to Guides','main()');  // seems to be a problem layer is resize Photoshop back up a history step ?
    //                            main function                                  //
    function main() {
      // declare local variables
      var orig_ruler_units = app.preferences.rulerUnits;
      var orig_type_units = app.preferences.typeUnits;
      var orig_display_dialogs = app.displayDialogs;
      app.preferences.rulerUnits = Units.PIXELS; // Set the ruler units to PIXELS
      app.preferences.typeUnits = TypeUnits.POINTS;   // Set Type units to POINTS
      app.displayDialogs = DialogModes.NO; // Set Dialogs off
      try { code(); }
      // display error message if something goes wrong
      catch(e) { alert(e + ': on line ' + e.line, 'Script Error', true); }
      app.displayDialogs = orig_display_dialogs; // Reset display dialogs
      app.preferences.typeUnits  = orig_type_units; // Reset ruler units to original settings
      app.preferences.rulerUnits = orig_ruler_units; // Reset units to original settings
    //                           main function end                               //
    // The real code is embedded into this function so that at any point it can return //
    // to the main line function to let it restore users edit environment and end      //
    function code() {
      if (app.activeDocument.guides.length != 4) { alert("Four and only four Guides are required"); return; } // quit
      // get guides;
      var theVert = new Array;
      var theHor = new Array;
      for (var m = 0; m < app.activeDocument.guides.length; m++) {
      if (app.activeDocument.guides[m].direction == Direction.HORIZONTAL) {theVert.push(app.activeDocument.guides[m].coordinate)}
      else {theHor.push(app.activeDocument.guides[m].coordinate)}
      if (theHor.length != 2 || theVert.length != 2) { alert("Four Guides two vertical and two horizontal are required"); return; } // quit
      getTarget=getSelectedLayersIdx();
      if (getTarget.length!=1){ alert("The number of layers targeted is " + getTarget.length ); return; } // quit
      if (app.activeDocument.activeLayer.isBackgroundLayer ) { alert("Can not resize the background layer"); return; } // quit
      if (!app.activeDocument.activeLayer.visible ) { alert("Active layer is  not visible"); return; } // quit
      //if (hasLayerMask()) { alert("Active layer is  Masked"); return; } // quit
      if (app.activeDocument.activeLayer.kind == LayerKind.NORMAL  || app.activeDocument.activeLayer.kind == LayerKind.SMARTOBJECT && hasLayerMask()) { deleteLayerMask ();}
      if (app.activeDocument.activeLayer.kind != LayerKind.NORMAL  && app.activeDocument.activeLayer.kind != LayerKind.SMARTOBJECT )  {
      alert("Active layer is " + app.activeDocument.activeLayer.kind); return; } // quit
      // set selection to the ared defined but the guide lines the selectiom may get undone bt the bug in .resize() backing up a steo in histoty ???
      app.activeDocument.selection.select([[theHor[0], theVert[0]], [theHor[1], theVert[0]], [theHor[1], theVert[1]], [theHor[0], theVert[1]]]);
      // resize current normal layer or smart object layer to just cover selection canvas area aspect ratio and size and mask off any overflow
      var SB = app.activeDocument.selection.bounds; // Get selection bounds
      var SWidth = (SB[2].value) - (SB[0].value); // Area width
      var SHeight = (SB[3].value) - (SB[1].value); // Area height
      var LB = app.activeDocument.activeLayer.bounds; // Get Active layers bounds
      var LWidth = (LB[2].value) - (LB[0].value); // Area width
      var LHeight = (LB[3].value) - (LB[1].value); // Area height
      var userResampleMethod = app.preferences.interpolation; // Save interpolation settings
      app.preferences.interpolation = ResampleMethod.BICUBIC; // resample interpolation bicubic
      try {
      if (LWidth/LHeight<SWidth/SHeight) { // layer's Aspect Ratio less the Canvas area Aspect Ratio
      var percentageChange = ((SWidth/LWidth)*100); // Resize to canvas area width
      app.activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLECENTER);
      else {
      var percentageChange = ((SHeight/LHeight)*100); // resize to canvas area height
      app.activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLECENTER);
      catch(e) {
      app.preferences.interpolation = userResampleMethod; // Reset interpolation setting
      selectFront(); // Photoshop make top layer current when none are targeted
      code(); // Retry  with top visible layer selected targeted
      return; // rest would have been done during the retry
      app.preferences.interpolation = userResampleMethod; // Reset interpolation setting
      // Seems to be a bug in  resize() the document seems to first be backed up a step in history
      app.activeDocument.selection.select([[theHor[0], theVert[0]], [theHor[1], theVert[0]], [theHor[1], theVert[1]], [theHor[0], theVert[1]]]); // redo the selection
      align('AdCH'); // align to horizontal center
      align('AdCV'); // align to vertical center
      addLayermask(); // add layer mask
    // Helper Functions
    function align(method) {
      var desc = new ActionDescriptor();
      var ref = new ActionReference();
      ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
      desc.putReference( charIDToTypeID( "null" ), ref );
      desc.putEnumerated( charIDToTypeID( "Usng" ), charIDToTypeID( "ADSt" ), charIDToTypeID( method ) );
      try{executeAction( charIDToTypeID( "Algn" ), desc, DialogModes.NO );}
      catch(e){}
    // Function: hasLayerMask
    // Usage: see if there is a raster layer mask
    // Input: <none> Must have an open document
    // Return: true if there is a vector mask
    function hasLayerMask() {
      var hasLayerMask = false;
      try {
      var ref = new ActionReference();
      var keyUserMaskEnabled = app.charIDToTypeID( 'UsrM' );
      ref.putProperty( app.charIDToTypeID( 'Prpr' ), keyUserMaskEnabled );
      ref.putEnumerated( app.charIDToTypeID( 'Lyr ' ), app.charIDToTypeID( 'Ordn' ), app.charIDToTypeID( 'Trgt' ) );
      var desc = executeActionGet( ref );
      if ( desc.hasKey( keyUserMaskEnabled ) ) { hasLayerMask = true; }
      catch(e) { hasLayerMask = false; }
      return hasLayerMask;
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                   activeDocument.backgroundLayer;
                   selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                   selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
           }else{
             var ref = new ActionReference();
             ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
             ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
             try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
             }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;
    function selectFront() {
    // Alt+. shortcut select ftont visible layer
    var idslct = charIDToTypeID( "slct" );
        var desc250 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref207 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idFrnt = charIDToTypeID( "Frnt" );
            ref207.putEnumerated( idLyr, idOrdn, idFrnt );
        desc250.putReference( idnull, ref207 );
        var idMkVs = charIDToTypeID( "MkVs" );
        desc250.putBoolean( idMkVs, false );
    executeAction( idslct, desc250, DialogModes.NO );
    function deleteLayerMask (apply) {
    // Delet Layer mask default to not apply first
    if (apply == undefined) {var apply = false};
    try {
    var idDlt = charIDToTypeID( "Dlt " );
        var desc9 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref5 = new ActionReference();
            var idChnl = charIDToTypeID( "Chnl" );
            var idChnl = charIDToTypeID( "Chnl" );
            var idMsk = charIDToTypeID( "Msk " );
            ref5.putEnumerated( idChnl, idChnl, idMsk );
        desc9.putReference( idnull, ref5 );
        var idAply = charIDToTypeID( "Aply" );
        desc9.putBoolean( idAply, apply );
    executeAction( idDlt, desc9, DialogModes.NO );
    catch (e) {}
    function addLayermask(){
    // Add layer Mask
    var idMk = charIDToTypeID( "Mk  " );
        var desc52 = new ActionDescriptor();
        var idNw = charIDToTypeID( "Nw  " );
        var idChnl = charIDToTypeID( "Chnl" );
        desc52.putClass( idNw, idChnl );
        var idAt = charIDToTypeID( "At  " );
            var ref19 = new ActionReference();
            var idChnl = charIDToTypeID( "Chnl" );
            var idChnl = charIDToTypeID( "Chnl" );
            var idMsk = charIDToTypeID( "Msk " );
            ref19.putEnumerated( idChnl, idChnl, idMsk );
        desc52.putReference( idAt, ref19 );
        var idUsng = charIDToTypeID( "Usng" );
        var idUsrM = charIDToTypeID( "UsrM" );
        var idRvlS = charIDToTypeID( "RvlS" );
        desc52.putEnumerated( idUsng, idUsrM, idRvlS );
    executeAction( idMk, desc52, DialogModes.NO );
    // Un link layer mask just added fron the layers content
    var idsetd = charIDToTypeID( "setd" );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref1 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref1.putEnumerated( idLyr, idOrdn, idTrgt );
        desc2.putReference( idnull, ref1 );
        var idT = charIDToTypeID( "T   " );
            var desc3 = new ActionDescriptor();
            var idUsrs = charIDToTypeID( "Usrs" );
            desc3.putBoolean( idUsrs, false );
        var idLyr = charIDToTypeID( "Lyr " );
        desc2.putObject( idT, idLyr, desc3 );
    executeAction( idsetd, desc2, DialogModes.NO );

  • Who do you contact with Aperture feature suggestions?

    Who do you contact with Aperture feature suggestions?
    Anybody have Joe Schorr's email address?
    Photographer Brian Fischer, Atascadero CA
    [email protected]

    There's a "submit feedback" menu item in Aperture itself. Use that

Maybe you are looking for

  • Fremde Stichworte in Adobe Bridge

    Hallo! Ich habe folgendes Problem: Durch einen Crash habe ich die meine Stichwortdatei von Adobe Bridge CS3 leider unwiderruflich verloren. Dies bedeutet, daß Bridge mir meine Stichworte nur anzeigt, wenn ich eine bestimmte Bilddatei aufrufe. Ich muß

  • Any fix ? "The server responded with an error" in Calendar

    Is there any fix for this problem ? "The server responded with an error." "The URL https://calendar.google.com/calendar/dav/6h6i7ih9auji3e0um61atc857he15rej@import .calendar.google.com/user/calendar.google.com/calendar/dav/[email protected] r.google.

  • Problem mit öffnen mehrerer PDF's in Adobe Reader X

    Hallo Adobe Community Ich habe ein Problem bei einem unserer Kunden mit Adobe Reader X. Es besteht das Problem, dass das öffnen von mehreren PDF Dateien nur verzögert möglich ist. Es wird jeweils das erste angeklickte PDF ohne Probleme geöffnet und a

  • How to show the content for a perticular time period(consider 30 days)

    Hi, There is a requirement that content should reside the portal only for 30 days and then it should be archived. Archiving means that it should be searchable from portal but it should not be visible on the portal. How would that happen?. Kindly tell

  • Migration of Webi Reports from DEV To QA

    Hi , we are implementing BO for the first time using SAP BW data as the Source. we are done with the development of the BO webi reports .Now need to migrate the reports form Dev to test system. Can anyone send me a Procedure for mirgrating the Querie