Skip to content

Conversation

mixa3607
Copy link

@mixa3607 mixa3607 commented Jan 19, 2025

  • Add support of impact-pack wildcards in autocomplete

@mixa3607 mixa3607 changed the title Impact-pack wildcards in autocomplete, remove force replace "_" => " " Impact-pack wildcards in autocomplete Jan 19, 2025
@Robonau
Copy link

Robonau commented Apr 19, 2025

you can get the wildcards without an extra fetch by importing get_wildcards_list from impact-pack.js

let Wildcards;
try {
  const mod = await import("/extensions/ComfyUI-Impact-Pack/impact-pack.js");
  Wildcards = mod.get_wildcards_list();
} catch (error) {}

if (!Wildcards?.length) {
  // fetch from /impact/wildcards/list if need to
}

that would mean its not fetched by impact and Custom-Scripts seperatly

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 this pull request may close these issues.

2 participants