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]: #907

Open
1 task done
tholonia opened this issue Oct 15, 2023 · 0 comments
Open
1 task done

[Feature Request]: #907

tholonia opened this issue Oct 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tholonia
Copy link

tholonia commented Oct 15, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Test for the existence of a Parseq URL and save the JSON of the URL as 20231015004152_parseq.json

Proposed workflow

There is nothing to show, just adding code to the deform extension.

Additional information

I currently do this with the following code at the end of run_deforum.py

import json
import urllib.request
try:
    parseq_manifest_url = locals()['parseq_args'].parseq_manifest
    if not parseq_manifest_url:
        print("Skipping Parseq (not in use)")
    else:
        with urllib.request.urlopen(parseq_manifest_url) as response:
            parseq_data = response.read()
        parseq_json_str = json.dumps(json.loads(parseq_data.decode('utf8').replace("'", '"')), indent=4, sort_keys=True)
        parseq_outfile = f"{args.outdir}/{root.timestring}_parseq.json"
        with open(parseq_outfile, "w") as outfile:
            outfile.write(parseq_json_str)
        print(f"Saved Parseq json data to: {parseq_outfile}")
except Exception as e:
    print("Oops! Something went wrong trying to save the Parseq file, but continuing anyway...")
    print(f"An exception of type {type(e).__name__} occurred. Arguments: {e.args}")

Are you going to help adding it?

discord ID: 1064991849149898822

@tholonia tholonia added the enhancement New feature or request label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant