Skip to content

Random Point Coordinates

Bruno Herfst edited this page Jan 9, 2018 · 1 revision

With this script, you can add some noise and randomness to create more organic InDesign frames. The script contains the following settings:

randomisePoints     : true,
onlyStraightLines   : false,
subDivisions        : 1,
subDivChancePercent : 50,
minDistance         : 10,
maxmovement         : 2

If randomisePoints is set to true every point in the path will be displaced by the maxmovement amount. All values in the settings object are in the measure unit of the document. Set onlyStraightLines to true to remove all the curves if there are any. New points are interpolated with subDevision. Setting subDevision to 0 means no extra points will be added to the path. You can add a chance of subdivision in percentage with subDivChancePercent. Setting subDivChancePercent to 100 makes sure there is always a subdivision happening unless you set minDistance above 0 minDistance makes sure points that are within a certain distance don’t get subdivided.

Random_Point_Coordinates.jsx