Extensions/ComfyUI-triXope
ComfyUI Extension

ComfyUI-triXope

A ComfyUI extension.

By triXope·Created 8 months ago·Updated about 20 hours ago· 82
triXope/ComfyUI-triXope
Nodes—
On cloudLocal install
Stars82
Updatedabout 20 hours ago
Readme

triXope — ComfyUI node pack

triXope makes films with ComfyUI. One node takes a screenplay and carries it all the way to a finished, edited MP4: it writes or reads the script, plans the shots, builds the cast, prop and location references and the storyboard keyframes, renders each shot, and gives you a timeline to cut, trim and export the film on.

The pack also ships a set of everyday nodes for audio, images, latents, video, files and prompt writing. Everything sits under the triXope menu.

Install

ComfyUI Manager (recommended) — Manager → Custom Nodes Manager, search triXope (pack name ComfyUI-triXope), install, restart ComfyUI.

Manual

cd ComfyUI/custom_nodes
git clone <repository-url> ComfyUI-triXope

From a downloaded zip, extract it so ComfyUI/custom_nodes/ComfyUI-triXope/__init__.py exists — an extra nested folder leaves the nodes undetected. Restart ComfyUI; the nodes appear in the right-click menu under triXope/….

Python packages: pip install -r requirements.txt. Optional extras are commented out at the bottom of that file.

What you need to bring

| To do this | You need | |---|---| | Render anything | your usual video/image models (MiniMax H3, LTXV, Wan, upscale models), or the pack's Universal Loader | | Render a film in Film Auteur Studio | an H3 video pipeline and its models (picked in the node's Models tab); an H3 Image model for the reference stills and storyboards | | Use the AI writing options | a connected text-encoder CLIP, a Local: model, or an Ollama server | | Transcribe audio into a screenplay | openai-whisper | | Restore faces / remove backgrounds | YOLO face models, ComfyUI BiRefNet or SAM3 | | Use the DLSS 5 upscaling stages (optional) | the DLSS 5 runtime, installed on first use | | Rotate a 360 panorama | FFmpeg, or imageio-ffmpeg | | Use the Ultimate SD Upscale nodes | fetched automatically on first start |

Start a film

  1. Add triXope Film Auteur Studio to an empty canvas. It is an output node — nothing needs to be connected downstream.
  2. Open Screenwriter in the node, paste or write a script, pick genre, structure, flow, style and length, then press Write/Process Screenplay. Leaving the script empty lets the AI write an original one.
  3. Open Cast & Locations and press Generate references: every character, prop and location gets its own image, with a ↻ on each thumbnail to re-roll one.
  4. Open Storyboards and build the keyframe for each shot.
  5. Check the Shot List — durations, camera phrases and per-shot seeds are editable, and More shows the exact H3 prompt the shot will be fed.
  6. Queue the node. Every shot that is not finished yet is rendered; finished shots are kept, so a stopped run resumes where it left off.
  7. Open Timeline to arrange, trim and score the cut, then Export to write the MP4.

Projects live as folders inside one projects folder (chosen in the Project Manager), and a project keeps its plan, its settings and everything it generated.

Node reference

* means a socket takes any type. Node ids are the names ComfyUI saves in a workflow.

triXope/audio — Audio

  • Δ Audio To Tablature 🎵 — triXope AudioToTablature: turns a guitar recording into tablature as an image, as text and as a playable audio preview. In: audio; out: tablature_image, tablature_text, audio_preview.
  • Δ Audio File Saver — triXope AudioFileSaver: writes audio to FLAC and shows it as playable results in the ComfyUI UI. In: audio, output_path, filename_prefix.

triXope/film — Film

  • Δ Film Auteur (LTX) — triXope FilmAuteur_LTX: the whole LTXV pipeline in one node — prompting, sampling, spatial and temporal upscaling, face restoration, colour grading, preview and final video — with collapsible sections in the node body. In: clip, video_vae, audio_vae plus the model sockets; out: prompts, latents, video, images, audio, fps, real_time_eta.
  • Δ Film Auteur Studio — triXope FilmAuteurStudio: one node for a whole H3 film, described below.

Film Auteur Studio

Six views in the node head, and every one of them remembers its state in the project:

  • Screenwriter — write, load or transcribe a script, set genre, structure, flow and period, premise, cast, style and trigger words, and watch the formatted preview as you type. Write/Process Screenplay produces the screenplay, the shot list, the story beats, the shot lengths and the character, prop and location lists, and locks them into the project.
  • Cast & Locations — character, prop and location bins. Generate references builds the whole set; each thumbnail has a ↻ that re-rolls just that image with a new seed. If there is nothing to build yet (no lists, or no shot list for storyboards), the tab says so and offers a button that runs the writing pass. Reset beside it asks first, then deletes every generated file of that set — including images earlier runs left behind — from the project folder and ComfyUI's output, so the next Generate renders a fresh batch.
  • Shot List — one row per shot: the location line, then a description opening with the shot type ("Wide establishing shot of a suburban street at night", "Close-up on the face of <Subject 1> as he wrinkles his brow"), duration, More/Less in the description's lower-right corner, and ✎ to rewrite that description, its story beats, and to state where every person and prop stands at its first and at its last frame. More swaps the filtered one-line description for the exact H3 conditioning prompt the shot is fed, its full text and the story beats it renders from, each under its own heading. The planned prompt is recorded when the film is planned, and a project-file save fills in any shot that has none (even before any model is chosen), so it can be read before the shot renders; Build prompts beside the Shot List heading rebuilds it on demand, even straight after a cancelled run, and it is replaced by the exact text of the last render once one exists. Less returns to the one-line row. The edit opens on the description the row shows, shot type included; the saved description is what that shot's storyboard and clip both render from, so the two always agree, and an edited row is marked edited. The beats field edits only that shot's [Shot N] block in the film's beat sheet, so the other shots' beats never move. The first-frame arrangement stages the storyboard, while the last-frame arrangement places the next shot's storyboard across the cut and is the arrangement the clip itself animates to.
  • Storyboards — the same bin for each shot's keyframe, with the same ↻. Every keyframe is drawn at its shot's first-frame arrangement; a shot's last-frame arrangement places the storyboard after it. Reset wipes every keyframe the same way, and the shots render again from the fresh ones.
  • Timeline — monitor, transport and a multitrack editor, with a control panel to the left of the monitor whenever a video or audio clip is selected (and no panel when nothing is). A video clip gets opacity and live Color FX (exposure, contrast, saturation, temperature, tint), an audio clip its volume (the monitor plays the full gain range, above 100% included), and an adjustment layer its strength and grade. A clip's panel also holds its seed, ↻ (Regenerate) and New seed; Regenerate rebuilds that entire clip. An adjustment layer track sits above every video track, holds no picture, and grades whatever the tracks below it composite to. Drag a clip to slide it, Alt-drag to reorder, drag an edge to trim or extend (extending renders only the new seconds from the clip's own context window, at least 22 frames and default 192, or its first frames for a head extension; the extended span stays hatched on the timeline until Extend in the clip's panel generates just those seconds), several video and audio tracks, playhead scrub, zoom/fit, fullscreen monitor, undo/redo, and empty space that exports as black and silence. Re-plan in the node head asks first, then restores every clip's planned length, puts the shots back in number order and closes every gap between them.
  • Settings — Models, Render, Sampling, Upscale, Face Detailer, DLSS5, Color FX, Output and Advanced.

What it can do:

  • Plan — splits the film on the written shot list, takes each shot's length from the script, and attaches references according to the chosen mode (auto, text, reference, keyframes, all).
  • References — character sheets are four-panel turnarounds (front, side, back, close-up). A character is always shown alone with empty hands, so no prop ends up baked into a face or wardrobe reference. Locations are shown as an empty set first, then as a ten-second orbit clip. Each character can carry a voice reference: a local audio file, or an AI voice generated and locked for that character, with a player and a ↻ that re-rolls the voice only.
  • Storyboards — every shot is rendered as its own storyboard image, and nothing is composed: each storyboard is generated at exactly 10752x4608, reduced to exactly 7392x3168, then DLSS5 runs at 1x and the face detailer takes that frame as it is, so there is no upscale stage and no sheet. Each storyboard attaches the still of the place it is in and only the characters and props its own line names, so a shot never inherits the rest of the cast and never invents a second version of the set; from the second storyboard in a location it also attaches the previous storyboard there as a place plate, cropped to its widest people-free band so no face, body or costume travels with it, and a shot that names no place stays in the place the storyboard before it was in. Each storyboard is drawn at its own camera setup — a walk through wide, medium, pushed-in, high and low angles, off-centre reframes, reverse angles and detail shots — so two storyboards in one place never share a camera. Every later storyboard in a place is also told to keep that place, its architecture, dressing and light, and the whole cast's faces, wardrobe and props exactly as the storyboard before it has them, and to change only the camera position, angle and focus: it names the new vantage in the set's own terms (beside a named pillar, at a doorway, along a wall), says what fills the near foreground and how the set recedes behind it, and forbids the previous composition. The first storyboard in a place has no predecessor there, so its camera is stated outright, distance, height and side, never as a move off a frame that was never drawn, and only from the second one there onward does the prompt move the camera off the storyboard before it. A shot line that writes its own angle or move keeps it, exactly as the script asked, and the beat moves everything that line leaves free: a written distance is never pushed in or pulled back, so the height, the axis and the side move; a written angle keeps its angle while the distance and the side move; and a line that writes both still moves the side, so nine shots written "Wide shot" are nine cameras, not one camera nine times. The camera is stated at the top of each prompt and again as its last line, before the style, cast and plate sections can bury it, and, from the second storyboard in a place onward, both forms forbid that storyboard's predecessor by distance, height, side and axis; the plate records the architecture and never the framing, and the prompt calls it a sample of materials and light, never a camera. A cast picture is a turnaround to draw from, never a sheet to reproduce in the frame, and the cast and setting lines themselves carry only a person's identity and wardrobe and a place's materials: the panel layout, studio backdrop, neutral pose, locked-off camera and empty-set sentences of the reference prompts are stripped before the storyboard sees them, so a storyboard is asked for a shot and never for the reference picture. Every storyboard is then grade-locked to the one before it by a deterministic tone and chroma match on whole-frame statistics: one gain and one offset per channel, so grade, key light and wardrobe palette carry from storyboard to storyboard while no sky, lawn, wall or person of the earlier storyboard keeps the place it had. The first of a batch is locked to the storyboard before it. The finished keyframe is locked back to the 7392x3168 frame the grade was matched on, so DLSS and the face pass cannot shift its grade. DLSS5's size selection is only a label, so the polished frame is fitted to exactly 7392x3168 again before it is graded, saved, or used as the next storyboard's grade reference. Each storyboard's prompt names its own cast and setting by name and by count, never the film's whole character or location list, so a shot of one person in one place is written that way. Each storyboard is checked with the face detailer's detector: a shot that names a character and shows more faces than the people it names is rendered again with the next seed and a correction line naming the faces it drew and the people it was given, once more, and its last render is kept. Each storyboard is staged on a written arrangement rather than an invented one: the shot's own start and end positions for every person and prop, plus the arrangement the storyboard before it ended on, are stated in the prompt, so consecutive shots of a scene start where the last one finished. Editing one shot's description or regenerating a reference re-renders that batch's storyboards.
  • Render — renders every unrendered shot and reuses the finished ones; a shot whose description was rewritten in the Shot List renders from that text; continues the previous shot's picture and voice across a cut so a film plays continuously; offers automatic, continuation and crossfade transitions.
  • Color and audio on the timeline — every clip carries its own opacity, Color FX and audio gain, and the adjustment layer carries a grade over a span of the film; the monitor previews them live, the monitor plays any gain the slider sets (above 100% too) and the export applies the same grade, opacity and gain to the picture and the mix.
  • Guard rails — optional limits on frames and VRAM per shot, a colour-continuity check, and a warning when characters have no generated references. Models can be flushed between shots to free memory.
  • Export — joins the shots into one MP4 (H.264 + AAC), crossfading or mixing a multitrack film, and takes a poster frame from the first shot. A partial film exports as long as one shot is rendered.

Sockets (all optional, each one replaces something the node would make itself): script_override (screenplay text), audio_override (a performance to drive the film, or audio to transcribe), ref_image_batch_override (characters then props), ref_video_batch_override (one location clip each) and keyframe_batch_override (one storyboard per shot). Outputs: segments and audio, the film's shot sound mixed on its timeline exactly as the export muxes it.

The studio loads and places its own models (auto, balanced or manual device per model, CUDA/ROCm, MPS or CPU) and its writer runs locally on a text-encoder model — no Ollama needed.

triXope/image — Image

  • Δ ColorFX 🎬 — triXope ColorFX: a full grading stage in one node — colour correction, LUTs, sharpening and detail, blur effects and film-style effects (grain, vignette, scanlines, chromatic aberration), each behind its own switch. In: images plus the enable switches and their settings.
  • Δ HSV 🎨 — triXope HistogramMatchHSV: matches a batch's contrast and saturation to a reference image, with an optional hue match. In: reference_image, target_image, mix_factor, match_hue.
  • Δ Upscale Image to Size (Model) — triXope ImageUpscaleToSize: upscales with an upscale model to an exact width and height, keeping the model's own look, with stretch, crop or pad. In: upscale_model, images, the target size and its options.
  • Δ Image Batch Filter — triXope ImageBatchSelector: keeps or drops frames on a fixed stride. In: images, select_every_nth, skip_first_images, inverse_selection.
  • Δ Panorama 360 Rotate — triXope Pano360Rotate: turns a 360 panorama into a two-second rotating flat sequence at the size you ask for. In: image, width, height. Needs FFmpeg.
  • Δ Image Sequence Preview — triXope Image Sequence Preview: plays an image batch as an animated preview in the node body. In: images, fps.

triXope/io — Files, text and paths

  • Δ Load Text — triXope LoadText: browses a folder and loads a text file into a string. In: directory, file; out: text.
  • Δ Load Audio — triXope LoadAudio: the same browser for audio, loading wav, mp3, aac, aiff, flac, ogg, m4a and opus files into an audio output. In: directory, file; out: audio.
  • Δ Filename Extractor — triXope FilenameFromDirectory: gives the file name at a position in a folder's alphabetical listing. In: directory_path, file_index.
  • Δ File Copier — triXope File Copier: copies a file into a folder and returns the new full path. In: source, destination, use_absolute_paths; out: filepath.
  • Δ Path Combiner — triXope PathCombinerNode: joins a base folder with up to ten subfolders and outputs ten ready paths. In: base_path, subfolder_1…10; out: path_1…10.
  • Δ Create Directory — triXope EnsureDirectoryNode: creates a folder (and its parents) and returns the absolute path. In: directory_path; out: absolute_path.
  • Δ Text Saver — triXope TextSaver: writes or appends text to a file, and only releases the whole file once the last iteration is done, so long loops stay light. In: path, filename, text, append, total_iterations, current_iteration; out: output.
  • Δ Save Image — triXope ToggleFolderSaver: saves a batch as PNGs to any folder when enabled and passes the images on regardless. In: images, enabled, folder_path, filename_prefix.
  • Δ Directory File Selector 📂 (Live) — triXope DirectoryFileSelectorGemini: folder and file dropdowns that re-scan as you change the folder, resolving to a full path. In: directory, file; out: file_path.

triXope/latent — Latents and VAE

  • Δ MiniMax H3 AV Latent Concat — triXope MiniMaxH3AVLatentConcat: joins two H3 audio/video latents into one clip, keeping sound and picture in sync. In: latent_a, latent_b, trim_side, extra_trim_latents, sync_audio.
  • Δ Latent List Decoder — triXope SafeLatentListDecoder: decodes a list of latents into one video plus its audio without running out of RAM. In: vae, latents, audio_vae, vram_flush; out: images, audio.
  • Δ Save WAN Latent / Δ Save LTXV Latent — triXope SaveWanVideoLatent, triXope SaveLTXVideoLatent: write a latent to a numbered .latent file and keep counting from what is already in the folder. In: samples, save_path, prefix; out: directory_path.
  • Δ Load Video Latent — triXope LoadAndConcatVideoLatentsFromDir: loads the latents in a folder and joins them, batch-wise or along time. In: directory_path, latent_load_cap, skip_first_latents, concat_dimension.
  • Δ Wan Directory Video Decoder / Δ LTXV Directory Video Decoder — triXope WanDirectoryVideoDecoder, triXope LTXVDirectoryVideoDecoder: decode a folder of latents into one video, multiplexed or tiled to stay inside the GPU and system RAM. In: directory_path, vae, latent_load_cap, skip_first_latents (plus tile size for Wan); out: image.
  • Δ VAE Encode Batched (WanVideo) — triXope WanVAEEncodeBatched: encodes a long frame sequence in overlapping batches so it fits in VRAM. In: pixels, vae, per_batch plus tiling; out: LATENT.
  • Δ VAE Decode Batched (WanVideo) / Δ VAE Decode Batched (Native) — triXope WanVAEDecodeBatched, triXope VAEDecodeBatched_Native: decode a long latent in overlapping batches, keeping motion consistent at low VRAM. In: samples/latents, vae, per_batch, latent_overlap, tiling; out: IMAGE.

triXope/loaders — Loaders

  • Δ Universal Loader (MultiGPU) — triXope UniversalLoaderMultiGPU: loads a UNet or DiT, one or two text encoders, an image/video VAE and an optional audio VAE, and spreads them across your GPUs automatically (auto, balanced free VRAM, or a device per model). In: the model names, model_type, distribution_mode, optional weight_dtype and per-model devices; out: MODEL, IMAGE_MODEL, CLIP, VIDEO_VAE, IMAGE_VAE, AUDIO_VAE. Reads .gguf too.
  • Δ Efficient Image Batch Loader — triXope EfficientImageBatchLoader: loads a numbered frame sequence as one batch without filling RAM. In: directory_path, start_index, frame_count, file_pattern.
  • Δ Load (Character) Image, Δ Load (Outfit) Image, Δ Load (Scene) Image — triXope Load (Character) Image, triXope Load (Outfit) Image, triXope Load (Scene) Image: pickers pointed at _film/input/characters, _film/input/outfits and _film/input/scenes. Out: IMAGE and the file name.

triXope/utilities — Utilities

  • Δ Any Cast — triXope AnyCast: lets a * output feed a typed input, converting text, number and boolean values. In: TYPE, ANY.
  • Δ Any Switch / Δ Any Switch Inversed — triXope AnySwitch, triXope AnySwitchInversed: pick between two inputs, falling back to the other when one is empty, or send one value down one of two branches. In: select, plus any_1/any_2 or any_value.
  • Δ Text Switch — triXope text_switch: picks one of up to a hundred text inputs by index. In: index, text0…99; out: text.
  • Δ Prompt Counter — triXope CurrentPromptDisplay: shows "working on x to y of z" while a loop runs and passes the signal on. In: start, end, total, signal; out: signal, text.
  • Δ Realtime Loop Tracker — triXope RealtimeLoopTracker: shows loop progress and remaining time in the node body. In: index, total; out: index.
  • Δ LTXV Real-Time ETA — triXope LTXV_ETA_Display: displays the live ETA from Film Auteur (LTX). In: real_time_eta.
  • Δ Group Monitor / Δ Group Highlighter — triXope GroupMonitor, triXope WorkflowGroupHighlighter: show which workflow group is running. In (monitor): passthrough.
  • Δ Final Frame Selector / Δ First Frame Selector — triXope FinalFrameSelector, triXope FirstFrameSelector: keep only the last, or first, frame of a batch. In: images.
  • Δ Smart Reference Filter — triXope SmartReferenceFilter: keeps only the reference images whose character is named in the prompt. In: split_prompt, ref_image_batch, character_names; out: filtered_ref_image, has_character.
  • Δ Smart Conditioning Selector — triXope SmartConditioningSelector: picks the reference-conditioned branch or the plain text-to-video branch depending on whether a character is named in the prompt. In: the prompt, both branches' conditioning and latents, and the character names.
  • Δ String Cleaner — triXope StringCleaner: flattens a multi-line string onto one line. In: text.

triXope/video — Video

  • Δ Video Upscale To Dimensions — triXope Video_Upscale_To_Dimensions: upscales a video batch frame by frame to exact dimensions with an upscale model, choosing a memory strategy that suits your GPU. In: model_name, images, width, height, crop_behavior, upscale_method, device_strategy.
  • Δ Multi-Clip Duration Trimmer — triXope MultiClipTrimmer: trims a joined multi-shot clip to an exact length per shot, cutting the start of each one (where VAE warm-up frames sit) and keeping audio in sync. In: images, clip_count, clip_duration, fps, optional audio.
  • Δ LTXV Trim A/V — triXope LTXVPostSliceAV: drops leading frames and the matching audio from a generated clip. In: images, drop_first_n_frames, fps, optional audio.
  • Δ Video Preview — triXope VideoPreview: plays a video from the pack's film output folder inside the node. In: video.

triXope/writing — Writing

  • Δ H3 Screenwriter — triXope ScreenplayFormatterNode: turns a script into everything the film nodes need — a formatted screenplay, a shot list, story beats, shot lengths, the character, prop and location lists, a colour palette and the asset list. Type, load or transcribe the script; choose format, aspect ratio, genre and style. Runs on a connected CLIP text model, a Local: model, or an Ollama server, and with an empty script it writes a complete original screenplay on its own. In: raw_script, the writing and format settings, optional clip, script_override_text, script_override_audio; out: script, shot_list, story_beats, story_length, shot_count, shot_lengths, character_list, prop_list, location_list, color_palette, asset_list.
  • Δ Shot Length Selector — triXope ShotLengthSelectorNode: picks one length out of a list of shot lengths. In: shot_index, shot_length; out: selected_length.
  • Δ Shot Length Buffer / Holder — triXope ShotLengthBufferNode: keeps the last shot-length list in a widget so it survives between runs. In: shot_length; out: shot_length (list).
  • Δ Character Craft — triXope CharacterCraft: builds a prompt-ready character description from drop-downs (age, face, hair, wardrobe, personality, background and more). Out: character_info.
  • Δ Story Craft — triXope StorySelect: assembles a story prompt from genre, structure, flow, period, setting and art-style pickers. Out: story_prompt.
  • Δ Prompt Split & Select — triXope PromptSplitSelect: splits pipe-separated text and returns one entry plus how many there are, wrapping around for loops. In: text, index.
  • Δ Batch Ollama Writer — triXope BatchOllamaWriter: sends a list of shot prompts to a local Ollama model one at a time and writes every answer to one file, so a long shot list can be rewritten overnight. In: prompts_text, delimiter, system_instruction, ollama_url, ollama_model, output_dir, filename, seed; out: saved_file_path, file_contents, processed_count.

Good to know

  • DLSS 5 is optional. Without the runtime the upscaling pass is skipped and the node says why; stills and clips render anyway.
  • Face restoration models go in the pack's own facerestore_models/ folder.
  • Projects are plain folders, so they can be moved, copied or backed up like any other; the Project Manager creates, loads and deletes them.
  • Long renders reuse finished shots and references, so stopping a run only costs the shot it was working on.
  • FFmpeg is needed by Panorama 360 Rotate, and by video export.