Extensions/ComfyUI-PainterNodes
ComfyUI Extension

ComfyUI-PainterNodes

Video generation nodes for LTX, Wan2.2, Bernini, qwen image edit,flux image edit, and utility nodes.

By princepainter·Created 10 months ago·Updated 2 days ago· 203
princepainter/ComfyUI-PainterNodes
Nodes36
On cloudLocal install
CategoryPainter/MiniMax, audio/processing
Stars203
Updated2 days ago

Nodes (36)

H3 SageAttention (Mem Eff)

Buying VRAM back when MiniMax H3's attention pass eats your card

Painter/MiniMax
Painter Audio Cut

Cut Audio to Wan's 4N+1 Frame Grid Without Doing the Math Yourself

audio/processing
Painter Audio Mask

The H3 're-dub one line' node that never actually touches your audio

audio/mask
Painter Audio Upload

Feed a lip-sync a real audio file without leaving the graph

audio/input
PainterFLF2V

Pin the first and last frame, let the middle move

conditioning/video_models
Painter Flux Image Edit

One Node for Flux 2 / Klein Text-to-Image and Editing

advanced/conditioning
Painter Frame Extractor

Pull two frames out of any video batch

image/batch
PainterI2V

The one-knob fix for Wan 2.2 clips that move like molasses

conditioning/video_models
PainterI2VAdvanced

More motion out of Wan 2.2 I2V — without the green cast

conditioning/video_models
Painter Image Concat

Stack videos side by side without the manual labor

painter/image
PainterImageFromBatch

The last-frame grabber that fixes ImageFromBatch's dumbest limit

image/batch
Painter Load Video

The loader that cuts your clip to what the model will actually eat

PainterNodes
Painter LTX2V Omni

The node that gives Bernini a voice

model/conditioning/ltxv
Mel-Band RoFormer

Split a song into vocals and backing track inside ComfyUI, no DAW required

audio/processing
Painter MiniMax FL2VA

Anchored frames, borrowed voice

model/conditioning/minimax
Painter MiniMax FL2VA 2

Pinning the first and last frame of an H3 clip without softening them

model/conditioning/minimax
Painter MiniMax FL2VA 3

The same H3 frame anchors, with the canvas on output wires

model/conditioning/minimax
Minimax H3 Latent Upscaler (3D)

Upscale in latent space, not pixels

PainterNodes/latent
Painter MiniMax Ref To Video

Reference conditioning for H3, done properly

model/conditioning/minimax
Painter MiniMax Ref To Video 2

Same reference magic, uploads handled inside

model/conditioning/minimax
Painter MiniMax Ref To Video 3

The MiniMax H3 reference node that finally keeps your pictures inside the node

model/conditioning/minimax
Painter MiniMax Ref To Video 6

Upload the reference photos inside the node, then @ them in the prompt

model/conditioning/minimax
Painter Qwen Image 2.1

One node for positive, negative and the latent — no negative prompt required

advanced/conditioning
Painter Qwen Image Edit

Instruction editing, pixel-perfect

advanced/conditioning
Painter Resize Images

Fit your frames to a long edge, keep the ratio

Painter/Utils
Painter Seed

One seed for every sampler, plus a dice button that runs it

Painter/Seed
Painter Sigmas Graph

Draw the denoise curve you actually want, then plug it into a sampler

Painter/Sigmas
Painter H3 Size Settings

Stop doing frame maths by hand for MiniMax H3

Painter/Utils
Painter Text Overlay

Label every frame in one pass — Painter Text Overlay

PainterNodes
Painter V2AV

Wan 2.2 makes beautiful silent video — Painter V2AV gives it sound

Painter/LTXV
Painter Video Combine

The video saver that finally lets you set the FPS — and plays the clip right on the node

Painter/Video
Painter Video Combine 2

Two buttons that stop your six previews fighting each other

Painter/Video
Painter Video Combine 3

The save node that muxes your soundtrack and hides its own settings

Painter/Video
Painter VRAM

Make ComfyUI stop taking the whole card, without restarting it

VRAM
VideoInfoLoaded

The node that finally turns VHS's video_info into numbers you can wire

VideoInfo
VideoInfoSource

The original file's fps, frame count and resolution, straight from VHS

VideoInfo
Readme

<a name="中文"></a>

本节点包由 绘画小子 制作

此节点包中的部分节点参考了comfy官方节点部分代码以及kijai和VHS节点的部分代码,在此表示感谢🙏 此节点包完全开源免费使用

📖 简介

Painter Nodes 是一个为 ComfyUI 设计的综合性自定义节点合集,专为高级图像和视频生成工作流打造。本插件目前包集成了多个强大的节点(后续新增节点都会放进此整合包),涵盖图生视频、文生视频,视频编辑,视频配音,参考生视频,文生图、图片编辑、音频驱动视频生成、视频对口型等功能。

✨更新日志:

2026-11-27更新

新增PainterMingImageEdit节点(显示名 Painter Ming Image Edit):Ming-Image 图片编辑条件节点,功能形态与 PainterQwenImage21 一致——一个节点直接输出 positive / negative / latent,负向条件由正向条件零化自动生成(连 Ming 特有的 direct_context 一并置零),不需要填负向提示词;参考图自动增长输入(最多 8 张),每张等比缩放到与输出画布同量级的面积、绝不裁剪,竖屏参考图也能出横屏画面;输出尺寸由 width / height 独立精确控制,与参考图比例无关;带透明通道的参考图走双路:视觉塔看白底合成后的图,VAE 路保留 alpha。注意 Ming-Image 的 latent 规格与 Qwen Image 2.1 不同:16 通道 / 8 倍空间下采样(Qwen 2.1 是 64 通道 / 16 倍),所以本节点的 width / height 按 16 的倍数对齐、输出的空白 latent 是画布尺寸的 1/8,vae 引脚必须接 Ming-Image 配套 VAE,两者不能混用。更新后请重启 ComfyUI。

2026-11-13更新

修复 PainterMiniMaxFL2VA / PainterMiniMaxFL2VA2 / PainterMiniMaxFL2VA3 三个节点影响其他节点的问题(issue #10):旧版补丁在插件加载时全局挂到官方 MiniMaxH3.extra_conds / PackedLayout 上,即使画布上不用本包任何节点,也会干预官方节点和第三方 H3 节点包的采样;第三方续接包往 keyframes 里放没有 latent 的上下文块时还会报 KeyError: 'latent'。现在:①补丁只作用于这三个节点自己产出的 conditioning(conditioning 里带专属标记,其他节点/其他包的 conditioning 一律原样透传,不做任何改动);②当前官方 ComfyUI 已修复该覆盖 bug 时(存在 MiniMaxH3._cond_latents 的版本),补丁自动退位、完全不介入,只有装旧版 ComfyUI 的用户才触发修复;③没有 latent 的 keyframe 块安全过滤,不再崩;④已失效的 PackedLayout 位置补丁(空转发死代码)整段移除,官方 PackedLayout.init 不再被包装。三个节点的功能、输入、输出全部不变,已有工作流无需改动。更新后请重启 ComfyUI。

2026-9-29更新

新增PainterVideoCombine3节点(显示名 Painter Video Combine 3):在 PainterVideoCombine2 的基础上,于节点第一行的按钮组右边再加一个小眼睛按钮 👁,用来一键切换节点面板上「帧率、格式、文件名前缀、保存工作流信息」这四项的显示与隐藏。默认状态下这四项是隐藏的,节点保持最简洁;点一下眼睛按钮全部展开,再点一下重新收起。展开状态会随工作流保存,手动展开过的工作流下次打开依然是展开的,没动过的仍是默认收起(右键菜单也加了 Show / Hide node options 的同款开关)。其余行为与 PainterVideoCombine2 完全一致:⟳ 同步预览、⏸/▶ 同步暂停/继续播放,后端逻辑与节点2一字未改。原 PainterVideoCombine / PainterVideoCombine2 节点保持不变。注意:新增的是 Python 节点,需要重启 ComfyUI 才会出现。

2026-9-24更新

新增PainterVideoCombine2节点(显示名 Painter Video Combine 2):在 PainterVideoCombine 的基础上,于节点第一行(images 行)水平居中加了两个小图标按钮——⟳「同步预览」和 ⏸/▶「同步暂停/继续播放」。同步预览=右键菜单 Sync preview 的同款行为(工作区内所有 Painter 预览视频回到起点重播,动图刷新重播);同步暂停会让工作区所有预览视频一起暂停,按钮变红并切换成播放图标,再点一次一起继续播。按钮是独立的 DOM 覆盖层,不新增 widget、不改变节点尺寸与排版,节点拉宽拉窄都保持居中,并且在 ComfyUI 的 Nodes 2.0(Vue 节点)渲染模式下同样可用。原 PainterVideoCombine 节点保持不变。

2026-9-22更新

新增PainterSizeSettings节点(显示名 Painter H3 Size Settings):把参考生视频工作流里的“尺寸设置”子工作流转成独立节点,省掉一层子工作流。宽高比固定两项 16:9 (Widescreen) / 9:16 (Portrait),默认 16:9;分辨率共 11 档并随宽高比自动切换:16:9 是 512288 / 736416 / 800448 / 960544 / 1024576 / 1280736 / 1376768 / 1472832 / 1536864 / 1600896 / 19201088,默认 1376768;切到 9:16 时同一档自动翻成竖版(1376768 → 7681376,也就是竖版默认),不会重置回第一项。时长默认 5 秒,左右三角每点一次 ±1 秒,也可以直接手动输入 5.1 / 5.3 这类小数;帧数沿用原公式换算,24fps 取整后对齐到 17k+5(5 秒 = 124 帧、5.3 秒 = 141 帧、6 秒 = 158 帧)。输出:宽度 / 高度 / 帧数,其中帧数可直接接 PainterMiniMaxRefToVideo6 的 length。

2026-9-20更新

新增PainterQwenImage21节点:适配 Qwen Image 2.1(基于官方 TextEncodeQwenImage21 优化)。参考图缩放一次、视觉塔与 VAE 两路复用,一次性输出 正条件/负条件/latent;无需输入负向提示词,负向条件由正向条件零化得到(结构与正向完全一致);宽、高、批次集中在节点底部,输出尺寸 32 倍数对齐,第 1 张参考图作为编辑基准,其余参考图按同尺度等比缩放,最多 16 张参考图。注意:需要 ComfyUI 0.36 以上版本,以及 Qwen Image 2.1 专用的 DiT、VAE(64 通道)与 Qwen3-VL-8B 文本编码器,旧版 2509/2511/2512 的权重不适用。

2026-9-19更新

删除16个过时节点(wan2.2,humo,infinitetalk等相关过时节点,反正有了H3,那些过时节点用不上了,直接删掉了)

2026-8-13更新

新增优化版MiniMaxRefToVideo2节点,参考图全部节点内部上传,更直观清晰。参考音频和视频用的情况不多,依然从外部输入。其他用法相同:可以对提示词按minimax H3官方skill进行格式化,效果很不错!使用方法示例:选择素材直接@:@图片1 @音频1 @视频1 第3.5秒开始切镜:切镜3.5+空格 台词:【台词内容】+空格

<img width="1439" height="1559" alt="image" src="https://github.com/user-attachments/assets/9a3531eb-79c3-4781-8a68-333108f1f311" />

2026-8-9更新

新增优化版MiniMaxRefToVideo节点,可以对提示词按minimax H3官方skill进行格式化,效果很不错!使用方法示例:选择素材直接@:@图片1 @音频1 @视频1 第3.5秒开始切镜:切镜3.5+空格 台词:【台词内容】+空格

<img width="2190" height="1473" alt="image" src="https://github.com/user-attachments/assets/d29ad9e0-b30f-4f93-ac2d-e0e0ed643af0" />

2026-7-8更新

新增PainterLTX2Vomni节点,可以对bernini生成的无声视频进行配音对口型,效果非常不错!值得尝试!节点同时支持文生视频,图生视频,首尾帧生视频,参考生视频等多种任务(相关工作流见项目下workflows文件夹)

2026-7-2更新

新增PainterV2AV节点,可以用ltx2.3对wan2.2生成的无声视频进行高清+配音,wan2.2的动态,LTX2.3生声音,结合两者优点,等于给wan2.2插上翅膀,音画同出,速度很快,效果不错,值得尝试。(相关工作流见项目下workflows文件夹)

2026-2-10更新

新增PainterHumoAI2V节点,实现wan2.2+Humo 音频驱动图生视频,音频驱动图生首尾帧视频 以及 音频驱动文生视频(把图片接入断开,同时将高燥模型和lora更换为WAN2.2 T2V 高燥模型和lora即是文生有声视频),可自定义音频说话帧率(建议16~30)效果不错,建议尝试(相关工作流见项目下workflows文件夹)

2026-2-9更新

新增PainterHumoAV2V节点,实现Humo模型2步采样进行视频对口型功能,可自定义音频说话帧率(建议16~30),效果不错,建议尝试(工作流见项目下workflows文件夹)

2026-2-1更新:

新增PainterS2Vplus节点:实现WAN2.2-S2V模型视频2步采样对口型功能,比infinitetalk更快速度视频对口型(工作流见项目下workflows文件夹)

2026-1-31更新:

升级PainterQwenImageEdit节点: 支持自定义编辑图片数量,最多10图编辑,支持文生图,支持遮罩编辑,编辑图片像素无偏移,支持批次设定

2026-1-30更新:

升级PainterFluxImageEdit节点: 支持自定义编辑图片数量,最多10图编辑,支持文生图,支持遮罩编辑,编辑图片像素无偏移,支持批次设定(支持QWEN edit模型)


✨ 功能特性

请自行探索

🚀 安装方法

方法 1:手动安装

  1. 从 Releases 页面下载最新版本

  2. 将 Painter-Nodes 文件夹解压到 ComfyUI 的 custom_nodes 目录:

    ComfyUI/
    └── custom_nodes/
        └── Painter-Nodes/
          
    
  3. 安装依赖:

    cd ComfyUI/custom_nodes/Painter-Nodes
    pip install -r requirements.txt
    
  4. 重启 ComfyUI

方法 2:ComfyUI-Manager

在 ComfyUI-Manager 中搜索 "PainterNodes" 直接安装。

📋 环境要求

soundfile>=0.12.1
numpy>=1.21.0

🎯 使用方法

每个节点的介绍可以去看我主页该节点单独页面。很简单,自己尝试尝试。如果对你有用,请给我点一颗星星,多谢🙏