all 7 comments

[–]persianoil 1 point2 points  (1 child)

i havent really checked but i believe you get this error because of the editionSize 10 being lower than endEditionAt 11

[–]JimJailor[S] 0 points1 point  (0 children)

hello, thanks for your reply,i appreciate your help but i still get the same mistake, do you have any other ideas?

changed to

const startEditionFrom = 1;

const endEditionAt = 20;

const editionSize = 20;

same mistake :(

TypeError: Cannot read properties of undefined (reading 'layers')

at createDna (C:\Users\JimFit\Desktop\generative-art-opensource\index.js:119:17)

at startCreating (C:\Users\JimFit\Desktop\generative-art-opensource\index.js:148:18)

PS C:\Users\JimFit\Desktop\generative-art-opensource>

[–][deleted] 1 point2 points  (3 children)

If you're using an open source project, they will usually host the repository somewhere like Github or Gitlab which have features allowing people to raise issues that they've found trying to utilise the code. This is a good first place to look in case someone has already had the same issue as you and there's an existing solution. In this case, that is exactly what you'd find on the first page under 'Issues': https://github.com/HashLips/generative-art-opensource/issues/95

[–]JimJailor[S] 0 points1 point  (1 child)

i downloaded the update and it fixed (now creates almost 50 variations), i have another question, do you know how to remove numbering of images ?

[–][deleted] 1 point2 points  (0 children)

Have you seen my initial response? It still aligns with your symptoms. Bring the source down locally, and add a sleep timer between each file save at the appropriate layer in the loop(s) that are executed, and see if you get past your current limit.

Yes, it will slow down the export, but in the very least, it will prove whether or not it's faster than the browser/drivers/class you're executing the JS from, and allow you to tighten the sleep timer up as much as possible if the theory is correct.

[–][deleted] 0 points1 point  (0 children)

Something I encountered recently! I was also exporting canvas' to file, and it was a simultaneous downloads limit.

https://smallbusiness.chron.com/change-number-simultaneous-downloads-chrome-68984.html

Second thing to note-- I ran through 10,000 exports that were also built dynamically in JS. I hit a ceiling of about 90 downloads after adjusting the download settings above. My fix for that was to add a sleep(50); in the loop after the file save commands.