13 Replies Latest reply on May 13, 2008 11:46 PM by (Robert_Tkaczyk)

    CS2 JS: Transparency

      Is it possible to find out if a document uses transparencies or not?

      In the user interface I noticed that in the pages pallete, the page icon displays differently if it has a trnsparency (It displays a gray chequered pattern). Is it possible to use this somehow?

      Regards
      Norbert
        • 1. Re: CS2 JS: Transparency
          Is there anybody here who can help?
          • 2. Re: CS2 JS: Transparency
            Level 1
            you need to iterate all objects in indesign and check Opacity and ShadowOpacity

            from VB Object Browser:

            Property Opacity As Double
            Member of InDesign.Rectangle
            The opacity of the object

            Property ShadowOpacity As Double
            Member of InDesign.Rectangle
            The opacity of the shadow

            and in ObjectStyle you have:

            Property EnableTransparency As Boolean
            Member of InDesign.ObjectStyle
            Enable the transparency category of object style

            maybe something more - but I don't know what else

            robin

            --
            www.adobescripts.com
            • 3. Re: CS2 JS: Transparency
              Thanks Robin,

              Isn;t there a quicker way to do this rather than iterate every object?

              How about, in the user interface I noticed that in the pages pallete, the page icon displays differently if it has a trnsparency (It displays a gray chequered pattern). Is it possible to use this somehow?

              Thanks once again,
              Norbert
              • 4. Re: CS2 JS: Transparency
                Level 1
                from script - no
                from plugin - maybe

                but script will do this very quickly ;)
                you work on PC or Mac ?

                robin

                --
                www.adobescripts.com
                • 5. Re: CS2 JS: Transparency
                  Hi Robin,

                  I work on PC.

                  Are you located in Australia?

                  Regards
                  Norbert
                  • 6. Re: CS2 JS: Transparency
                    Also Robin,

                    The object on a page could be a transparent object from photoshop or illustrator!

                    How do we take this into account?

                    Regards
                    Norbert
                    • 7. Re: CS2 JS: Transparency
                      Level 1
                      if you have Photoshop/Illustrator on same machine - should be no problem ;)
                      I can open file in Photoshop/Illustrator and check for transparencies :)

                      no - I'm not in Australia :( but maybe sometime ;)
                      now I'm in UK :)

                      robin

                      --
                      www.adobescripts.com
                      • 8. Re: CS2 JS: Transparency
                        Hi Robin,

                        What I am hoping to achieve is a small part of a huge process and it is not possible to switch between Photoshop/Illustrator/Indesign just to find out if a document has any transparent object in it.

                        By the way, In Indesigns User interface I also noticed A Flattener Preview palette. Window>>>Output>>>Flattener Preview, there is a drop-down list which when All affected objects is selected, it highlights all objects with transparencies including links with transparecies applied in their native application.

                        I looked through the reference guide and could not find anything that would help.

                        Is it possible to somehow use this via a script?

                        Thanks for all the help!

                        Regards
                        Norbert
                        • 9. Re: CS2 JS: Transparency
                          Level 1
                          why it is not possible to switch between PS/ILL/ID ?
                          you don't have it installed ?

                          preview is only preview ... but maybe ;) I have one idea ;) I need to check it ;)

                          robin

                          --
                          www.adobescripts.com
                          • 10. Re: CS2 JS: Transparency
                            Hi Robin,

                            Can you give me a hint on your idfea so that I can check this as well?

                            Cheers
                            Norbert
                            • 11. Re: CS2 JS: Transparency
                              Level 1
                              "daredevil" - but works ;)

                              turn on Flatener Preview
                              print screen of each page
                              Color Range in Photoshop
                              if selection is nothing - no transparncy on page ;)

                              robin

                              --
                              www.adobescripts.com
                              • 12. Re: CS2 JS: Transparency
                                Hi Robin,

                                I didn't get exactly what you mean by print screen of each page.

                                How am I going to script print screen of each page?

                                Regards
                                Norbert
                                • 13. Re: CS2 JS: Transparency
                                  Level 1
                                  same as PrintScreen key on keyboard ;)

                                  in internet you can find many VB examples of copying screen to clipboard

                                  robin

                                  --
                                  www.adobescripts.com