Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Apply Clipping Path Options to an Object Style?

Community Beginner ,
Nov 05, 2018 Nov 05, 2018

I'd like placed images to have their Photoshop clipping paths on. Rather than applying sixty times at a stretch for a catalog project, can I force an image box object style to retain this clipping path preference? Or is it completely defined by the placed image and, therefore, one can't set that in the Object Style? Thanks for any insight.

1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Nov 05, 2018 Nov 05, 2018

I don't want you lose your billable hours, but I suppose a script might be helpful.

(Question is: do your images have only ONE path which is the one that is supposed to be used?).

I wrote a simple script that you can run after having placed the images. It's simple and would probably need to be improved, but it's a start...

Check it out and see if it of any help (save your doc before running it )

if (app.documents.length > 0) {

    var myDocument = app.documents[0];

    if (parseFloat(app.version) < 6)

...
Translate
Community Expert ,
Nov 05, 2018 Nov 05, 2018

AFAIK it’s embedded in the image, but why do you need the clipping path? I haven’t used one since InDesign 2.0 was released with full transparency support.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2018 Nov 05, 2018

Because I'm a freelancer working on-site and they can't update beyond 2017 due to a custom plugin they use with a DAM and this is the way they do it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2018 Nov 05, 2018

Well, they're doing it wrong!

Seriously, though, why not discuss the workflow with them? The time savings going forward would seem to be worth it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2018 Nov 05, 2018

I agree, and I have, but they're not interested. They're all over-taxed and afraid to change the workflow that has been working for them. I'd rather keep the work and come up with simple changes that don't disrupt the workflow and speed the work than become a thorn insisting that they change the way their whole department is working.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2018 Nov 05, 2018

Sorry to hear that.

On the plus side, you get extra billable hours.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2018 Nov 05, 2018

It's true... I always sooooo much prefer "working smart" though... but yep, absolutely.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 05, 2018 Nov 05, 2018

I don't want you lose your billable hours, but I suppose a script might be helpful.

(Question is: do your images have only ONE path which is the one that is supposed to be used?).

I wrote a simple script that you can run after having placed the images. It's simple and would probably need to be improved, but it's a start...

Check it out and see if it of any help (save your doc before running it )

if (app.documents.length > 0) {

    var myDocument = app.documents[0];

    if (parseFloat(app.version) < 6)

        main();

    else

        app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "ClippingPath");

    function main() {

        var myDoc = app.activeDocument;

        var myGraphics = myDoc.allGraphics;

        var myImages = [];

        for (i = 0; myGraphics.length > i; i++) {

            if (myGraphics == "[object Image]") {

                myImages.push(myGraphics);

            }

        }

        for (i = 0; myImages.length > i; i++) {

            try {

                myImages.clippingPath.appliedPathName = myImages.clippingPath.photoshopPathNames[0];

            } catch (error) {}

        }

    } // main ends

} else {

    alert("No document opened\script ends");

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2018 Nov 05, 2018

Holy smokes, thank you! I'll need to search for a tutorial on how to implement but thank you very much! Hey, I'd rather find smart ways to work that contribute to the team here—shows I'm genuinely interested in improving their lives. Who wouldn't call back the freelancer who helps them streamline amiright?! Thank you, again!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 06, 2018 Nov 06, 2018

How to install scripts

And... I couldn't agree more with what you said about improving your client workflow!

However, I believe that Chad's and David C's suggestion to define clipping paths directly in Photoshop is great!

Setting an action script is relatively easy and the other good thing is that this workflow will crop the placed image to the limits of the path, instead of the entire artwork.

I would definitely give this suggestion a try.

Regards

Vinny

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2018 Nov 05, 2018

Hi Lenoxcreative:

Text Wrap clipping paths can be assigned via Object Styles, but I think you are talking about defining transparency for placed images with clipping paths? No, that can't be a controlled via an object style.

Now, how are you placing the images? Are you using Shift to access import options? If so, try this:

  1. Place the first image with File > Place (or Ctrl/Cmd D) and manually click Show Import Options.
  2. Choose the image and choose Image > Apply Photoshop Clipping Path, OK.

In my experience this remains sticky—while the Shift for Import Options does not. Place a few more images and let us know.

~Barb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 05, 2018 Nov 05, 2018

They're placed through a custom DAM thingie but essentially it's placed. And the method you outline is what I'm doing. I was hoping I could set an object style so that when an image is placed, the Clipping Path setting is applied rather than having to manually do it each time. I understand that the path information is in the image, not the holding box. But hoped it could be set as a relative thing.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2018 Nov 05, 2018

If you actually define your path as a clipping path when you create them in Photoshop, then InDesign will automatically apply that clipping path on place. I typically don't do this because I want to turn it on as needed or pick the path that I want applied, but defining the clipping in Photoshop should do the trick.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 06, 2018 Nov 06, 2018
LATEST

Good to know. Probably not the solution for reasons similar to those you describe. But helpful information for sure!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 05, 2018 Nov 05, 2018

If the path is defined & assigned in the Photoshop file as a "clipping path" it will automatically apply when placed in indesign.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines