Skip to content
Discussion options

You must be logged in to vote

Hi @ash0080,

You can do this with the Unprompted extension.

Batch seeds are stored into the array variable all_seeds. Use a [for] loop to update the values as needed.

[sets step=100 _new] [# Change step size as desired, or use a random block]
[if batch_index=0] [# We only need to process the seeds array once]
	[for i=1 "i < {length all_seeds}" "i+1"]
		[set new_seed][eval][get seed]+[get step]*[get i][/eval][/set]
		[array all_seeds i="{get new_seed}"]
		[log]Setting seed of image [get i] to [get new_seed][/log]
	[/for]
[/if]

For your convenience, I went ahead and added this as a template in the latest version of Unprompted. To use it, simply insert [file common/examples/batch_seeds_cust…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@ash0080
Comment options

Answer selected by ash0080
Comment options

You must be logged in to vote
8 replies
@w-e-w
Comment options

w-e-w Jul 31, 2023
Collaborator

@w-e-w
Comment options

w-e-w Jul 31, 2023
Collaborator

@ash0080
Comment options

@w-e-w
Comment options

w-e-w Jul 31, 2023
Collaborator

@ash0080
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants