3 Replies Latest reply on Jan 15, 2011 9:13 AM by Samuli75

    Setting shadow with Javascript

    Samuli75

      For some odd reason, none of the Indesign's VBA-scripts works with InDesign CS5 anymore, maybe then reason is Office 2010 64-bit.

       

      Anyway, Javascript works just fine, but I'm having difficulties to write following script with JavaScript. Can anybody help?

       

      Simply script by setting up drop shadow for an active object.

       

      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=1
      myObject.transparencySettings.dropShadowSettings.mode=2020623440
      myObject.transparencySettings.dropShadowSettings.blendMode=1852797549