Changing clipping paths

Hello all,
I have an idea for a script that bases on modifying the clipping path of an image. Basically what I try to achieve is that the image is visible only inside a selected path with some offset.
Given a document with one polygon and one image with applied clipping path I would expect this to work:
var aDoc = app.documents[0];
var aGrap = aDoc.allGraphics[0];
var aPol = aDoc.polygons[0];
var ePath = aPol.paths[0];
var aClip = aGrap.clippingPath;
ePath = aPol.paths[0].entirePath;
aClip.paths[0].entirePath = ePath;
aClip.insetFrame = -2;
ePath = aClip.paths[0].entirePath;
aPol.paths[0].entirePath = ePath;
But these lines
aClip.paths[0].entirePath = ePath;
aClip.insetFrame = -2;
seem to exclude each other. The insetFrame works fine as long as I didn't touch the path. And the changing of the path works fine but the insetFrame doesn't do anything except showing the spinning ball, that spins until I click somewhere on the pasteboard.
Am I thinking wrongly or is there a bug that makes my idea impossible?
Thank you
Gerald

The VB.NET project file has the .vbproj extension and is an XML text file. Therefore you can make a backup, then edit it using an editor, such as Notepad. Find the old references by path (probably in
<Reference> elements) and adjust them (perhaps using ‘Replace All’).
To avoid such situations if similar changes are expected again, then maybe consider mapping a drive letter, such as ‘S:’, to the server. (Ask IT Department). When server is changed, then the mapping will be adjusted, but the paths and references
will remain unchanged.

Similar Messages

  • How do I save a clipping path in Photoshop so that Quark gives me the option to change the path opti

    I created a clipping path on a photo, clipping out a person's head so that I can have the person's head show up over the masthead on a cover.
    But when I save the photo in Photoshop and then import it into Quark, the option where it says I can change the clipping options in Quark is greyed out.
    This is what it says to possibly fix it on the Quark help page:
    "You may want to choose "None" from the Clipping path pop-up menu when you save the image from Adobe Photoshop, so you can specify which path to use as the clipping path when you import the image into QuarkXPress. Or, you may want to choose a path from the Clipping path pop-up menu, so you can be sure only that path will be used to clip the image."
    I don't understand what that refers to....I can't find anything like that in the Photoshop options.
    My goal is to have the person's head over the text, with the rest of the photo still retained in the background. As it is now, I just get an import of the clipping path alone, with Quark substituting the background part of the photo with a white box.
    Thanks!

    <a href="http://www.pixentral.com/show.php?picture=1RxvmnVOUk55QdqS9tN4g7h79Bgef0" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1RxvmnVOUk55QdqS9tN4g7h79Bgef0_thumb.gif" border="0" />
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=17oVBzeqvr2YeN0BkvJUS0rFTjMqHh" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/17oVBzeqvr2YeN0BkvJUS0rFTjMqHh_thumb.gif" border="0" />

  • How do I change the color of the clipping path in CS5

    Just installed Photoshop CS5 I use the pen to create a clipping path for isolation. In CS4 the path line always contrasted with the background I was working on. In CS5 it is only gray so I cannot work on grey background pics as I cannot see the path. How can I change it back to multi colored like CS4?
    In CS4 I could change between gray & colored by enabling or disabling OpenGL Drawing from Edit->Preferences->Performance. This does not work for me in CS5. I really need the color as I am isolating a dark gray bike againsr a lighter gray wall. I keep loosing the curve handles against the wall.

    Which means that the wall isn't neutral gray, it has some color in it. Anyway, that's beside the point. In CS5 they've changed the way they display paths when OpenGL is turned off (probably changed to another API behind the scenes) which caused these problems. If i've understood it correctly, this isn't a bug per se, it's just a limitation of the API that they're using now (lack of blend modes or some such).
    If you want the old way back then you can try making a feature request/bug report here: https://www.adobe.com/go/wish

  • How do I change the color of the clipping path

    Just installed Photoshop CS4 I use the pen to create a clipping path for isolation. In CS3 the path line always contrasted with the background I was working on. In CS4 it is only gray so I cannot work on grey background pics as I cannot see the path. How can I change it back to multi colored like CS3?

    The paths are often hard to see against certain backgrounds and I don't know how they can be changed.
    If the path is hard to see, alter the opacity of the layer temporarily or apply a Levels adjustment layer.

  • At open, illustrator puts clipping path on images and slices it up HELP!

    I am still using CS2, but this same problem has happened when I open a legacy (older version) file in CS4.....   When I open a file, it all of a sudden has a clipping path around the image.  Also, it is slicing up some images randomly.  It is very strang and I can't explain it.  I just saved and closed the file yesterday and today I go to open it on the same computer and all the photos have these clipping masks around them and some are sliced into multiple pieces.  Can anyone help with this???

    It's easily explained: It is opening the data as if it were an EPS or PDF, so the fault is probably with the options you chose when you saved the files in
    CS2. Check them. also of course keep in mind that some specific features have notably changed, so it may do thius simply to retain appearance, which you can influence by setting teh respective prefs....
    Mylenium

  • How do I get clipping paths to work in PhotoShop CS5?

    I've always used clipping paths to pull-out parts of images that I then save as eps files and bring into other images.
    For some reason, I can't get CS5 PS to capture only the path I created, instead it continues to capture the entire image.
    I normally create a path with the pen tool, save the path, identify it with the Clipping Path from the dropdown, then save out as an EPS. Has worked thousands of times for me in previous versions of PhotoShop, but not with CS5.
    Anyone else encounter this problem or have a solution?

    Ok, I did that but it's still reacting the same way. So I need to start from scrtach and build a new path? That can't b
    e. When I make the change and hit selection I am still getting an inverted selection. See.

  • Why doesnt a sound play when I change the path?

    Hi. I am trying to play a background sound in my program and so far, after searching and reading lots of posts I finally have a "TaDa" sound playing once when the program starts. But what I want is a sound to be looped everytime I start a program. That sound will be in the same folder as the program.
    This is the code that I put in public static void main() to play the sound:
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    java_testt b = new java_test();
    b.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    b.startApp();
    private void startApp()
    {playStartupSound();}
    private void endApp() {System.exit(0);}
    private void playStartupSound() {
    Runnable soundPlayer = new Runnable() {
    public void run() {
    try {                                                                                    
    File tadaSound = new File(System.getenv("windir") + "/" + //This is the windows tada sound. All I want is
    "media/tada.wav"); //to change the path to another sound
    AudioInputStream audioInputStream = AudioSystem
    .getAudioInputStream(new FileInputStream(tadaSound));
    AudioFormat audioFormat = audioInputStream
    .getFormat();
    DataLine.Info dataLineInfo = new DataLine.Info(
    Clip.class, audioFormat);
    Clip clip = (Clip) AudioSystem
    .getLine(dataLineInfo);
    clip.open(audioInputStream);
    clip.start();
    } catch (Exception e) {
    e.printStackTrace();
    Thread soundPlayingThread = new Thread(soundPlayer);
    soundPlayingThread.start();
    Does anyone know how to choose another sound in the same folder as java_test and make it work with this code because when I change the ath it doesnt run.
    Thanks.

    Please put your code between the code tags. It's much better readable then.
    public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    java_testt b = new java_test();
    b.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    b.startApp();
    private void startApp()
    {playStartupSound();}
    private void endApp() {System.exit(0);}
    private void playStartupSound() {
    Runnable soundPlayer = new Runnable() {
    public void run() {
    try {
    File tadaSound = new File(System.getenv("windir") "/" //This is the windows tada sound. All I want is
    "media/tada.wav"); //to change the path to another sound
    AudioInputStream audioInputStream = AudioSystem
    .getAudioInputStream(new FileInputStream(tadaSound));
    AudioFormat audioFormat = audioInputStream
    .getFormat();
    DataLine.Info dataLineInfo = new DataLine.Info(
    Clip.class, audioFormat);
    Clip clip = (Clip) AudioSystem
    .getLine(dataLineInfo);
    clip.open(audioInputStream);
    clip.start();
    } catch (Exception e) {
    e.printStackTrace();
    Thread soundPlayingThread = new Thread(soundPlayer);
    soundPlayingThread.start();
    }

  • Why does Illustrator CS4 save pdfs with clipping paths and make rasters of gradient areas

    I am on a IMAC and upgraded to 10.6.8 Jan 2014. I am using CS4 Illustrator to create with. When i save my work as a pdf then reopen the pdf in Ill to make changes, the whole page has:
    A.) Multiple clipping paths around it
    B.) Most text has now become outlined. Not editable anymore.
    C.) Gradient areas have multiple clipping paths of the single gradient area
    D.) The gradient areas now become rasterized.
    This is very frustrating as now all of my marketing files, some 300+, are worthless. I don't know where to look anymore to find the problem.
    Please help.
    Thank you very much

    John,
    I have the presets as you have shown. I had been editing the supplied items as you suggested. Then figured i should ask the questions of those who are better than I.
    But still a bit confused as to why the new save places clipping paths around the document.
    Thank you John and Monika for your help.
    why does Illustrator CS4 save pdfs with clipping paths and make rasters of gradient areas
    created by John Mensinger in Illustrator - View the full discussion
    I do a save as "pdf" in the format pull down tab. I save to a folder on the hard drive. Where is the "Illustrator editability" check box? I presumed it is in Acrobat some where
    but i seem to be lost.
    It is in Illustrator's Save Adobe PDF dialog, which pops up before the saved file is written.
    https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6439399-644928/450-397/Untitl ed-1.jpg
    Sorry i didn't mention this, but this seems to have occurred when using images and text from provided pdfs.
    That's a critical fact. If you didn't do the original save, the above is moot, and it's too late to exercise any control over the save process. Someone else failed to save for editability. The only thing you can do is clean up/repair the content, (release clipping masks, rebuild rasterized elements, expand objects, etc.), and save correctly as AI. Then, if necessary, re-save as PDF with the correct settings.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6439399#6439399
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Illustrator by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • [CS2] [JS]  Apply photoshop clipping path

    Hi,
    Does anyone know how to apply the photoshop clipping path to all images in a document, If the image contains one ?
    I can't find a clipping path property of the graphic object in the reference manual...
    The loop structure itself is not a problem...
    for (var j = app.activeDocument.allGraphics.length - 1; j >= 0; j--) {
    Thanx
    Tim

    Hi Peter,
    I've just tried using...
    for (var j = app.activeDocument.allGraphics.length - 1; j >= 0; j--) {
    try
    var theEPSItem = app.activeDocument.allGraphics[j];
    var theClippingPath = theEPSItem.clippingPath;
    if ( ( theClippingPath.clippingType != ClippingPathType.photoshopPath ) &&
    ( theClippingPath.photoshopPathNames.length > 0 ) )
    theClippingPath.clippingType = ClippingPathType.photoshopPath;
    catch ( e )
    ... something strang happens when running the script. The clipping path settings of the EPS-files are changed and are correct. However, the result is not yet visible. So I still have to open the clipping path settings menu and click on the ok button... Then the result is displayed.
    Any idea's ?
    Tim

  • Automate selection of Clipping Path?

    I'm trying to create a droplet that will strip out the background of an image using the active Clipping Path regardless of the path's name (similar to the way InDesign automatically selects the active Clipping Path and ignores the other paths. So far I've only managed to automate the selection of a path by name, not by Clipping Path status. Many of the images I work with come from far off lands where they are not simply named "Path 1." Any ideas?

    When you select your pen tool, look up in the options bar. There are four path types. You want the fourth one, which cuts out donut holes. You may be able to simply select the paths and change their type to whichever one will cut out the holes for you, (make them all exclude overlapping, or make the inner paths subtract) or copy/paste them into a new path that was created while the fourth pen tool option was selected.

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

  • Linking Photoshop EPS Files with Clipping Paths

    I'm running InDesign CS4 6.0.3 on a dual 2GHz G5 with Mac OS X 10.5.7.
    We have a workflow that involves Photoshop EPS files being placed in InDesign with the object's clipping path set to Photoshop Path.  If the link is updated or relinked, InDesign no longer restricts the image to the boundaries of the path—either on screen or on export to PDF—even though choosing Object -> Clipping Path -> Options still shows the type set to Photoshop Path.  The only way that I have found to get the clipping path to fully apply to the image is to change the type from Photoshop Path to None and back to Photoshop Path, all while the Preview check box is on.  I tried different combinations of turning the Apply Photoshop Clipping Path option on and off at the time of initial placement and at the time of relinking with no effect on this behavior.
    Assuming that using a format other than EPS and using transparency rather than clipping paths are not in play at the moment, my questions are:
    1.  Is this a know issue with InDesign CS4?  If so, can we expect a fix soon?
    2.  Is there anything that can be done on the user side that is less cumbersome than the workaround described above?

    @Mark
    Photoshop PSD is fine for all raster work. But if you have vector masks, vector shapes or text in the file then saving as PDF would be the better option, you can choose to remove the white background when importing the PDF in the Show Options of the Place Dialog box.
    And that's null point anyway, as soon as you open a photoshop EPS file in Photoshop it rasterises everything. So what I said isn't a viable solution for this project. But to keep in mind that PSD will output as raster only and PDF can have transparency and raster + vector data.
    Just thought I'd through that out there.

  • [svn] 4631: Changed clipping in TextBox and TextGraphic.as

    Revision: 4631
    Author: [email protected]
    Date: 2009-01-22 17:00:39 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Changed clipping in TextBox and TextGraphic.as
    TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.
    TextBlockComposer now uses identical logic to do this.
    TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    Both good points I did not consider! (That's why I love these forums I have been bouncing offline. I'll give bouncing online a shot and see if that helps. Thank you for the advice! Any more ideas from anyone else out there, please do share.

  • [svn] 4699: Changed clipping in TextBox and TextGraphic.as

    Revision: 4699
    Author: [email protected]
    Date: 2009-01-27 15:57:02 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Changed clipping in TextBox and TextGraphic.as
    TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.
    TextBlockComposer now uses identical logic to do this.
    TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.
    NOTE: This change was previously committed as revision 4631 and then reverted as revision 4635.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as

    Both good points I did not consider! (That's why I love these forums I have been bouncing offline. I'll give bouncing online a shot and see if that helps. Thank you for the advice! Any more ideas from anyone else out there, please do share.

  • Clipping paths and coloring text

    So I'm putting a brochure together in InDesign and I'm trying to create an effect that I believe could be done easily with a clipping mask as I understand them to work in Illustrator. But this is not working like I hoped. The basic idea is that I'm taking a text box and wanting to create a mask around a specific section of the text so that it cuts through different characters. However, the text box will retains its properties and the text is fitted to the new box. How can I create a mask that doesn't change the shape?
    Specifically what I'm trying to do is have an unusual portion of text a different color to fit with the color scheme of the background. Right now the text and background have the same color a certain area and I want to have that areas text a different color. It cuts through the characters at odd angles so I can't gerry-rig something. Perhaps theres a better way than a clipping path?

    Here is what I'm trying to acheive. I can do it in Illustrator but I need InDesign to make this brochure. The color scheme is generally the same. I'm trying to use specific colors aswell. I'm not sure how to get exact CMYK values with blending modes. Also the blending would have to only effect the text and not the background color. It was something I tried but couldn't get the result I was going for. Now I realized I had wrong terminology and this might help clarify. I made a clipping mask in Il which masks out an area. I think think in ID it's a clipping path which creates a new path (causing the text to fit to the path) around the text. Hopefully this sheds more light on my conundrum and perhaps someone knows a way?

Maybe you are looking for

  • Open Sales Balance on Sales order

    Hi SAP Group - I have a couple questions about the settlement of manufacturing variance to COPA. When our settlement process is complete (production order and sales order both settled to COPA), there is a balance remaining on the sales order cost rep

  • Using Mail with a autoproxy

    At my workplace, for me to access the internet, I need to plug in an Ethernet cable and enter an autoproxy in the Firefox preferences. I am aware that to do this with Safari I need to enter this info using the advanced button in the network prefs pan

  • Deployment Error in JSP

    Hello, I a developed a JSP application and then deployed on j2eesdk1.4.2_08. It was properly deployed but when i am trying to execute the below error was showing. please help me to rectify the error. The Error IS : type Exception report message descr

  • No matching processes belonging to you were found

    I am working on a script that opens another script that gets stuck in the middle of a task. Then I use the first script to force quit the stuck script. It seems to be a quick easy fix for something I think is probably a bug in the OS. on run try disp

  • Re: Z3 Dual question

    Hi I purchased the xperia z3 two days ago, as I used it as normal the screen stopped working and dont give a picture, but I'm getting calls and messages and I have not used it underwater and the phone is not subjected to any strike at all. any ideas