ComfyUI > Nodes > ComfyUI-Texturaizer > Get Prompt Data (Texturaizer)

ComfyUI Node: Get Prompt Data (Texturaizer)

Class Name

Texturaizer_GetPromptData

Category
Texturaizer
Author
LatentSpaceDirective (Account age: 523days)
Extension
ComfyUI-Texturaizer
Latest Updated
2025-12-15
Github Stars
0.02K

How to Install ComfyUI-Texturaizer

Install this extension via the ComfyUI Manager by searching for ComfyUI-Texturaizer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Texturaizer 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

Get Prompt Data (Texturaizer) Description

Extracts and manages JSON prompt data, detects changes via hashing for AI art projects.

Get Prompt Data (Texturaizer):

The Texturaizer_GetPromptData node is designed to extract and manage prompt data from JSON files, specifically focusing on retrieving both positive and negative prompts. This node is particularly useful for AI artists who need to work with complex prompt structures, as it simplifies the process of accessing and utilizing prompt data stored in JSON format. By computing a hash of the prompt data, it also provides a mechanism to detect changes, ensuring that any modifications to the prompt information are easily identifiable. This feature is crucial for maintaining consistency and accuracy in projects where prompt data may frequently change. Overall, the node serves as a vital tool for efficiently managing prompt data, enhancing workflow efficiency and accuracy in AI art projects.

Get Prompt Data (Texturaizer) Input Parameters:

directory_optional

This parameter allows you to specify a directory from which the JSON data should be retrieved. If left empty, the node will default to using a global directory. This flexibility is beneficial for organizing and accessing prompt data from different sources or projects. There are no specific minimum or maximum values, as it is a directory path, and the default is an empty string, indicating the use of the global directory.

data_optional

This parameter provides an option to directly input JSON data as a dictionary, bypassing the need to read from a file. This can be particularly useful for testing or when the data is generated dynamically within a script. Like the directory parameter, there are no specific constraints on the values, and the default is an empty dictionary, which means the node will attempt to read from the specified directory instead.

Get Prompt Data (Texturaizer) Output Parameters:

pos_g

This output represents the global positive prompt extracted from the JSON data. It is a string that typically contains broader or more general instructions or themes for the AI model to follow. Understanding and utilizing this prompt effectively can significantly influence the overall direction and style of the generated artwork.

pos_l

This output is the local positive prompt, which is more specific and detailed compared to the global positive prompt. It provides finer control over the nuances and specifics of the AI-generated content, allowing for more precise artistic direction.

neg

The negative prompt output is a string that specifies elements or styles to avoid in the AI-generated content. This is crucial for refining the output by eliminating unwanted features or characteristics, thereby enhancing the quality and relevance of the final artwork.

data_hash

This output is a hash value computed from the positive and negative prompts. It serves as a unique identifier for the current state of the prompt data, allowing you to detect any changes or modifications. This is particularly useful for version control and ensuring consistency across different iterations of a project.

Get Prompt Data (Texturaizer) Usage Tips:

  • To ensure consistency in your projects, regularly check the data_hash output to detect any unintended changes in your prompt data.
  • Utilize the directory_optional parameter to organize your prompt data across different projects, making it easier to manage and retrieve specific datasets.
  • Experiment with different combinations of pos_g and pos_l to achieve the desired artistic effect, as these prompts significantly influence the AI's output.

Get Prompt Data (Texturaizer) Common Errors and Solutions:

"KeyError: 'positive_prompt_g'"

  • Explanation: This error occurs when the JSON data does not contain the expected key for the global positive prompt.
  • Solution: Ensure that your JSON data includes the positive_prompt_g key within the scene_info section. Double-check the structure of your JSON file to confirm that all necessary keys are present.

"TypeError: 'NoneType' object is not subscriptable"

  • Explanation: This error may arise if the JSON data is not properly loaded or if the scene_info section is missing.
  • Solution: Verify that the JSON data is correctly formatted and that the scene_info section is included. If using the directory_optional parameter, ensure the file path is correct and the file is accessible.

Get Prompt Data (Texturaizer) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Texturaizer
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 Models, enabling artists to harness the latest AI tools to create incredible art.