Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

InDesign cs5, stroke effects js

Participant ,
Aug 29, 2011 Aug 29, 2011

Hi,

I need to change stroke's effect to Difference' and I could not find anything for effects in the OMV under StrokeStyle or anything under Stroke. How do I assign it, or am I'm looking in the wrong place at all.

Thank you for your help.

Yulia

TOPICS
Scripting
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 29, 2011 Aug 29, 2011

Yulia,

maybe you have more luck looking here:

http://jongware.mit.edu/idcs5/pc_BlendingSetting.html

use it like that:

yourObject.strokeTransparencySettings.blendingSettings.blendMode = BlendMode.DIFFERENCE;

Uwe

Translate
Community Expert ,
Aug 29, 2011 Aug 29, 2011

Yulia,

maybe you have more luck looking here:

http://jongware.mit.edu/idcs5/pc_BlendingSetting.html

use it like that:

yourObject.strokeTransparencySettings.blendingSettings.blendMode = BlendMode.DIFFERENCE;

Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 08, 2011 Oct 08, 2011
LATEST

Love it, thank you, guys.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Aug 30, 2011 Aug 30, 2011

Hi,

Well, unfortunately, you are looking at wrong place.

StrokeStyle is managing Dashed/Dotted/Striped strokes, and not for managing stroke effects.

You want to change stroke transparency settings, so the code would look like this:

app.selection[0].strokeTransparencySettings.blendingSettings.blendMode = BlendMode.DIFFERENCE;

Hope that helps.

--

Marijan (tomaxxi)

http://tomaxxi.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines