stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Feature Request]:a function same with send txt2img in customer extensions
Is there an existing issue for this?
- [x] I have searched the existing issues and checked the recent builds/commits
What would your feature do ?
i have developed a extension and used in webui with a tab which at the same level with txt2img and now i want to send prompts generated by my extension to the prompt which is in txt2img just like the function for buttion [send to txt2img] ,so how could i implement this function and i try to look for a solution in issues but got none . thank you
Proposed workflow
1.develop custom extension 2.generate words like prompt 3. send it to txt2img
Additional information
No response
This is the function to add sendto buttons. https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/22bcc7be428c94e9408f589966c2040187245d81/modules/generation_parameters_copypaste.py#L105-L106 Use it like this https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/22bcc7be428c94e9408f589966c2040187245d81/modules/generation_parameters_copypaste.py#L102