Skip to content
Snippets Groups Projects
Commit 35d7b623 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Generate array instead of specifying it

parent 5299036a
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,12 @@ ...@@ -4,7 +4,12 @@
#@ File(label="Output directory",style="directory") gen_images_output_dir #@ File(label="Output directory",style="directory") gen_images_output_dir
bit_depths = newArray(8, 9, 10, 11, 12, 13, 14, 15, 16); setBatchMode(true);
// create an array with values from 8 to 16 (including)
bit_depths = Array.getSequence(17);
bit_depths = Array.slice(bit_depths, 8, 17);
for (i = 0; i < lengthOf(bit_depths); i++) { for (i = 0; i < lengthOf(bit_depths); i++) {
title = "" + bit_depths[i] + " bit 5px test image"; title = "" + bit_depths[i] + " bit 5px test image";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment