Visible bit flag in layer record of PSD file format

Hi
I'm parsing PSD files, and retrieving vitals about the layers they contain. One of the things I'm interested in is whether or not a layer is visible. The Photoshop File Format guide I have states that it is a "visible" flag, but based on the results I'm getting, it appears to be a "hidden" flag instead - i.e. it is 1 if the layer is hidden, and 0 if visible. Can anyone confirm if this is indeed a misnomer?
Thanks
Danny

Here is how I am using it. In full
There was a space on the original code.
property type_list : {"TIFF", "JPEG", "PNGf", "PICT"}
property extension_list : {"tif", "tiff", "jpg", "jpeg", "png", "pict", "psd"}
set nLayersName to {}
set matchList to {}
set matchLayer to "Shadows"
tell application "Finder"
  set HotDestination to (((path to pictures folder) as text) & "HotDestination")
  set HotFolder2do to (((path to pictures folder) as text) & "HotFolder2do")
  set HotFolderDone to (((path to pictures folder) as text) & "HotFolderDone")
  repeat with tFile in (get document files of folder HotDestination whose name extension is in extension_list and (name does not start with "50" or name does not start with "MJC"))
  set nLayersName to getNameOfLayers(tFile)
  set matchList to isMatchLayer(nLayersName, matchLayer)
  if item 1 of matchList then
  move tFile to the folder HotFolderDone -- move to subFolder A
  else
  move tFile to the folder HotFolder2do
  end if
  end repeat
end tell
on getNameOfLayers(f)
  set matchCmdStr to " | awk '!/kMDItemLayerNames|\\)/ { sub(/[ ]+/, \"\"); print }' "
  set mdlsCmd to "mdls -name kMDItemLayerNames "
  return do shell script (mdlsCmd & f's quoted form & matchCmdStr)
end getNameOfLayers
on isMatchLayer(psdLayers, matchItem)
  set matched to false as boolean
  set matchCount to 0 as integer
  repeat with layer in paragraphs of psdLayers
  if matchItem is in layer then
  set matchCount to matchCount + 1
  set matched to true
  end if
  end repeat
  return {matched, matchCount}
end isMatchLayer

Similar Messages

  • Move DeltaX in style change record in swf file format

    Hi
    can anybody suggest that MoveDeltaX field in
    StyleChangeRecords of swf file format is a absolute value or a
    relative value?
    Document says its a relative! But what I observed by a sample
    file created by macromedia flash publisher is absolute!!
    If i need to scale a shape,Do I need to scale the
    MoveDeltaX...as we are doing for DeltaX and DeltaY of
    StraightEdgeRecord.
    thankyou.

    Hi ,
    Thx for replies , i followed as shown in above blog and went fine but there is mapping error as shown below,
    xml format after pick by sender file adapter
      <?xml version="1.0" encoding="utf-8" ?>
      <MT_DMS_FINAL>
      <Record>
      <Row>
      <FirstName>296501_000_00</FirstName>
      </Row>
      </Record>
      </MT_DMS_FINAL>
    xml file format from test tab in Message mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_DMS_FINAL>
       <Record>
          <Row>
             <FirstName>296501_000_00</FirstName>
          </Row>
       </Record>
    </MT_DMS_FINAL>
    See above xml first statment is different , how to make it equal
    Help
    Srini

  • Trying to change solid white to transparent in a black to white gradient in one layer of a psd file

    Hi everyone
    I have a multilayered psd file. All layers should remain opaque except the black to white gradient layer where I need the white to be transparent. So that when I oplace the final psd on top of a block of solid colour in Indesign the gradient shows the background colour through where the black fades off.
    Any ideas?
    thanks
    Mark

    Thanks for your reply. I am attaching a lowres psd file where I need to save it with top layer opaque and 'shadow' layer transparent. So that when I place it over solid colour in Indesign the gradient allows the background colour to show through where the balck is fading out.
    cheers
    Mark

  • Same Effects Panel parameters-different results on Tiff & Psd file format?

    Just a quick question to all the users and the Adobe Lightroom team & see if anybody has the same problem.
    I have one file saved in a Tiff format & the exact duplicate saved in a PSD, however when I sync the Effects Panel settings between the two, I get different results. The difference isn't black & white but clearly visible. The grain in the PSD file is less coarse & pronounced and the post crop vignetting is much more subtle. The color balance is also different. In other words every adjustments seems to be more subtle & less pronounced on a PSD file compare to a Tiff file.
    Not the end of the world but clearly something to keep in mind when syncing settings between the two formats and something that shouldn't be there in the first place.
    Thanks

    Now you are providing more detail.
    "... but lesser quality at least in terms of natural movement."
    It sounds very much like 11 is exporting 25p/30p which is why you see non smooth motion.
    25p/30p is the result of deinterlacing 50i/60i. When you take two FIELDS that are 1/50th or 1/60th apart and create 1 image, these images will be 1/25th or 1/30th second apart.
    You can create 1 frame through several methods.
    With iM09 deinterlacing occured only if you imported as LARGE, OPTIMIZED video, or used a function or FX that scales video. Perhaps with 11, Apple has decided that its time to FORCE any kind of interlaced video to be deinterlaced.
    In other words, LARGE and FULL only relate to size.
    One possible advantage is that Apple has finally decided to deinterlace using BLEND during import. This would look better, but it creates 25p or 30p video.
    They may hinting its time to buy a progressive camera.

  • Two questions about the PSD file format specicaition

    I'm a programmer dealing with a project to parse PSD files. When reading the official file format specification, I found that some fields of the file are not clarified:
    1. There is a rectangle structure containing 4 fields: top, left, buttom, right. I wanna know whether these 4 fields can be negative values and is there a rule that the buttom shoud be larger than the top and the right shoud be larger than the left
    2. The PSD file contains a color mode section. But if the color mode is RGB, the color mode section contians no data but a 4-byte length field whose value is set to 0. This is true for files in RGB mode 8-bit channel. But after convert the files to RGB mode 32-bit channel using photoshop, the whole color mode section is no long exist.
    These two questions may be somehow technical, I would be thankful if someone can give me a hand.

    1) was covered in the documentation at one time.  Yes, many of them can be negative, that's why they're signed values.  Valid rectangles will have the bottom greater than the top, and the right greater than the left. But you can also have empty rectangles, and sometimes invalid rectangles (because the values don't matter).
    2) Not sure what you're asking...  color mode is just a single enumeration for RGB, CMYK, etc.

  • PSD File formats

    I get a "Unsupported File Format" message when trying to read a .psd file with Photoshop Album Starter Edition 3.0. I have installed the latest update to the PSA SE 3 program. Is the .psd format supported by PSA SE 3?

    > Is the .psd format supported by PSA SE 3?
    No. This is only supported by the paid-for versions. PSA SE is really only intended for people starting out with digital photography and, hence, just supports camera formats [JPEG].

  • Psd file format specification how get the pixel values

    Hello
    I'm trying to convert psd to xml and get all information from layers
    I already got all necessary  info  but for example  the radius  in rounded rectangle is in math double format but I need to have it in pixels.
    I'm using Adope photoshop file format specification but  there is no information how to convert double values to pixels,
    The same is with colors that also given in double.
    I need to know how to convert these values to actual values
    Thanks

    Hi,
    You can't do that. You have to format the numbers before you print them. Take a look at the decimal format class:
    http://java.sun.com/j2se/1.5.0/docs/api/java/text/DecimalFormat.html
    /Kaj

  • Why can't I find and open a text layer on photo (psd file) for editing using an iMac?

    When I open Photoshop Elements 10 Editor to edit a text layer on a 511KB 412x292 psd photo the text layer is not shown.  How do I open the text layer?  How do I edit the text layer?  How do I save the finished work product?  The background layer is locked.  I can't unlock it.  Do I have to unlock first or do what?  I have tried any number of approaches none of which open the text layer for editing.  I would greatly appreciate help in resolving this issue. 

    How do you know there is a text layer? All the layers should be shown in the layers panel.
    The background layer is always partially locked and that has no effect on editing. You can ignore that.
    Would this be a comp layer or part of a layer group created in full Photoshop, by any chance?

  • Scripting to replace a layer in a psd file and save as a tiff for multiple images in a sequence

    I have over a hundred images, all the same size, that I need bring into photoshop as a designated layer, one at a time, flatten the image and save as a tiff file with a sequential number, then repeating the process. I have not used javascript before but it seems like it should work. I'm using CS5. Thanks

    It is possible to do that via Scripting.
    If you are unable to create such a Script maybe you should look up the chapter »Creating data-driven graphics« in the documentation.

  • How can I copy the layer from one .PSD file to another .PSD file?

    Hi,
    Actually it is shape and mask on one layer which I want to use it on my Photoshop CS4 file. If I select all the layer and copy it to my file it just copies the shape but not the mask. How can I copy MASK to my file?
    Please do hlep.
    Actually I am trying to copy the following layer.

    I believe the fastest way would be to duplicate the layer and send it to the other document. Open both images. Click the document tab of the document with the shape layer. With the shape layer selected in the layers palette, right click where it says the shape layer name. Select "duplicate layer" from the context menu. In the dialog that comes up, select the document you want to copy that layer to in the destination box then press ok.
    Alternately, you can open both images then pull the document frame tabs down to open both images in your workspace. Grab the shape layer in the document's layers palette by left clicking it...keep the left button pressed (hand icon should be a grab icon). While left button is still pressed, drag the shape layer over the receiving document. To make the shape layer register in the same location, press the shift key and keep it pressed. Release left mouse button while the layer is over the receiving document. Release shift key after you have released the left mouse button.
    This tutorial has a good photo reference for what I mean when I say pull the image tabs down so both documents appear in the same workspace...also shows drag/drop:
    http://www.photoshopcstutorials.co.uk/html/cs4_workspace___palette_notes.html

  • How do i make psd files transparent?

    How do i make psd images transparent when I drag and drop the layer onto the stage on flash cs6?
    For  example the way iv been doing it up until now was saving as a psd then  going to file import to library on flash. This is very very time  consuming and would be much easyer if i can just drag and drop the  photoshop layer onto the stage, but the problem is that the image gets a  white box around it and isn't transparent when i do that.
    Is there an option in photoshop or flash to fix this and make the background trasnparent?

    Reminds me of Yoshi from Mario Bros
    I know what you'd like to do but as the first reply mentioned, you can't do that. Until Photoshop is updated to copy with transparency intact to the Windows clipboard, you won't be able to do that. The reason I linked and showed a screenshot of the software GIMP is to prove that it's a Photoshop limitation, not a limitation of Flash or the Windows clipboard.
    Knowing that fact, there is no way for you to copy/paste drag/drop from Photoshop directly into Flash.
    Cartoon animating is essentially identical to how most games work. You create one large master image that contains all the possible variations of your subject (a face, a car, etc) and import that into a game. You do the same when animating, only you're keeping them all separate instead of one image.
    Knowing your experience with Flash is small and growing, I'm not going to make the most optimal recommendation. I'll stick to 2 things I mentioned before but elaborate on them.
    1) Save your assets to actual PNGs with transparency, then import into Flash.
    The reason I'd recommend this the most is because of Flash's update function (which I will explain) and it can be automated a bit (also will be explained).
    So I grabbed a Yoshi sprite sheet and say I made a new pose as you mentioned. In Photoshop I'd then select and copy this new pose alone, with transparency:
    As you know, once you do that you can bring up a 'New Image' dialog and it will already have the size of your copied pixels (with trimmed transparency):
    You can see the size is correct and the preset is clipboard. After that you just paste your new image in and turn off the background to gain transparency. Then you save it out as a separate file. I always use Save For Web for a pinch of file size optimization and overall control:
    Again, I realize this is a lot more than you want to do, but all of this can be automated which will be explained after making it virtually a single button push operation.
    Now we have the image as a separate new PNG image with transparency intact. This image should be imported into Flash's library:
    Now you both have a physical separate copy of this pose in a PNG file (which can be useful for many reasons) and Flash can use that file with it's built in update command for very quick changes.
    Now say you touch up a pose a bit. I'll make it really obvious and change the entire hue. You make your changes in Photoshop, follow the same process (even making size changes to the original image), eventually overwriting the PNG you created for that pose:
    Now in Flash, all you need to do is use the Update function. Right-click on the image in your library, select Update. Because this is a file with a physical location, that is all that is needed to change the image in Flash:
    The power in this is if you make sweeping changes to dozens or hundreds of PNGs, you can do this in one command in Flash. Select all the changed images and hit Update and all your changes will be done at once. You can't do things like this when you copy and paste directly into Flash.
    That said, almost all of the steps above can be automated using Photoshops Actions panel. No need to reinvent the wheel, Actions are fully explained here:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7448a.h tml
    I would recommend recording the action after you make your marquee selection around what you want to save as a PNG. Record right up to Save For Web and stop there. Then in the future you press the hotkey you assign and it will extract your selection, open a new document, paste it in, disable the background for transparency and bring you to the dialog you can name the image in. That's pretty easy and automated. Then just import into Flash and enjoy the benefits.
    2) Use Photoshop to create the assets, then a different program to copy/paste into Flash
    Not ideal to need 2 programs, however if you really want to copy and paste directly into Flash, this is the way to go. Get any program that can read the PSD file format, open your PSD in it. If you have enough RAM this really shouldn't be an issue (PS and GIMP side by side, same file open):
    As you make changes to the PSD, just hit reload or revert in your "copy with transparency" supporting program, copy what you need, paste into Flash:
    I'll explain some of the advantages of the previous workflow if you'd like but I think this is enough information overload for now.

  • Motion 4 + layered PSD files = me banging my head against the wall

    I posted this same question in the other M4/PSD file problem, but it was marked as answered (and the answer isn't working for me).
    I'm having a similar problem, but changing the resolution to the exact max of 2896x2896 doesn't work for me...and neither does any smaller resolution for some reason.
    Today, my layered PSD file is at least not experiencing the crazy tile-effect you included in your posted images, but it is now:
    1) always converting the top layer of the PSD file to a flattened image of the whole file.
    2) ignoring/mutating my alpha channel information, as areas that should be transparent and smoothly masked off are now opaque and/or blocky.
    My images are large, but I need to keep them large for dollying in real closely when i fly a camera through the scene. This is not a problem in After Effects, but I also need to do a lot of these 2.5D animations and several need particle/replicator effects... and I just work much much faster in Motion than AE. I don't remember having this problem with Motion 3 at all, but I can't say I've done a scientific comparison (nor do I want to uninstall M4 for M3).
    My system info can be found here:
    [IMG]http://i36.tinypic.com/2n744di.jpg[/IMG]
    [IMG]http://i33.tinypic.com/28cks42.jpg[/IMG]
    Original PSD file info:
    [IMG]http://i37.tinypic.com/amdr9v.jpg[/IMG]
    [IMG]http://i36.tinypic.com/99kv1g.jpg[/IMG]
    [IMG]http://i33.tinypic.com/3355w8x.jpg[/IMG]
    [IMG]http://i37.tinypic.com/1zb6y3m.jpg[/IMG]
    [IMG]http://i35.tinypic.com/9i5rhz.jpg[/IMG]
    Motion 4 info:
    [IMG]http://i38.tinypic.com/es40v4.jpg[/IMG]
    [IMG]http://i37.tinypic.com/2crva83.jpg[/IMG]
    [IMG]http://i35.tinypic.com/2e3popz.jpg[/IMG]
    [IMG]http://i37.tinypic.com/jrv8tz.jpg[/IMG]
    [IMG]http://i37.tinypic.com/28rh6hs.jpg[/IMG]
    Any help is appreciated!
    Thank you!

    I can't believe I didn't see that! I scanned them in 24-bit color but they are B&W images anyways, so I'm not sure why or how they ended up as 8-bit greyscale... maybe has something to do with the lousy HP dinosaur-of-a-scanner and it's weird proprietary HP interface (couldn't get it to interface with PS4 and don't use it enough to fuss with it).
    Thanks!
    I think that was about the quickest/least-frustrating help forum experience ever =)

  • Problem with ghosted lines in PSD files

    Hi,
    When I import PSD files into a DVCPRO HD 720p timeline I see a faint gray box around titles. I'm saving out as 8 bit (because 16 bit won't work) over a transparent background. aspect ratio is fine and I turn off maximize compatibility to increase quality. Very strange.
    Chase

    Yeah, I don’t think it’s the .psd file format… Try the .tiff Zeb suggested though.
    BTW I’m not sure “Maximize Compatibility” has much, if anything, to do with quality. More to do with file size and, well, compatibility…
    When saving a file with maximum compatibility, a full-size, full-resolution flattened version is saved along with the actual Photoshop (.psd) file. The flattened version ensures that other programs that can use the Photoshop format show the image properly.
    Please post back if you find a solution. I'm curious...
    EDIT Oh, could this be a render "thing"? And, are you viewing this on an external NTSC monitor?? It is an RGB file right???

  • Tips on using Aperture with Photoshop PSD files

    For all the people like me coming to Aperture with hundreds of Photoshop files, I would like to offer what I've learned so far in this area.
    1. If Aperture is importing your psd files but not showing an image, you probably need to change some preferences in PS. Apple has a tech note showing how to set the PS prefs here: http://docs.info.apple.com/article.html?artnum=302624
    Warning: all of the choices should be set to the ones onscreen, not just "maximize compatibility". And even then, I have found I can't simply re-save the file to produce the image Aperture needs. I had to use "Save As" from Photoshop, creating a new file, to import a visible image file into Aperture.
    2. Once the psd file is in Aperture, you need to realize that Aperture treats it as a master and won't let you make further changes to it. So, if you select this psd file and choose "Edit in external editor," Aperture will create a duplicate file and send that to Photoshop, thus protecting you. If you don't want two full-size masters of the same image in your library, there are two work-arounds.
    Very Important Tip: in the Aperture preferences you must tell Aperture to use the psd file format for the "Edit In External Editor" command. My copy of Aperture defaulted to the TIFF format, which is bad if you want your layers preserved as you should.
    One work-around is to import the psd file(s) as referenced masters. When you want to make changes to the file in PS, choose the file in Aperture and select "Show in Finder." From the finder, open the file in PS, make your changes, save, return to Aperture and update the preview if Aperture hasn't automatically done so. I don't like this method because it requires referenced masters and I want all of my files managed by Aperture.
    Second method works with managed masters in the Aperture library or referenced masters for that matter. However you cannot use this technique if a psd file in your Aperture library has versions you want to save. You can only do this with files that have not spawned versions which you want to keep. In other words, be very careful. Best to do this as shortly after the import process.
    Pick the file, choose "Edit in External Editor." Aperture duplicates the file and opens that in PS. Make some changes, save and return to Aperture. Notice the original master and this new changed version are in a stack. There should be a badge on the changed version indicating it has been edited externally. Here's the trick: Unstack the two images and delete the original master. Now you have only the externally edited master in your Aperture library. If you choose "Edit In External Editor" with this file, Aperture will not duplicate it and send the duplicate to PS, it will send the selected file.
    Apple has a useful FAQ on using "Open With External Editor" here: http://docs.info.apple.com/article.html?artnum=302820

    My suspicion is that Aperture is going to try loading the video card VRAM with your image .... 600Mb worth. So, paging in/out of system memory is going to be a royal pain.
    Check that you haven't any alpha channels saved, as Aperture will save them but will not composite them.
    Finally, to disable previews, uncheck in preferences, AND also uncheck Maintain previews under the library projects list gear icon.
    Cheers!

  • Transitions on psd files

    My wife has Adobe Premier, and she can put transitions between her PSD stills with no problem. I have Final Cut, and I can't. Is there's a certain file I can use that will be transparency, and be the same quality as Photoshop files/ with layers, and will allow me to put transitions on them. In other words, what is a quality file, that has transparency, that will allow me to put a transition between stills?
    Can you help me?

    The short answer is use PNG (which will not allow layers, but will allow transparency)
    There is nothing special about PSDs that prevent you from using transitions. You always need handles in order to do transitions. The problem is that you don't have handles. FCP imports PSD files as sequences. When you initially import the PSD file, a sequence is created based on the length of your Still/Freeze Duration in the User Preferences/Editing panel. By default it is set to 10 seconds. Each layer in the PSD file is translated to a video track in FCP within that sequence. You then have the option to take only the layer(s) you want and copy them from the PSD timeline into your edited sequence or to nest the sequence into your edited sequence. If you nest the sequence, the length of the clip will be limited to the length of the sequence (by default 10 seconds) so if you try to put a transition at the end of the nested sequence, you won't have any handles. The solution is to open the PSD sequence and make all the layers much, much longer. (Be aware that if you have that PSD sequence cut in to your edited sequence already, you will probably ripple everything in that sequence to the right.) Then cut in only the length you need, and you'll have all the handles you could ask for, which will allow transitions.

Maybe you are looking for