diff --git a/TT_TextTools/CountryOfOrigin.txt b/TT_TextTools/CountryOfOrigin.txt new file mode 100644 index 0000000..56852e8 --- /dev/null +++ b/TT_TextTools/CountryOfOrigin.txt @@ -0,0 +1,28 @@ +Italian woman +German woman +Belgian woman +Portuguese woman +Norwegian woman +Danish woman +Finnish woman +Icelandic woman +Swiss woman +Austrian woman +Liechtensteiner woman +Spanish woman +Sicilian woman +Corsican woman +Welsh woman +Cornish woman +Canadian woman +American woman +Australian woman +New Zealander woman +Argentinian woman +Chilean woman +Uruguayan woman +Brazilian woman +Costa Rican woman +Puerto Rican woman +Bermudian woman +Greenlandic woman \ No newline at end of file diff --git a/TT_TextTools/FemaleClothes.txt b/TT_TextTools/FemaleClothes.txt new file mode 100644 index 0000000..2143057 --- /dev/null +++ b/TT_TextTools/FemaleClothes.txt @@ -0,0 +1,20 @@ +wearing a small red dress +wearing a sleek, tight outfit, +wearing translucent white flowing robes +wearing a blue bikini +wearing a skin-tight black mini dress +wearing a strapless silk evening gown with a thigh-high slit +wearing a deep-cut, form-fitting latex bodysuit +wearing a sheer black negligee that clings to her curves +wearing a short, pleated skirt and a low-cut crop top +wearing a high-slit, shimmering sequin dress +wearing a thin, wet white t-shirt with nothing underneath +wearing a plunging neckline dress that hugs her body +wearing a tight red mini dress with an open back +wearing a black lace bralette and matching thong +wearing a silky robe slipping off her shoulders +wearing a strapless bodycon dress that hugs every curve +wearing a high-cut one-piece swimsuit that accentuates her legs +wearing a low-cut leather corset and panties +wearing a slinky satin slip dress with a daring slit +wearing a form-fitting off-the-shoulder dress that teases her collarbone \ No newline at end of file diff --git a/TT_TextTools/RandomPlacesOnEarth.txt b/TT_TextTools/RandomPlacesOnEarth.txt new file mode 100644 index 0000000..52cd254 --- /dev/null +++ b/TT_TextTools/RandomPlacesOnEarth.txt @@ -0,0 +1,99 @@ +A vast Sahara desert, endless dunes stretching under a blistering sun. +An ancient Roman amphitheater, weathered stone, and whispers of history. +A bustling Tokyo intersection, neon lights flashing amidst a sea of people. +A serene Swiss lake, crystal-clear waters reflecting towering snow-capped peaks. +A quiet New Zealand meadow, sheep grazing beneath rolling green hills. +A vibrant Marrakech market, spice-scented air filled with colorful textiles. +A remote Antarctic tundra, icy winds sweeping across barren white plains. +A cozy Parisian café, street musicians playing beneath twinkling cafe lights. +A misty Irish cliff, emerald waves crashing against jagged stone edges. +A lively Rio de Janeiro beach, golden sands and rhythmic samba. +A fog-covered San Francisco bridge, the city disappearing into misty air. +A tranquil Bali temple, incense drifting through lush tropical gardens. +A sprawling Kenyan savannah, elephants grazing beneath vast open skies. +A secluded Icelandic hot spring, steam rising amidst snowy volcanic rocks. +A bustling Cairo street, ancient pyramids looming over a sea of people. +A quiet Kyoto garden, delicate cherry blossoms drifting on still waters. +A remote Pacific island, turquoise waters surrounding lush palm-fringed shores. +A golden Egyptian desert, camels trekking beneath an endless blue sky. +A busy London street, red buses passing by historic stone buildings. +A vibrant Sydney harbor, sun reflecting off iconic sails and clear water. +A sprawling Australian outback, red dirt and endless, dusty horizons. +A foggy Scottish moor, heather stretching beneath a brooding sky. +A lively Istanbul bazaar, colorful lanterns hanging in the bustling aisles. +A calm Norwegian fjord, steep cliffs towering above crystal-clear waters. +A dense Amazon rainforest, sunlight filtering through towering emerald canopies. +A quiet Greek village, whitewashed houses set against a blue sea. +A narrow Venice alleyway, winding canals reflecting sunlight off old stone. +A remote Mongolian steppe, wild horses grazing beneath an endless sky. +A steep Himalayan pass, snow-covered peaks rising high above the clouds. +A tranquil Costa Rican jungle, birds singing amidst lush greenery. +A snowy Canadian Rockies, jagged peaks rising against a crisp, clear sky. +A crowded Hong Kong street market, neon signs illuminating food stalls. +A peaceful Tahitian lagoon, coral reefs surrounding small, sun-drenched islands. +A weathered Alaskan fishing town, old wooden shacks by the water. +A historic Cairo street, merchants selling spices beneath towering minarets. +A remote Russian Siberian forest, towering pines stretching towards the horizon. +A secluded Finnish cabin, smoke rising from the chimney, nestled in snow. +A bustling Paris street, cafés lining the sidewalk beneath ancient stone buildings. +A quiet Icelandic village, colorful houses standing against the backdrop of volcanoes. +A misty Colombian coffee farm, rich green slopes stretching into the distance. +A vibrant Mexican market, handmade crafts and fresh produce stacked high. +A high-altitude Peruvian mountain village, terraced fields rising to the sky. +A lonely Swedish lighthouse, its beam cutting through the endless winter night. +A tropical Thai island, white sands and clear turquoise water stretching endlessly. +A distant New York skyline, skyscrapers reaching into a golden evening sky. +A quiet Sri Lankan beach, fishing boats lined up on the shore. +A rugged Scottish castle, perched high on a hill, overlooking the sea. +A remote Greenland ice sheet, vast and empty, stretching beyond sight. +A historical London square, statues and fountains amidst the bustle of life. +A bustling Mexican beach, tourists lounging beneath brightly colored umbrellas. +A peaceful Kyoto street, ancient temples standing quietly beneath cherry blossoms. +A remote Bhutanese monastery, perched high above the valley, overlooking the hills. +A busy Mumbai street, tuk-tuks weaving between brightly colored storefronts. +A serene Swedish archipelago, countless small islands dotted in the calm waters. +A quiet Malaysian rainforest, towering trees creating a canopy of green. +A colorful Salvador street, colonial buildings painted in shades of pastel. +A golden Moroccan desert, camels slowly trekking beneath a setting sun. +A quiet Tibetan plateau, prayer flags fluttering in the brisk mountain wind. +A lively Buenos Aires café, patrons sipping espresso beneath umbrellas on the sidewalk. +A vibrant Jakarta street, motorcycles speeding through crowded, narrow lanes. +A serene Vietnamese rice terrace, the sun rising over the green fields. +A bustling Singapore marina, sleek yachts docked beside modern glass skyscrapers. +A narrow Czech alley, medieval buildings lined with antique shops and cafés. +A charming Amsterdam canal, colorful houseboats swaying gently in the breeze. +A vibrant Buenos Aires street, tango dancers twirling on the sidewalk. +A remote Hawaiian beach, waves crashing against black volcanic rocks. +A quiet Dubrovnik street, cobblestone alleys leading to ancient stone walls. +A dense Moroccan souk, merchants calling out beneath rows of colorful scarves. +A remote Arctic tundra, polar bears wandering beneath a pale blue sky. +A vibrant Barcelona park, children playing beneath a canopy of trees. +A foggy Tokyo harbor, ferries crossing beneath a giant steel bridge. +A crumbling ancient temple in Angkor Wat, vines weaving through stone ruins. +A quiet New England town, white clapboard houses dotting the rolling hills. +A distant Andes mountain range, snow-capped peaks towering above a calm valley. +A dusty Arizona desert, cacti stretching towards a blazing orange sunset. +A serene Vietnamese fishing village, wooden boats anchored in calm waters. +A majestic Turkish palace, ornate arches and columns standing against the skyline. +A peaceful Finnish lake, canoes gliding silently across the still water. +A bustling Cairo square, crowded streets and the hum of daily life. +A remote Japanese island, lush forests and tranquil beaches hidden away. +A sunny Santorini terrace, whitewashed buildings overlooking the deep blue sea. +A lonely Atacama desert, vast stretches of salt flats and red rocks. +A colorful Mexican town square, brightly painted buildings surrounding a stone fountain. +A snowy Swedish ski resort, towering pines dusted with fresh powder. +A tranquil Swiss alpine village, wooden chalets nestled in green valleys. +A busy Seoul street, neon signs illuminating shops full of street food. +A vast Chilean Patagonia, glaciers carving deep blue lakes beneath jagged peaks. +A misty New Zealand fjord, waterfalls cascading into the tranquil water. +A vibrant Bangkok street, tuk-tuks whizzing past street vendors and neon lights. +A quiet Canadian woodland, towering pines and crystal-clear lakes. +A bustling Seoul market, fresh seafood and vibrant textiles filling the stalls. +A historic Rome square, fountains and cobblestone streets alive with tourists. +A peaceful Greek harbor, small fishing boats swaying gently beneath the stars. +A dramatic Icelandic waterfall, water crashing down into a misty canyon. +A quiet Australian beach, long stretches of white sand meeting turquoise waters. +A lively New Orleans street, jazz music spilling from open windows. +A remote Alaskan glacier, icebergs floating in a calm, pristine bay. +A crowded Shanghai street, modern skyscrapers towering over bustling sidewalks. +A tranquil Scottish loch, mist rising over still waters surrounded by mountains. \ No newline at end of file diff --git a/TT_TextTools/TT_CountryOfOrigin.py b/TT_TextTools/TT_CountryOfOrigin.py new file mode 100644 index 0000000..c617cb1 --- /dev/null +++ b/TT_TextTools/TT_CountryOfOrigin.py @@ -0,0 +1,39 @@ +import os +import json +import random +from typing import List +import comfy.model_management +from nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + +class CountryOfOrigin: + @classmethod + def INPUT_TYPES(cls): + options = cls.load_options() + if options: + options.insert(0, "Random Choice") # Add 'Random Choice' at the top + return {"required": {"selection": (options, {"default": options[0] if options else ""}), "seed": ("INT", {"default": 42})}} + + RETURN_TYPES = ("STRING",) + FUNCTION = "output_selection" + CATEGORY = "TT_TextTools" + + @staticmethod + def load_options() -> List[str]: + file_path = os.path.join(os.path.dirname(__file__), "CountryOfOrigin.txt") + if os.path.exists(file_path): + with open(file_path, "r", encoding="utf-8") as f: + return [line.strip() for line in f.readlines() if line.strip()] + return ["No options found"] + + def output_selection(self, selection: str, seed: int): + if selection == "Random Choice": + options = self.load_options() + if options and "Random Choice" in options: + options.remove("Random Choice") # Remove 'Random Choice' before picking + random.seed(seed) # Set seed for reproducibility + return (random.choice(options) if options else "No options available",) + return (selection,) + +# Register the node +NODE_CLASS_MAPPINGS["CountryOfOrigin"] = CountryOfOrigin +NODE_DISPLAY_NAME_MAPPINGS["CountryOfOrigin"] = "CountryOfOrigin" diff --git a/TT_TextTools/TT_FemaleClothes.py b/TT_TextTools/TT_FemaleClothes.py new file mode 100644 index 0000000..8cb6234 --- /dev/null +++ b/TT_TextTools/TT_FemaleClothes.py @@ -0,0 +1,39 @@ +import os +import json +import random +from typing import List +import comfy.model_management +from nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + +class TT_FemaleClothes: + @classmethod + def INPUT_TYPES(cls): + options = cls.load_options() + if options: + options.insert(0, "Random Choice") # Add 'Random Choice' at the top + return {"required": {"selection": (options, {"default": options[0] if options else ""}), "seed": ("INT", {"default": 42})}} + + RETURN_TYPES = ("STRING",) + FUNCTION = "output_selection" + CATEGORY = "TT_TextTools" + + @staticmethod + def load_options() -> List[str]: + file_path = os.path.join(os.path.dirname(__file__), "FemaleClothes.txt") + if os.path.exists(file_path): + with open(file_path, "r", encoding="utf-8") as f: + return [line.strip() for line in f.readlines() if line.strip()] + return ["No options found"] + + def output_selection(self, selection: str, seed: int): + if selection == "Random Choice": + options = self.load_options() + if options and "Random Choice" in options: + options.remove("Random Choice") # Remove 'Random Choice' before picking + random.seed(seed) # Set seed for reproducibility + return (random.choice(options) if options else "No options available",) + return (selection,) + +# Register the node +NODE_CLASS_MAPPINGS["TT_FemaleClothes"] = TT_FemaleClothes +NODE_DISPLAY_NAME_MAPPINGS["TT_FemaleClothes"] = "TT Female Clothes" diff --git a/TT_TextTools/TT_RandomPlacesOnEarth.py b/TT_TextTools/TT_RandomPlacesOnEarth.py new file mode 100644 index 0000000..d80c066 --- /dev/null +++ b/TT_TextTools/TT_RandomPlacesOnEarth.py @@ -0,0 +1,39 @@ +import os +import json +import random +from typing import List +import comfy.model_management +from nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS + +class TT_RandomPlacesOnEarth: + @classmethod + def INPUT_TYPES(cls): + options = cls.load_options() + if options: + options.insert(0, "Random Choice") # Add 'Random Choice' at the top + return {"required": {"selection": (options, {"default": options[0] if options else ""}), "seed": ("INT", {"default": 42})}} + + RETURN_TYPES = ("STRING",) + FUNCTION = "output_selection" + CATEGORY = "TT_TextTools" + + @staticmethod + def load_options() -> List[str]: + file_path = os.path.join(os.path.dirname(__file__), "RandomPlacesOnEarth.txt") + if os.path.exists(file_path): + with open(file_path, "r", encoding="utf-8") as f: + return [line.strip() for line in f.readlines() if line.strip()] + return ["No options found"] + + def output_selection(self, selection: str, seed: int): + if selection == "Random Choice": + options = self.load_options() + if options and "Random Choice" in options: + options.remove("Random Choice") # Remove 'Random Choice' before picking + random.seed(seed) # Set seed for reproducibility + return (random.choice(options) if options else "No options available",) + return (selection,) + +# Register the node +NODE_CLASS_MAPPINGS["TT_RandomPlacesOnEarth"] = TT_RandomPlacesOnEarth +NODE_DISPLAY_NAME_MAPPINGS["TT_RandomPlacesOnEarth"] = "TT_RandomPlacesOnEarth" diff --git a/TT_TextTools/__init__.py b/TT_TextTools/__init__.py new file mode 100644 index 0000000..d2635a4 --- /dev/null +++ b/TT_TextTools/__init__.py @@ -0,0 +1,3 @@ +from .TT_FemaleClothes import TT_FemaleClothes +from .TT_RandomPlacesOnEarth import TT_RandomPlacesOnEarth +from .TT_CountryOfOrigin import TT_CountryOfOrigin \ No newline at end of file diff --git a/TT_TextTools/__pycache__/TT_CountryOfOrigin.cpython-312.pyc b/TT_TextTools/__pycache__/TT_CountryOfOrigin.cpython-312.pyc new file mode 100644 index 0000000..981fe6c Binary files /dev/null and b/TT_TextTools/__pycache__/TT_CountryOfOrigin.cpython-312.pyc differ diff --git a/TT_TextTools/__pycache__/TT_FemaleClothes.cpython-312.pyc b/TT_TextTools/__pycache__/TT_FemaleClothes.cpython-312.pyc new file mode 100644 index 0000000..8ce3138 Binary files /dev/null and b/TT_TextTools/__pycache__/TT_FemaleClothes.cpython-312.pyc differ diff --git a/TT_TextTools/__pycache__/TT_RandomPlacesOnEarth.cpython-312.pyc b/TT_TextTools/__pycache__/TT_RandomPlacesOnEarth.cpython-312.pyc new file mode 100644 index 0000000..8670fb9 Binary files /dev/null and b/TT_TextTools/__pycache__/TT_RandomPlacesOnEarth.cpython-312.pyc differ diff --git a/TT_TextTools/__pycache__/__init__.cpython-312.pyc b/TT_TextTools/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..9f34de5 Binary files /dev/null and b/TT_TextTools/__pycache__/__init__.cpython-312.pyc differ