This content has been marked as final.
Show 3 replies
-
1. Re: Setting shadow with Javascript
Marijan Tompa Jan 15, 2011 7:13 AM (in response to Samuli75)Hey!
Here is the same code in JavaScript:
var myObject = app.selection[0]; with(myObject.transparencySettings.dropShadowSettings){ angle = 135; opacity = 33; distance = 1; mode = ShadowMode.DROP; blendMode = BlendMode.NORMAL; }Hope that helps.
--
tomaxxi
-
2. Re: Setting shadow with Javascript
Samuli75 Jan 15, 2011 7:58 AM (in response to Marijan Tompa)I'm still also trying to figure how write to this in Javascript as well. Maybe you assist with this as well?
Set myInDesign = CreateObject("InDesign.Application")
Set myText = myInDesign.Selection.Item(1).TextFrames.Item(1).Texts.Item(1)
Set myDocument = myInDesign.Documents.Item(1)
Rem Apply a color to the fill of the text.
myText.FillColor = myDocument.Colors.Item("Paper")
Rem Use the itemByRange method to apply the color to the stroke of the text.
myText.StrokeColor = myDocument.Swatches.Item("Black") -
3. Re: Setting shadow with Javascript
Samuli75 Jan 15, 2011 9:13 AM (in response to Samuli75)var myObject = app.selection[0].textFrames[0].texts[0];
myObject.strokeColor = "Black";
myObject.fillColor = "Paper";


