1 Reply Latest reply on Dec 12, 2008 7:17 AM by Samuli75

    Setting a drop shadow to an object

    Samuli75 Level 1
      How do I set a drop shadow and it's parameters to a selected object?
      Where can I actually find a list of names of all possible parameters than can be used in VBS?

      I'm looking to accomplish something like this:

      Set myInDesign = CreateObject("InDesign.Application")
      Set myObject = myInDesign.Selection.Item(1)
      myObject.Effects.Transparency.DropShadow=enable
      myObject.Effects.Transparency.DropShadow.mode=normal
      myObject.Effects.Transparency.DropShadow.opacity=33%
        • 1. Re: Setting a drop shadow to an object
          Samuli75 Level 1
          Samuli - thank you for solving this by yourself. It can be this way:

          Set myInDesign = CreateObject("InDesign.Application")
          Set myObject = myInDesign.Selection.Item(1)
          myObject.transparencySettings.dropShadowSettings.angle=135
          myObject.transparencySettings.dropShadowSettings.opacity=33
          myObject.transparencySettings.dropShadowSettings.distance=2
          myObject.transparencySettings.dropShadowSettings.mode=2020623440
          myObject.transparencySettings.dropShadowSettings.blendMode=1852797549