Skip navigation
Currently Being Moderated

Applying multiple strokes with JS

Apr 17, 2012 11:39 AM

Tags: #javascript #path #multiple #stroke

Does anybody have any idea, how to apply multiple strokes to a path with JavaScript? Assigning strokes width, caps, position in stack (my particular concern)? All i can do at the moment is to apply a single stroke. Thanks in advance!

  • Currently Being Moderated
    Apr 17, 2012 12:16 PM   in reply to LemonJoe

    you can't apply multliple strokes, the one thing you can do is, create a graphic style (by hand) with all your attributes (stroke width, caps, multiple strokes, etc) then apply that graphic style via JS.


    caps, stroke width, position

    yourpath.strokeCap = StrokeCap.ROUNDENDCAP;
    yourpath.strokeWidth = 5;
    yourpath.zOrder (ZOrderMethod.SENDTOBACK);
    Mark as:
  • Currently Being Moderated
    Apr 17, 2012 1:20 PM   in reply to LemonJoe

    As far as I know you can't… In my ( fluffy ) mind appearnce is kind of a secret group provided by plug-in ( like the masons funny handshakes ) In script you would have to stack the objects and group ( if needed )

    Mark as:
  • Currently Being Moderated
    Apr 17, 2012 2:54 PM   in reply to LemonJoe

    yeah, unfortunately, half the features are not accessible to scripting.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points