[Developing extensions] How do I update my fields during on_infotext_pasted(infotext,result) callback? #7907
Unanswered
aleksusklim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
/modules/script_callbacks.pydefines:It tells nothing about how do I read back my extra parameters (that I have set by assigning to
p.extra_generation_params['…']during image creation) and set my fields back to correct values, when the infotext is parsed from prompt field by dedicated UI button (or by "Send to txt2img" button, for example).The callback is not bound to my
class X(scripts.Script):, so I cannot use created components indef ui(self, is_img2img):, nor I can directly ask Gradio to change my components, can I?Surely I can change the prompt by assigning to
result['Prompt'], but that works only for default predefined fields. Am I missing something?I've read
generation_parameters_copypaste.py, but still couldn't understand how to restore custom fields from infotext.Beta Was this translation helpful? Give feedback.
All reactions