Clipping paths to varnish layer

I'm trying to use an applescript that I found for CS2 to copy all images to a varnish layer, apply clipping path, convert to frame, delete image and then fill with color. I will also need to add a stroke and set the object to multiply. I'm thinking it will be better to do that with an object style. I'll put the original script below. I changed CS2 to CS5 but the only result I get is the new layer. Any help would be greatly appreciated.
tell application "Adobe InDesign CS2"
set myDoc to active document
tell myDoc
try
make layer with properties {name:"Varnish"}
end try
set theLinks to every link
repeat with i from 1 to count of theLinks
set parentID to id of parent of item i of theLinks
set oldPath to clipping path of image id parentID
if the clipping type of oldPath is photoshop path then
set oldGraphic to parent of item i of theLinks
set newGraphic to duplicate oldGraphic
set properties of newGraphic to {item layer:"Varnish"}
set newpath to clipping path of graphic 1 of newGraphic
tell newpath
set convertPath to convert to frame
end tell
set properties of convertPath to {fill color:"Magenta"}
delete graphic 1 of convertPath
end if
end repeat
end tell
end tell

I also found a javascript that works on selected images. It might be better to just loop that through all the images, but I'm not sure how.
Thanks!
if(app.selection.length == 1){
    mySel = app.selection[0];
    try{myClipping = mySel.graphics[0].clippingPath;
        if(myClipping.clippingType == ClippingPathType.ALPHA_CHANNEL ||
            myClipping.clippingType == ClippingPathType.PHOTOSHOP_PATH){
                alert("Clipping path name: " + mySel.graphics[0].clippingPath.appliedPathName);
        myFrame = mySel.duplicate(undefined,[0,0]);
        myFrame.graphics[0].clippingPath.convertToFrame();
        myFrame.graphics[0].remove();
        myFrame.fillColor = app.activeDocument.swatches.item("Registration");
        myFrame.select();
    catch(e){alert("There is no clipping path applied!");}

Similar Messages

  • Bring in another .psd file with the clipping path

    Okay, this client has a very odd request. They want a collage of images put together in one file and they want the clipping paths to be attached. Then it's to be saved as an eps file. I'd like to do this in InDesign and am going to be posting this same question there as well. I like that in InDesign, the clipping path stays attached to the image when you move it. However, is there a way to do this in Photoshop? I don't know how to bring .psd files into Photoshop along with their clipping paths. If there is a way to do this, is there a way to link the clipping path to the layer so that when I move the individual layers, the clipping path moves with it?
    Help would be greatly appreciated! Thank you!

    In Photoshop "Clipping Path" is a special kind of Path and limited to one per image and not linked to one Layer.
    A work-around to combine multiple images with individual Clipping Paths into one psd file with a combined Clipping Path could be
    • applying the Clipping Paths as Vector Masks to the images (flattened to one Layer or converted to a Smart Object each),
    • combining them and after positioning/transforming/…
    • copy/pasting the individual Vector Masks into one new Clipping Path.

  • How do I transform a clipping path and layer at same time?

    I have a bunch of images with clipping paths that need to be altered. Most images need skewed or distorted, and I can't figure out how to transform the path at the same time I transform the layer - so I do not have to create new paths. Thanks
    Working in Photoshop CS2

    I’m afraid You will have to employ a workaround.
    I would recommend applying the Path as a Vector Mask to the Layer (with the Path selected command-click on the Add Layer Mask-button in the Layers-panel), then transforming, subsequently duplicating the Vector Mask and removing it from the Layer.
    Or copy-paste it into the existing Clipping Path and then remove it.
    Some part of the procedure may be automate-able with Actions or Scripts and hopefully it will still save at least some time.

  • CS6 clipping path for layer group

    Hi
    In PS cs6 i cant find how to create clipping path for layer group (apply to folder from some shape layer with alt + drag&drop) created with pen, rectangle etc tools.
    Here is how it should look in cs6 but i don't know how to do that
    Thanx in advance

    Shape Layers’ Vector Masks don’t appear in the Layers Panel in CS6 (seems like a bad idea to me, but that’s the way it is now), so you could still select the Shape Layer with a Path Tool, select the Paths, copy, select the Group, paste, Layer > Vector Mask > Current Path or command-click the Layer Mask icon in the Layers Panel.

  • Trouble with clipping paths in Photoshop CS5

    Hello everyone, I am having trouble with clipping paths in Photoshop CS5. When I start a new path both path and anchor points are not visible. working on a Layer not background 0 and a Path Layer was created.I've also noticed that Photoshop started running pretty slow. All other programs are fine. Any Ideas or suggestions? Thank You

    edtGrfx wrote:
    Hello everyone, I am having trouble with clipping paths in Photoshop CS5. When I start a new path both path and anchor points are not visible. working on a Layer not background 0 and a Path Layer was created.
    What do you mean by "a Path Layer was created"?  Path are in the path palette, there is a path in shape layers and they is a path in a vector layer mask. I have never seen a reference to a path layer before this.  When a path in the path palette is selected activate it wall also be shown in the image window.  Does not matter if there is a targeted layer or not.  Control points may or may not be displayed. Using Path tool you can select and select segments and show some or all control points, Path are editable.
    View the following image in a new tab and scale to actual pixels for a clear image this site scales image poorly.

  • Trouble with clipping paths and expanding

    Hey y'all. Okay, so I have a Illustrator element that uses a clipping path.
    Even after I run "Expand Appearance" on it, it's not trimming the art to the bounds of the path.
    It's making for difficult to position correctly when copying into Photoshop as a Smart Vector or Shape Layer:
    And it isn't correct in After Effects either.

    What you are describing is just another example of the very common need to trim artwork (including filled, unfilled, open, and/or closed paths) without wrecking its already-applied Attributes, Appearances.
    As has been discussed many many times here, Illustrator simply does not provide that basic functionality...neither by its horribly-designed cutting tools nor through its problematic and caveat-riddled Pathfinders. Expanding a Clipping Path doesn't serve as a workaround for this long-missing functionality; nor does flattening transparency. You can't do it without resorting to the workarounds you've already tried or others that will no doubt be suggested.
    Once again:
    NONE of Illustrator's cutting tools (Knife, Scissor) can cut across artwork that includes multiple open, unfilled paths. Open unfilled paths are ignored by the Knife cut. The Scissor cannot cut across multiple paths at once.
    Illustrator's recently-added, very poorly implemented Eraser tool comes nearest to the needed functionality. It can at least cut multiple unfilled open paths without their becoming converted to unstroked, closed fills. But it unpredictably alters the shapes of remaining portions and has no means by which to accurately control a cutting shape other than rectangular.
    This is a prime example (there are others) of how Illustrator confuses and clutters the interface with multiple under-powered tools designed for similar functions, none of which measure up to a single tool properly designed for the same purposes in most other programs.
    Pathfinders are riddled with ridiculous caveats. Those which come close to providing the needed functionality are incapable of ommitting the unwanted deadwood and/or wreck strokes by outlining them.
    Illustrator needs a feature that allows any given path to be employed as either a selection marquee or a cutting path. And the cutting operation needs to act as expected regarding strokes as well as fills--as common in any other drawing program that does provide the long-missing functionality (most do; Illustator never has).
    JET

  • Possible bug in Clipping Path - weird behaviour

    I've got a bunch of images with clipping paths. All the same size. They're all book covers from a series.
    Well I applied a clipping path to all of them.
    Some when placed into InDesign will place fine with the clipping path applied.
    Others will not - and the only difference I can see is that:
    The images that import with the clipping path applied - in Photoshop they are as Layer 1 and a Background Layer
    The images that import without a clipping path applied - in Photoshop they are flattened.
    Is that the same behaviour for everyone else - would you consider it a bug?
    InDesign CS5 - Fully Patched
    Photoshop CS2 - Fully Patched
    Photoshop File Type> TIFF

    Yeh I can apply the Path after placing - Jongware wrote me script to apply the photoshop path.
    But I just think it's odd behaviour.
    On most of them that are flattened - there is no option to Apply the Photoshop Clipping Path - it's greyed out.
    Then on the ones with layers - the option is selectable.

  • How to create clipping paths shape like a slice of a circle?

    I want to make a DVD label by dividing the circle into 8 equal slices (like cutting a pie 4 times). In each slice I will put an actor's photo in it.
    I think I need to create 8 layers to house the 8 slices of photo, each layer gets a clipping path that is in the shape of a 45 degree slice of the circle. Once I have this setup I can paste photos into the layers and adjust the photos until it looks good in the confine of each slice.
    The question is how to create these clipping paths in the shape of a slice of the pie? I have already drawn a 120mm circle (using the elipse path tool) denoting the outside boundary of the dvd label. But I don't know how to cut it into 8 precise slices of 45 degree each. Help?

    Here's another way:
    Make a circle and a square that covers one quadrant of the circle. Select the square with the Path Selection Tool. Edit > Free Transform, using the reference point that corresponds to the center of the circle, and 90 minus the angle of the slice into the Horizontal Skew field. Hint: you can copy the results from the Windows Calculator and paste them directly into Photoshop for this. This will give you greater precision that you might care to enter by hand.
    Once you have committed the transform, select 'Intersect shape areas' in the option bar for the Path Selection Tool, and click Combine. There's your slice.

  • My Clipping Path isn't working? Please help...

    I am working in Photoshop CS4 on Mac. I have followed the steps below to create a clipping path:
    * Opened image that I want to add a clipping path to
    * Selected the part of the image that I wanted to clip (with the eliptical marquee tool)
    * On the Paths tab, selected "Make Work path"
    * In the pop-up box tolerance is set to 0,5pixels
    * I can now see an outline of a shape on the image
    * In the Paths tab - double clicked on the work path and saved the path as "Path 1"
    * Select the created path on the path tab and then chose "Clipping Path" from the tab dropdown
    * Left "Flatness" blank in the pop-up provided
    * The name "Path 1" now looks outlined in the paths tab
    I have tried to save the image as a JPG, PNG, TIF... RGB and CMYK... nothing seems to work. The entire image still previews.
    I turned off OpenGL and there are no layer styles applied to the image. There is only one layer in the file. I am very confused... this function used to work and now for some reason it doesn't. Are there any other settings linked to creating a clipping path that i may have changed by mistake without knowing it would affect this?

    Tiff format definetly works - i have used it in the past. I just tried EPS and the clipping path works - so thank you!
    It seems that I have been a bit stupid though... I just realised my error - to check if the clipping path was applying correctly, I have been opening the clipped image in Preview... It seems that Preview can't "see" the clipping path on a .tif and it "sees" the area outside the clipping path on an .eps as "flattened" (so i see a hard white background, when i am expecting it to be transparent). I just imported the .eps and .tif into Indesign and Illustrator and the clipping path applies fine in both cases. it seems that the real issue is between Mac and PC.... I am running Adobe on Mac and Corel Draw on PC... Corel Draw seems to have an issue with .eps and .tif files with clipping paths.
    png works in Corel Draw but transparency causes distortion for elements behind the transparent section... will keep trying :-)
    ...this is the story of my life! I hate working on PC but every now and then a client gives me a file where the artwork has been created in Corel Draw and I'm faced with these anomolies...
    Thanks for helping me to think this through logically!
    FYI on tiff format clipping paths...
    Source: http://www.espressographics.com/text/fileformats.html
    Photoshop EPS (.eps): EPS stands for Encapsulated PostScript format, which is based on the PostScript printing language. Most .eps graphics are created and edited in a draw (vector) application like Illustrator, and when you open an Illustrator vector .eps image in Photoshop, Photoshop will still convert it to pixels. As such, an Illustrator .eps doesn't have the same editable properties as a Photoshop .eps graphic so don't confuse the two. Photoshop .eps format is primarily used for creating images with clipping paths and monotone/duotones. It used to be that an image with a clipping path could only be saved as in .eps format in Photoshop. This is no longer true with later versions of Photoshop where you can save graphics with clipping paths in .tif format as well. When you create a monotone or duotone image in Photoshop, it is still best to save it in this .eps graphic file format, although .psd and .pdf options are also available.

  • What is the benefit of using clipping paths for a knock out?

    I found a posting saying they need someone to knock out the background of a lot of images using clipping paths. My question is, WHY use a clipping path? I know the rule of not using a selection tool such as the Magic Wand and then turning it into a clipping path and I know why that is. But if all is needed is for the background to be knocked out, why can't we just use the selection tool in the first place and just knock out the background from there? What is the benefit of that clipping mask?

    Usually the term Clipping Path refers to turning a path into a clipping path (in the paths panel) for use in older programs such as PageMaker that don't support transparency.
    For example if one wanted to import a file into PageMaker and only have a certain part of the document visible, one would make a path (or selection) around the object
    and turn the path (or selection) into a clipping path. Sorta the same results you see in photoshop using a layer mask or vector mask.
    Also clipping paths are used in certain printing workflows.
    Without seeing the posting it's hard to say what they meant and in photoshop 6 vector masks were labeled as Layer Clipping Paths not to be confused with real clipping paths.
    Old versions of photoshop also used the term Group With Previous to denote Create Clipping Mask.
    photoshop 6:
    Photoshop cs6:
    Anyway clipping masks and clipping paths are two different things in photoshop.
    layer masks, vector masks and clipping masks:
    http://helpx.adobe.com/content/help/en/photoshop/using/masking-layers.html
    an example of creating a clipping path:
    http://www.clippingpathspecialist.com/tutorials.html

  • Clipping path in AE?

    I'm missing the empirical mix here, but I have an Illustrator logo that I've imported and want to use it as a clipping path with an image file-JUST like photoshop, but it's not the same in After Effects. How do I create this clipping path? I tried all the alpha silo, etc but nothing seems to work.
    thanks,
    Dave

    A clipping path is equivalent to a Mask or a Track Matte in After Effects.
    To use your Illustrator logo as a track matte, place it's layer above the Fill layer, and then choose the Alpha Matte option from the Matte drop-down list on the Fill layer.
    For more information:
    http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7cf8. html

  • Clipping Path needed!

    I have been sent a psd file of a bottle (with a transparent background) that has already been deep etched. I need to create a clipping path so I can then save it as an eps to place in Indesign and send off to printer as a pdf. Currently the pdf when printed shows a fine black line around the bottle image.
    When I open the paths panel there is nothing, no path set up. 
    Can anyone please tell me how I go about the above?
    Thanks in advance.

    Try "Expanding" the background 1 pixel in the .psd file.  That should remove the black line around the image.  Zoom in and check, it could be more than 1 pixel.  The .psd should work in InDesign.  However, once you've removed the black line around the image, save the selection and invert it to create the path.  I ususally edit the path to make sure you've got an accurate clip.  Once you're satisfied, save it ( the selection ) as a Clipping Path.  Try removing the Black Matte in the Layer > Matting > Remove Black Matte dialogs.

  • Rotating an image within a clipping path in Photoshop CS5

    When you have taken a photo of an image, then open it up in     Photoshop and realise its on a bit of an angle but you make a clipping path     around it first and save it, then afterwards want to rotate it - Is there a     way of linking the path with the image layer so they rotate together in     one step?,
    Or can you only rotate the image layer first then the path separately as     thats what I ended up doing?
    Hoping someone can help me and answer my question

    If your clipping path is stored in the Paths panel, then no. But you can select the path then go to Layer > Vector Mask > Current Path. Not transform the layer and the path is transformed, too. You can then open the Paths panel and drag the vector path onto the New Path button to duplicate it and make it a clipping path for the entire image.

  • Clipping Paths and Smart Object

    When I place a photoshop eps into a PSD file the image doesn't come over with a transparent background. I do have an active clipping path, it showes up transparent when placed in Illustrator and InDesign. Am I mistaking in thinking that the image would be clipped when placed?
    I am using CC, but this problem has been in both CS6 and CS4

    PS operates on channel-based transparency. Just having a clipping path doesn't associate it with the pixel data. You will have to create a proper transparent layer and assign the path as the clipping path.
    Mylenium

  • Clipping Paths making new shape layers

    Hi,
    I have been having this problem for a while now since upgrading to CS6. When I create a new path on a layer to create a path it keeps creating the path on a new shape layer. This means, when I have a complicated path to create  I am ending up with 30+ shape layers that have to be selected and backgrounds deleted individually. With the older version I could keep adding shapes onto the same clipping path using the pen tool, however I cannot seem to understand how to reverse the change to keep the whole path on the one layer. Is there a way to do this?
    I would greatly appreciate any advice anyone could give.
    Thanks
    Jamie

    Hi,
    That's exactly what I was doing wrong. Thanks very much for your help!
    Thanks
    Jamie

Maybe you are looking for

  • Normal Mode vs Expert Mode

    Today I have found something really weird, that I would like to know if anyone knows the reason. I have a programmatic View Object with a transient attribute rendered as an InputListOfValues. This attribute has a related read-only View Obect which di

  • How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.

    How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.  I see how to change the size after the document is open by going to File/properties/initial view and saving this setting.  I want all d

  • Make datafield in datagrid a hyperlink to website

    I makes an HTTPService request which returns data to a datagrid. One of the returned fields is a website (without the "http://www" and ".com" so basically just the guts ("mywebsite"). I want to make the datafield an active link but do not know where

  • KSII (Price Calculation Results) - Actual

    Gurus When I execute the said transaction; result for activity prices is as follows: ACTIVITY TYPE 1 = RESULT OK ACTIVITY TYPE 2 = RESULT OK ACTIVITY TYPE 3 = RESULT WRONG ACTIVITY TYPE 4 = NO RESULT Same rule is assigned to all activity types in Cos

  • Batch Processor and Custom Functions

    Hi, We're using the 10.4.2 Batch Processor, connected to an Oracle 11g database to handle large amounts of data. Recently, four custom functions have been added to the rulebase. Nothing complicated, just some string manipulation stuff (trim whitespac