😺NKD Klein Prompt Builder:
The NKDKleinPromptBuilder is a specialized node designed to assist you in crafting prompts for Klein by seamlessly integrating your custom text with a selection of curated presets that Klein can interpret effectively. This node is particularly beneficial for those looking to generate detailed and nuanced prompts, as it allows you to input your subject matter and select from various dropdown options to enhance the prompt with specific attributes such as style, mood, and lighting. The node dynamically assembles the final prompt, which is displayed in real-time in a preview box, ensuring you can see the results of your selections immediately. The output can be formatted in two ways: as flowing prose, which is optimal for Klein, or as a structured JSON template, which is useful for automation purposes. The presets used by this node are sourced from a file named klein_presets.json, which you can customize to better suit your needs by editing the file and restarting ComfyUI.
😺NKD Klein Prompt Builder Input Parameters:
user_prompt
This parameter allows you to input the main subject or theme of your prompt. It serves as the foundation upon which additional attributes are layered to create a comprehensive prompt. There are no specific minimum or maximum values, but it is recommended to provide a clear and concise subject to ensure the prompt is effective.
format
This parameter determines the output format of the prompt. You can choose between "natural" for a prose format, which is recommended for Klein, or "json" for a structured format suitable for automation. The default value is "natural".
medium
This parameter allows you to specify the medium of the artwork, such as painting or digital art. Selecting "—" will skip this category. The default value is "—".
style
This parameter lets you choose a specific artistic style to apply to the prompt. Options are drawn from the presets, and selecting "—" will omit this category. The default value is "—".
lighting
This parameter enables you to define the lighting conditions for the scene described in the prompt. Like other categories, selecting "—" will skip this attribute. The default value is "—".
camera_angle
This parameter allows you to specify the camera angle for the scene, adding a layer of detail to the prompt. The default value is "—", which means this category will be skipped if not specified.
lens_shot
This parameter lets you choose the type of lens shot, such as close-up or wide-angle, to further refine the prompt. The default value is "—", indicating it will be omitted if not selected.
composition
This parameter allows you to define the composition of the scene, contributing to the overall structure and balance of the prompt. The default value is "—", meaning it will be skipped if not specified.
mood
This parameter enables you to set the mood or emotional tone of the prompt, adding depth to the narrative. The default value is "—", which will omit this category if not selected.
color_grade
This parameter allows you to specify the color grading, influencing the visual tone and atmosphere of the prompt. The default value is "—", indicating it will be skipped if not selected.
extra
This parameter provides additional space for any extra details or specifications you wish to include in the prompt. There are no specific constraints, allowing for flexibility in adding unique elements.
😺NKD Klein Prompt Builder Output Parameters:
prompt
The output parameter prompt is a string that represents the fully assembled prompt, combining your input text with the selected presets. This prompt is designed to be connected to Presampling's positive input, where it can be used to guide the generation of artwork or other creative outputs. The prompt's format and content are influenced by the input parameters, ensuring it aligns with your creative vision.
😺NKD Klein Prompt Builder Usage Tips:
- Customize the
klein_presets.jsonfile to better suit your artistic style and preferences, and remember to restart ComfyUI to apply changes. - Use the "natural" format for prompts intended for Klein, as it is optimized for narrative prose and tends to yield better results.
- Experiment with different combinations of attributes to discover unique and compelling prompt variations that enhance your creative projects.
😺NKD Klein Prompt Builder Common Errors and Solutions:
Presets file not found
- Explanation: The
klein_presets.jsonfile is missing or not located in the expected directory. - Solution: Ensure that the
klein_presets.jsonfile is present in the correct directory and restart ComfyUI to load the presets.
Invalid format selection
- Explanation: An unsupported format was selected for the
formatparameter. - Solution: Choose either "natural" or "json" as the format to ensure compatibility with the node's functionality.
Missing prompt output
- Explanation: The node did not generate a prompt, possibly due to all categories being skipped.
- Solution: Ensure that at least one category is selected or provide additional input in the
extraparameter to generate a meaningful prompt.
