While we're waiting for SDXL ControlNet Inpainting for ComfyUI, here's a decent alternative. It allows you to create a separate background and foreground using basic masking. Works VERY well!.
Version 4 includes 4 different workflows based on your needs!
Also if you want a tutorial teaching you how to do copying/pasting/blending, here's a video:
PRE-REQUISITES
WAS Node Suite
Impact Pack
Node Nesting module
Masquerade Nodes
Mile High Styler
INSTALLATION
Go to Comfy Manager -> Fetch Updates -> Install Custom Nodes for any missing custom nodes
Copy the nested_nodes JSON files into the nested_nodes folder under the nested nodes module
Enter Prompt for Subject 1
Enter prompt for Subject 2 that will be pasted into Subject 1's scene
In the preview box "Mask LOCATION for Subject 2" mask out the area where you want your second subject to be pasted (it will automatically be resized to fit the area you mask
In the preview box "Mask Cut out Subject 2", use SAM Detector or mask out the area you want to cut and paste into other image's scene
Enter prompt that describes the full scene under the "Check Placement" area
You may want to cancel the render a few times while you tweak your settings, but this is a VERY quick/efficient workflow
Description
Additional workflow to allow you to quickly bring 2 subjects together and blend them into a single scene
FAQ
Comments (6)
Sorry for this stupid question, I just added nesting, I just updated every custom nodes, but I'm still getting an error I can't solve. The button "Install missing nodes" is not working on my setup.
When loading the graph, the following node types were not found:
Base_Model
Prompt_Prep_2
Prompt_Prep
Mask_Operations
Nodes that have failed to load will show as red on the graph.
The failing nodes are :
- Cut subject out
- Paste subject to brackground
Hi there - you'll want to make sure you have the following custom nodes loaded (via Comfy Manager):
WAS Node Suite
Impact Pack
Node Nesting module
Masquerade Nodes
Mile High Styler
Can you confirm that you have those installed (or install them) and then restart Comfy and it should resolve any errors/missing modules that it's noting)
@Grockster thank you for this answer, everything is fine with all these nodes installed
@Grockster Node Nesting module?
@fafdk yup, you can find that here: https://github.com/ssitu/ComfyUI_NestedNodeBuilder . A word of caution though that when you create nested nodes, it is VERY useful for you, but it's a pain to share the workflow with others since they need those nested files that are created when you nest (essentially every nest you create creates a JSON file that you'd have to send over with your workflow to others)
@Grockster thank you.

