Sg2.9
Randomdistribute
Recent RSS
Creator:  Eike Menijn
Date:  14. August 2007, 14:05

A simple script that randomly distributes selected objects within the document.

gives me an error...
From:  Michael
Date:  14. September 2007, 11:17

TypeError: Cannot read property "length" from null
at /scripts/randomdistribute.js:24 (rand)
at /scripts/randomdistribute.js:20

any ideas?

Re: gives me an error...
Date:  14. September 2007, 11:58

You need to select some things in your document before you execute the script..

Re: gives me an error...
From:  Michael
Date:  16. September 2007, 10:40

well i tried that but i still get the error...

i create 3 different circles, select all and execute the script..and i get the error...what am i doing wrong?

Re: gives me an error...
Date:  16. September 2007, 13:54

I'm not sure - it works here.
Are you running the latest version of Scriptographer?

Re: gives me an error...
From:  Michael
Date:  17. September 2007, 01:13

AHHH!!
2.0.23
better get updated to 025
that must have been the problem...

Re: gives me an error...
From:  Heli
Date:  17. July 2011, 00:20

Thanks Eike Menijn! That awesome

Re: gives me an error...
From:  Heli
Date:  6. August 2013, 05:39

This script is amazing and works perfect in CS5 with scriptographer. But in CS6, there is a warning pop-up when i run the script:

Error 2: Document is underfined.
Line: 15

> var selectedItems = document.selectedItems;

How to fix it?

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19