Adjust Dashes (offset), Adjust Dashes
Adjust Dashes (offset)fig.1: The left figure is splitted with pathfinder (outline), in order to make anchors at all intersection points.
fig.2: This script adjusts dashed lines in the selection in order to the center of the first dash comes at each anchor points.
For its purpose, when adjacent segments of an anchor of the target path have a difference in length - a rectangle like above, for example -, this script splits the path at this anchor, applies a suitable dash setting for each splitted path, then put them into a group. This is a lockstep trick caused by an Illustrator path can have only one simple rule for dashes and gaps. This process also CLEARS FILL COLORS, if it needs, and if the path has BUTT end cap, change it to PROJECTION end cap.
Adjust DashesAdjusts the lengths of dashes and gaps of dashed lines in order to the length of the path is divisible by total length of dashes and gaps.
Installing:Select script you need and drop it to Illustrator Scripts folder.
For OS Windows: C:\Program Files\Adobe\Adobe Illustrator CS3\Presets\Scripts.
Restart Illustrator (if runned) and find updates in Scripts menu.
Use File -> Scripts -> Adjust Dashes (offset) or Adjust Dashes
Author: Hiroyuki Sato