2 Replies Latest reply on Aug 2, 2009 5:44 AM by yael876

    Adding effects to objects

    yael876 Level 1

      Hi all,

       

      Do you know how to add effects to objects, like  transparency?

      I need to do this with VBScript

       

      Thanks,

      Yael

        • 1. Re: Adding effects to objects
          Kasyan Servetsky Level 5

          Here is an example (for CS3):

           

              Dim myInDesign As InDesign.Application
              Dim myDoc As InDesign.Document
              Set myInDesign = CreateObject("InDesign.Application.CS3")
              Set myDoc = myInDesign.ActiveDocument
              Set myObject = myDoc.Rectangles.Item(1)
              Set myTs = myObject.TransparencySettings
              myTs.DropShadowSettings.Mode = idShadowMode.idDrop
              Set myBs = myTs.BlendingSettings
              myBs.Opacity = 50
              myBs.BlendMode = idBlendMode.idMultiply

           

          Every object that may have an effect, blending mode or opacity applied —  e.g. a rectangle — has the following properties: ContentTransparencySetting, FillTransparencySetting, StrokeTransparencySetting and TransparencySetting which correspond to options in Effects Panel.

           

          Kasyan

          • 2. Re: Adding effects to objects
            yael876 Level 1

            thank you very much