ComfyUI > Nodes > Comfyui_Comfly > Comfly_mjstyle

ComfyUI Node: Comfly_mjstyle

Class Name

Comfly_mjstyle

Category
Comfly/Midjourney
Author
ainewsto (Account age: 911days)
Extension
Comfyui_Comfly
Latest Updated
2025-02-24
Github Stars
0.21K

How to Install Comfyui_Comfly

Install this extension via the ComfyUI Manager by searching for Comfyui_Comfly
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui_Comfly in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Comfly_mjstyle Description

Automate style application from JSON files for efficient creative workflow and consistent project styling.

Comfly_mjstyle:

The Comfly_mjstyle node is designed to enhance your creative workflow by providing a structured way to apply predefined styles to your projects. This node reads style definitions from JSON files and allows you to select and apply these styles to your work, ensuring consistency and efficiency in your creative process. By leveraging a collection of styles, you can quickly adapt your projects to different themes or aesthetics without manually adjusting each element. The node is particularly useful for artists who want to maintain a cohesive look across multiple pieces or need to switch between styles rapidly. It simplifies the process of style management by automating the application of both positive and negative prompts, which can be customized further with additional input.

Comfly_mjstyle Input Parameters:

styles_type

The styles_type parameter allows you to select from a list of available style types, which are derived from JSON files located in the docs/mjstyle directory. This parameter is crucial as it determines the style that will be applied to your project. The available options are dynamically generated based on the JSON files present, ensuring that you always have access to the latest styles. There are no minimum or maximum values, but the selection is limited to the styles defined in the JSON files.

positive

The positive parameter is an optional string input that lets you append additional positive prompts to the main style prompt. This allows for further customization and refinement of the style being applied, enabling you to emphasize certain aspects of the style or introduce new elements that align with your creative vision. The input is a free-form string, and while there are no strict limits, it should be concise to maintain clarity and effectiveness.

negative

The negative parameter is another optional string input that allows you to specify negative prompts. These prompts can be used to exclude certain elements or characteristics from the style, providing a way to fine-tune the output by removing unwanted features. Like the positive parameter, this is a free-form string input, and its effectiveness depends on the clarity and specificity of the prompts provided.

Comfly_mjstyle Output Parameters:

style_positive

The style_positive output is a string that represents the final positive style prompt after processing the selected style type and any additional positive input provided. This output is essential for understanding how the selected style and custom inputs have been combined to form the final style directive. It serves as a guide for applying the style to your project, ensuring that all desired elements are included.

style_negative

The style_negative output is a string that encapsulates the negative style prompt, reflecting any exclusions or modifications specified through the negative input. This output is important for ensuring that the final style application aligns with your creative intent by omitting unwanted elements. It provides a clear reference for what aspects of the style have been adjusted or removed.

Comfly_mjstyle Usage Tips:

  • Ensure that your JSON files in the docs/mjstyle directory are well-organized and up-to-date to take full advantage of the styles_type parameter's dynamic selection capabilities.
  • Use the positive and negative parameters to fine-tune your styles, allowing for greater control over the final output and ensuring that it aligns with your creative vision.

Comfly_mjstyle Common Errors and Solutions:

Style file not found

  • Explanation: This error occurs when the JSON file corresponding to the selected style type is missing from the docs/mjstyle directory.
  • Solution: Verify that the JSON file for the desired style exists in the specified directory and is named correctly.

Invalid JSON format

  • Explanation: This error indicates that the JSON file is not properly formatted, which prevents the node from reading the style definitions.
  • Solution: Check the JSON file for syntax errors and ensure it adheres to the correct JSON structure. Use a JSON validator to identify and fix any issues.

Missing prompt in style definition

  • Explanation: This error arises when the selected style does not contain a valid prompt or negative prompt entry.
  • Solution: Review the JSON file for the selected style and ensure that it includes both prompt and negative_prompt fields with appropriate values.

Comfly_mjstyle Related Nodes

Go back to the extension to check out more related nodes.
Comfyui_Comfly
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.