Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add the ability to override the filename #132

Closed
LeonardMeagher2 opened this issue Oct 18, 2023 · 3 comments · Fixed by #133
Closed

Feature Request: Add the ability to override the filename #132

LeonardMeagher2 opened this issue Oct 18, 2023 · 3 comments · Fixed by #133

Comments

@LeonardMeagher2
Copy link
Contributor

LeonardMeagher2 commented Oct 18, 2023

Describe the feature you'd like to see:

There is currently an issue asking to add more info to the filename #44
My request is to actually allow overriding the with custom formatting.

Instead of formatting a predefined string here

before_output_filename_prefix = f"ai-render-{timestamp}-1-before"

using something like

def sd_generate(scene, prompts=None, use_last_sd_image=False, custom_filename="ai-render-{timestamp}-{suffix}"):
.....
  before_output_filename_prefix = cutom_filename.format(timestamp = timestamp, seed = seed, suffix = "-1-before")
....

Giving the option to add more info, or in my case where I want the filename to be the same every render. Since I don't want a bunch of images for each render, just whatever the last one was.

Additional information

No response

@LeonardMeagher2
Copy link
Contributor Author

I realize the issue I linked it's mentioned that this might be on the roadmap.
I might open a PR and see if what I have in mind is acceptable.

@benrugg benrugg changed the title Add the ability to override the filename Feature Request: Add the ability to override the filename Oct 18, 2023
@benrugg
Copy link
Owner

benrugg commented Oct 18, 2023

Yeah, if you want to implement something and submit a PR, I'm happy to review it! I'm going to reopen this for now.

@benrugg
Copy link
Owner

benrugg commented Oct 22, 2023

This feature is now available, thanks to @LeonardMeagher2. Update AI Render through the add-on preferences and you can specify a template for the filename.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants