Skip to content

Repository files navigation

🎉 ComfyUI-Get-Random-File 🎉

Build Status

Welcome to ComfyUI-Get-Random-File! 🚀 This awesome tool brings a touch of randomness to your files and images, making your file management tasks a breeze. Whether you're wor king on a creative project or just want some fun, our tool is here to help you get random files and images effortlessly. Use these nodes for a variety of applications where you need a random file!

Included Nodes 🌟

  • 🎲 Random File Path
    Chooses a random file from a directory and returns the filepath as a STRING.

  • 🖼️ Get Image File By Index
    Retrieves a IMAGE from a specified directory by index and returns both the IMAGE and its filepath as a STRING.

  • 🎲 Random Image Path
    Picks a random IMAGE file from a directory and provides you with the IMAGE and its filepath as a STRING.

📸 Preview

🎲 Random File Path
Preview Image

🎲 Random Image Path
Preview Image

🖼️ Get Video By Index
Preview Image

📸 Get Image By Index
Preview Image

Installation 🛠️

Method 1: Clone Repository into custom_nodes Folder

  1. Clone the Repository:

    Open Command Prompt or PowerShell and run the following command to clone the repository into the `custom_nodes` directory of your ComfyUI setup:

    git clone https://github.com/ChrisColeTech/ComfyUI-Get-Random-File.git <path/to/comfyui/custom_nodes>

    Replace path/to/comfyui with the actual path to your ComfyUI installation.

  2. Restart ComfyUI:

    Restart your ComfyUI server to load the new node.

Method 2: Install via ComfyUI Manager

  1. Open ComfyUI Manager:

    Launch the ComfyUI Manager.

  2. Search for ComfyUI-Get-Random-File:

    In the ComfyUI Manager, go to the Node Manager and search for ComfyUI-Get-Random-File.

  3. Install the Node:

    Click on the Install button next to ComfyUI-Get-Random-File. The manager will handle the installation and setup process for you.

  4. Restart ComfyUI:

    After installation, restart your ComfyUI server to ensure that the new node is properly integrated.

About

Gets a random file from a directory. Returns the filpath as a STRING

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages