Original discussion here and here,and the script itself:HartmutHolzwart wrote: Could you give a link to the repeat script?
Code: Select all
import golly as g
s = g.getselrect()
if s == []:
s = g.getrect()
xy = [0, 0]
s = g.getcells(s)
if s == []:
g.exit("Pattern is empty.")
disp = g.getstring("Enter displacement in form (x,y,t):","1,1,1").split(",")
n = 0
try:
disp = (int(disp[0]), int(disp[1]), int(disp[2]))
n = int(g.getstring("How many times to repeat?", "1000"))
except:
g.exit("Invalid input.")
g.new("repeated")
g.putcells(s, xy[0], xy[1], 1, 0, 0, 1, "xor")
for i in xrange(n):
xy[0] += disp[0]
xy[1] += disp[1]
g.run(disp[2])
g.putcells(s, xy[0], xy[1], 1, 0, 0, 1, "xor")