Note: the last version of the workflow has been greatly simplified to use the ComfyUI sub-workflow system. In consequence, it has less features than the previous ones, but is more stable. I will try to re-include these features over time.
Introduction
Here's my Scene Composer worklfow for ComfyUI.
The main goal is to create short 5-panels stories in just one queue. For that, it chose randomly parts of the prompt that are used for generation, like:
Character (e.g. hair, eyes, attitude)
Clothes & Underwear
Sexual position and action
To keep consistency, it also keeps certain parts of the prompt to inject it across all scenes (like the environment, the main character and their clothes). You can read my Overview & Usecases article for more explanations!
If you're looking for a simpler workflow, check my Main ComfyUI Workflow. I also suggest to have a look at my Prompt Notebook to better understand how I structure tags.
If you have any comment or request, please feel free to share!
Features
Note: features in gray are in progress and need to migrate to v1.x
Random procedural generation of prompts
Main character (e.g. body, hair, eyes, tattos, piercing, horns, tail,…)
Attire (e.g. clothes, swimsuit, underwear, uniform, accessories.…)
Environment (e.g. place, daytime, nighttime, weather,…)
Action in scene (e.g. starting scene, sexual encounter, ending scene,…)
Predefined personas (demon, goblin, furry, slime, etc)
One place to control all scenes parameters
Seed, steps, CFG, image size, etc.
HighRes-Fix (2nd Pass)
LoRA stacker
Keep control over scenes
Re-generate one or many elements by changing its seed
Re-generate one or many scene by changing its seed
Overwrite and compose the final prompt with variables
Scenes consistency
Tags update dynamically according to the scene (e.g.
wetis added if there's rain)Attire state stay across scenes (if character lose clothes, it stay lost)
If clothes are torned, they stay so
Bondage ropes stay on character, with clothes
Output
Upscaling, pre-processing
Images scene merged into one
CivitAI metadatas & workflow embedded
Setup
Simply import the workflow.json file attached to this article in ComfyUI. You can also drag-and-drop the workflow image directly in the interface.
I personally don't have a very powerful computer. For people in the same situation, check my environment on my Main ComfyUI Workflow article, I explain how I rent and setup machines on remote.
Models
In theory, the workflow can work with any models that use Danbooru-like tags. I personally use Illustrious/NoobAI/Pony-based models and mix with some anime-oriented LoRAs. Have a look at my last images metadatas if you're curious!
Custom nodes
To achieve this workflow, I developed the comfyui-scene-composer extension. You can use as standalone in your own workflow. If you have trouble setting things up, check the repository.
Description
This is the first release. Features include:
50+ predefined variables to use or overwrite
Random procedural generation of prompts
Main character (e.g. body, hair, eyes, tattos, piercing, horns, tail,…)
Attire (e.g. clothes, swimsuit, underwear, uniform, accessories.…)
Environment (e.g. place, daytime, nighttime, weather,…)
Action in scene (e.g. starting scene, sexual encounter, ending scene,…)
Predefined personas (demon, goblin, furry, slime, etc)
One place to control all scenes parameters
Seed, steps, CFG, image size, etc.
HighRes-Fix (2nd Pass)
LoRA stacker
Keep control over scenes
Re-generate one or many elements by changing its seed
Re-generate one or many scene by changing its seed
Overwrite one or many elements (e.g. character, clothes, environment, …)
Scenes consistency
Attire state stay across scenes (if character lose clothes, it stay lost)
If clothes are torned, they stay so
Bondage ropes stay on character, with clothes
FAQ
Comments (7)
This is the level of weaponized autism that moves this community forward. While already a very interesting and useful achievement, It's the framework that I think will lead you to long-term greatness, and not just for nsfw application. This is very, very cool and I'm only scratching the surface of it.
I just added a puLID node to the workflow to provide better character consistency via face-swap. Works pretty well. I slighly modified the workflow to use BigAsp realistic model, and what your workflow is VERY good at is putting checkpoints, any checkpoint, through a rigorous prompt adherence process. I see this as being very useful for model reviewing/selection. You may want to consider producing a SFW workflow that has that sort of universal application.
Thank you very much for your comment! Never heard of puLID before, but I wanted to provide something similar with IPAdapter. I will definitely have a close look at it, thanks!
I'd be eager to provide a SFW version, but I'm not sure how to decline the 5 scenes. I could simply output the same character+clothes+environment in 5 different poses/angles, but I'm not sure how I would create a 5-panels story like the NSFW version.
Great work, please add option to select random popular character from video games or anime to the persona thing,
if you look into Wanking Setup workflow you will find list of females that pony can draw without lora.
The ability to add Lora and trigger them in one scene,
Also any chance of combining the image into small comic page would be great.
Hey! Thank you for your comment and your tip :) That's all great suggestions, I will look into it!
Hey, just to let you know that v1.1.0 is out. I added most of your requests: LoRA pro scenes and image merge. I tried to cook something with existing characters/persona, but results are bad if detailed are not specified (like hair, eyes, clothes, etc.).
It would be too much work to do that for all existing characters. I think it's best that people use the Overwrite feature to have the desired existing character. But I'm open to suggestions if you have a workaround :)
@taches Thanks i'll try right now!
this is strong. so many things we will learn from it





