{
  "id": "6afa5f0c-324b-4f0d-8807-f6913bc1a61c",
  "revision": 0,
  "last_node_id": 953,
  "last_link_id": 997,
  "nodes": [
    {
      "id": 1,
      "type": "UNETLoader",
      "pos": [
        1753.4945081574122,
        6877.759419414855
      ],
      "size": [
        491.701851920001,
        84.40384346867904
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "UNETLoader",
        "models": [
          {
            "name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
            "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
            "directory": "diffusion_models"
          }
        ]
      },
      "widgets_values": [
        "minimax_h3_ref2va_pruned_fp8_scaled.safetensors",
        "default"
      ],
      "widgets_values_named": {
        "unet_name": "minimax_h3_ref2va_pruned_fp8_scaled.safetensors",
        "weight_dtype": "default"
      }
    },
    {
      "id": 2,
      "type": "CLIPLoader",
      "pos": [
        1753.828599479555,
        7021.708722796057
      ],
      "size": [
        484.70665625585,
        108.80768693735808
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            2
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "CLIPLoader",
        "models": [
          {
            "name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
            "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
            "directory": "text_encoders"
          }
        ]
      },
      "widgets_values": [
        "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
        "minimax",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
        "type": "minimax",
        "device": "default"
      }
    },
    {
      "id": 3,
      "type": "Lora Loader Stack (rgthree)",
      "pos": [
        2304.3472035459095,
        6885.865017583678
      ],
      "size": [
        476.17219862055015,
        517.2835046337805
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        },
        {
          "name": "clip",
          "type": "CLIP",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            3
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            25
          ]
        }
      ],
      "properties": {
        "cnr_id": "rgthree-comfy",
        "ver": "1.0.2608210019",
        "Node name for S&R": "Lora Loader Stack (rgthree)"
      },
      "widgets_values": [
        "h3_character_swap_v1.5.safetensors",
        1,
        "minimax_h3_ref2v_turbo_8step_v1.1_768p_comfyui_bf16.safetensors",
        0.85,
        "None",
        1,
        "None",
        1
      ],
      "widgets_values_named": {
        "lora_01": "h3_character_swap_v1.5.safetensors",
        "strength_01": 1,
        "lora_02": "minimax_h3_ref2v_turbo_8step_v1.1_768p_comfyui_bf16.safetensors",
        "strength_02": 0.85,
        "lora_03": "None",
        "strength_03": 1,
        "lora_04": "None",
        "strength_04": 1
      }
    },
    {
      "id": 4,
      "type": "MiniMaxH3SigmaShift",
      "pos": [
        2825.858348785844,
        6877.849036204603
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            995
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.30.0",
        "Node name for S&R": "MiniMaxH3SigmaShift",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        10,
        3
      ],
      "widgets_values_named": {
        "shift_video": 10,
        "shift_audio": 3
      }
    },
    {
      "id": 5,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -600.7815574833422,
        7331.262256513563
      ],
      "size": [
        1095.1344715949804,
        215.49842352567794
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            35
          ]
        }
      ],
      "title": "Input Text (Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Replace the boxer in <Video_1> with the character from <Picture_1>, including his complete outfit. Preserve his illustrated art style, face, black hair, clear glasses, silver necklace, pale lavender graphic T-shirt, black crossbody bag, black cargo trousers, and black sneakers with neon-yellow accents. Keep all details consistent throughout.\n\nMatch the source boxer’s punches, guard positions, head movements, body turns, footwork, weight shifts, and timing. Preserve the original camera and framing. Allow the clothing, necklace, and bag to move naturally with the action.\n\nReplace the entire source environment with <Picture_2>: the neon-lit nighttime plaza, elevated concrete roadway, distant skyscrapers, and wet reflective pavement. Match its cyan and pink lighting while preserving the character’s illustrated appearance. Maintain grounded feet, natural contact shadows, and consistent reflections.\n\nUse <Picture_1> for the character and wardrobe, <Picture_2> for the environment and lighting, and <Video_1> for movement and camera behavior. Do not include the character sheet or its background."
      ],
      "widgets_values_named": {
        "value": "Replace the boxer in <Video_1> with the character from <Picture_1>, including his complete outfit. Preserve his illustrated art style, face, black hair, clear glasses, silver necklace, pale lavender graphic T-shirt, black crossbody bag, black cargo trousers, and black sneakers with neon-yellow accents. Keep all details consistent throughout.\n\nMatch the source boxer’s punches, guard positions, head movements, body turns, footwork, weight shifts, and timing. Preserve the original camera and framing. Allow the clothing, necklace, and bag to move naturally with the action.\n\nReplace the entire source environment with <Picture_2>: the neon-lit nighttime plaza, elevated concrete roadway, distant skyscrapers, and wet reflective pavement. Match its cyan and pink lighting while preserving the character’s illustrated appearance. Maintain grounded feet, natural contact shadows, and consistent reflections.\n\nUse <Picture_1> for the character and wardrobe, <Picture_2> for the environment and lighting, and <Video_1> for movement and camera behavior. Do not include the character sheet or its background."
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 6,
      "type": "ModelAttentionBackend",
      "pos": [
        2826.341938989216,
        7013.766204884722
      ],
      "size": [
        241.96563413908723,
        58
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 995
        }
      ],
      "outputs": [
        {
          "name": "model",
          "type": "MODEL",
          "links": [
            13,
            19
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "ModelAttentionBackend"
      },
      "widgets_values": [
        "comfy kitchen attention"
      ],
      "widgets_values_named": {
        "attention": "comfy kitchen attention"
      }
    },
    {
      "id": 7,
      "type": "VAELoader",
      "pos": [
        1756.9740996463015,
        7191.267826579847
      ],
      "size": [
        484.70665625585025,
        71.39903913282978
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            16,
            26
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "minimax_h3_video_vae_fp16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_fp16.safetensors",
            "directory": "vae"
          }
        ]
      },
      "widgets_values": [
        "minimax_h3_video_vae_fp16.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "minimax_h3_video_vae_fp16.safetensors"
      }
    },
    {
      "id": 9,
      "type": "VAELoader",
      "pos": [
        1758.437847696645,
        7340.144365931482
      ],
      "size": [
        482.11530406037855,
        58
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            18,
            27
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "minimax_h3_audio_vae_fp32.safetensors",
            "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors",
            "directory": "vae"
          }
        ]
      },
      "widgets_values": [
        "minimax_h3_audio_vae_fp32.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
      }
    },
    {
      "id": 10,
      "type": "ComfyMathExpression",
      "pos": [
        2804.7738028590793,
        7818.477457512882
      ],
      "size": [
        225,
        148
      ],
      "flags": {
        "collapsed": true
      },
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 6
        },
        {
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": 985
        },
        {
          "name": "values.c",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": []
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            8,
            36
          ]
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17"
      ],
      "widgets_values_named": {
        "expression": "max(5, round(a * 24)) + (5 - (max(5, round(a * 24)) % 17)) % 17"
      }
    },
    {
      "id": 11,
      "type": "PrimitiveFloat",
      "pos": [
        59.93868422990921,
        7793.79240193393
      ],
      "size": [
        433.7209942999873,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": [
            6
          ]
        }
      ],
      "title": "Duration (seconds)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "PrimitiveFloat"
      },
      "widgets_values": [
        4
      ],
      "widgets_values_named": {
        "value": 4
      },
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 12,
      "type": "LoadImage",
      "pos": [
        -589.7106790556129,
        5937.5639313773745
      ],
      "size": [
        489.8172115954401,
        405.2580187363783
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            33
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": []
        }
      ],
      "title": "Picture",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "character-ref (1).png",
        "image"
      ],
      "widgets_values_named": {
        "image": "character-ref (1).png",
        "upload": "image"
      }
    },
    {
      "id": 13,
      "type": "VHS_LoadVideo",
      "pos": [
        -85.05968500033136,
        5942.421925994476
      ],
      "size": [
        571.7474688621135,
        1304.8843890882017
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        },
        {
          "name": "force_rate",
          "type": "FLOAT",
          "widget": {
            "name": "force_rate"
          },
          "link": 7
        },
        {
          "name": "frame_load_cap",
          "type": "INT",
          "widget": {
            "name": "frame_load_cap"
          },
          "link": 8
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            10
          ]
        },
        {
          "name": "frame_count",
          "type": "INT",
          "links": []
        },
        {
          "name": "audio",
          "type": "AUDIO",
          "links": [
            30,
            996
          ]
        },
        {
          "name": "video_info",
          "type": "VHS_VIDEOINFO",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "1.7.9",
        "Node name for S&R": "VHS_LoadVideo"
      },
      "widgets_values": {
        "video": "shadowbox-ref.mp4",
        "force_rate": 24,
        "custom_width": 0,
        "custom_height": 0,
        "frame_load_cap": 0,
        "skip_first_frames": 0,
        "select_every_nth": 1,
        "format": "AnimateDiff",
        "choose video to upload": "image",
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "shadowbox-ref.mp4",
            "type": "input",
            "format": "video/mp4",
            "force_rate": 24,
            "custom_width": 0,
            "custom_height": 0,
            "frame_load_cap": 0,
            "skip_first_frames": 0,
            "select_every_nth": 1
          }
        }
      },
      "widgets_values_named": {
        "video": "shadowbox-ref.mp4",
        "force_rate": 24,
        "custom_width": 0,
        "custom_height": 0,
        "frame_load_cap": 0,
        "skip_first_frames": 0,
        "select_every_nth": 1,
        "format": "AnimateDiff",
        "choose video to upload": "image",
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "shadowbox-ref.mp4",
            "type": "input",
            "format": "video/mp4",
            "force_rate": 24,
            "custom_width": 0,
            "custom_height": 0,
            "frame_load_cap": 0,
            "skip_first_frames": 0,
            "select_every_nth": 1
          }
        }
      }
    },
    {
      "id": 14,
      "type": "PrimitiveFloat",
      "pos": [
        -598.6308159087077,
        7595.608805363425
      ],
      "size": [
        442.5859154061093,
        58
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": [
            9
          ]
        }
      ],
      "title": "Megapixels",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "PrimitiveFloat"
      },
      "widgets_values": [
        1
      ],
      "widgets_values_named": {
        "value": 1
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 15,
      "type": "ResolutionSelector",
      "pos": [
        -147.5613393900165,
        7597.329081534456
      ],
      "size": [
        645.6825720248105,
        150
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "showAdvanced": false,
      "inputs": [
        {
          "name": "megapixels",
          "type": "FLOAT",
          "widget": {
            "name": "megapixels"
          },
          "link": 9
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            37,
            39
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            38,
            40
          ]
        }
      ],
      "title": "Resolution Selector (Size)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.30.0",
        "Node name for S&R": "ResolutionSelector"
      },
      "widgets_values": [
        "9:16 (Portrait Widescreen)",
        0.8,
        32
      ],
      "widgets_values_named": {
        "aspect_ratio": "9:16 (Portrait Widescreen)",
        "megapixels": 0.8,
        "multiple": 32
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 17,
      "type": "ImageResizeKJv2",
      "pos": [
        2817.3900252494377,
        7133.025231966788
      ],
      "size": [
        270,
        556
      ],
      "flags": {
        "collapsed": false
      },
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 10
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 39
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 40
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            992,
            994
          ]
        },
        {
          "name": "width",
          "type": "INT",
          "links": []
        },
        {
          "name": "height",
          "type": "INT",
          "links": []
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "3df15ed824045ca45ba668869965a72c7d9d9825",
        "Node name for S&R": "ImageResizeKJv2"
      },
      "widgets_values": [
        480,
        736,
        "nearest-exact",
        "pad",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ],
      "widgets_values_named": {
        "width": 480,
        "height": 736,
        "upscale_method": "nearest-exact",
        "keep_proportion": "pad",
        "pad_color": "0, 0, 0",
        "crop_position": "center",
        "divisible_by": 2,
        "device": "cpu"
      }
    },
    {
      "id": 18,
      "type": "PrimitiveFloat",
      "pos": [
        -378.94912413918644,
        7793.394488175926
      ],
      "size": [
        427.7667182598909,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": [
            7,
            31,
            985
          ]
        }
      ],
      "title": "(input:Float) FPS",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.30.0",
        "Node name for S&R": "PrimitiveFloat"
      },
      "widgets_values": [
        24
      ],
      "widgets_values_named": {
        "value": 24
      },
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 19,
      "type": "RandomNoise",
      "pos": [
        3121.94960236063,
        6871.570562166475
      ],
      "size": [
        360,
        90
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "NOISE",
          "type": "NOISE",
          "links": [
            20
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "RandomNoise"
      },
      "widgets_values": [
        684377502684255,
        "randomize"
      ],
      "widgets_values_named": {
        "noise_seed": 684377502684255,
        "control_after_generate": "randomize"
      }
    },
    {
      "id": 20,
      "type": "KSamplerSelect",
      "pos": [
        3132.741129755178,
        7128.764913762844
      ],
      "size": [
        370,
        70
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            22
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "KSamplerSelect"
      },
      "widgets_values": [
        "euler"
      ],
      "widgets_values_named": {
        "sampler_name": "euler"
      }
    },
    {
      "id": 21,
      "type": "BasicGuider",
      "pos": [
        3129.1439539569956,
        7018.764913762844
      ],
      "size": [
        360,
        60
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 13
        },
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 14
        }
      ],
      "outputs": [
        {
          "name": "GUIDER",
          "type": "GUIDER",
          "links": [
            21
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "BasicGuider"
      }
    },
    {
      "id": 22,
      "type": "VAEDecode",
      "pos": [
        2569.046090725806,
        7724.695374199607
      ],
      "size": [
        230,
        60
      ],
      "flags": {
        "collapsed": false
      },
      "order": 29,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 15
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 16
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            29
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "VAEDecode"
      }
    },
    {
      "id": 23,
      "type": "VAEDecodeAudio",
      "pos": [
        2567.3930807189604,
        7843.78692584098
      ],
      "size": [
        230,
        60
      ],
      "flags": {
        "collapsed": false
      },
      "order": 30,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 17
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 18
        }
      ],
      "outputs": [
        {
          "name": "AUDIO",
          "type": "AUDIO",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "VAEDecodeAudio"
      }
    },
    {
      "id": 24,
      "type": "BasicScheduler",
      "pos": [
        3136.078660700382,
        7249.784567102998
      ],
      "size": [
        370,
        156
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 19
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            23
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "BasicScheduler"
      },
      "widgets_values": [
        "simple",
        10,
        1
      ],
      "widgets_values_named": {
        "scheduler": "simple",
        "steps": 10,
        "denoise": 1
      }
    },
    {
      "id": 25,
      "type": "SamplerCustomAdvanced",
      "pos": [
        3540.2200465504266,
        7459.367637936608
      ],
      "size": [
        212.38333740234376,
        339.2284597357366
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [
        {
          "name": "noise",
          "type": "NOISE",
          "link": 20
        },
        {
          "name": "guider",
          "type": "GUIDER",
          "link": 21
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 22
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 23
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 24
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            15,
            17
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "SamplerCustomAdvanced"
      }
    },
    {
      "id": 26,
      "type": "MiniMaxH3ReferenceToVideo",
      "pos": [
        3122.79565350121,
        7461.575620430778
      ],
      "size": [
        382.51806259898444,
        504
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 25
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": 26
        },
        {
          "name": "audio_vae",
          "shape": 7,
          "type": "VAE",
          "link": 27
        },
        {
          "label": "ref_image_0",
          "name": "ref_images.ref_image_0",
          "shape": 7,
          "type": "IMAGE",
          "link": 33
        },
        {
          "name": "ref_images.ref_image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 997
        },
        {
          "name": "ref_images.ref_image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "ref_images.ref_image_3",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "label": "ref_video_0",
          "name": "ref_videos.ref_video_0",
          "shape": 7,
          "type": "IMAGE",
          "link": 993
        },
        {
          "name": "ref_videos.ref_video_1",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "ref_videos.ref_video_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "label": "ref_video_audio_0",
          "name": "ref_video_audios.ref_video_audio_0",
          "shape": 7,
          "type": "AUDIO",
          "link": 996
        },
        {
          "name": "ref_video_audios.ref_video_audio_1",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "label": "ref_audio_0",
          "name": "ref_audios.ref_audio_0",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "ref_audios.ref_audio_1",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": 35
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 37
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 38
        },
        {
          "name": "length",
          "type": "INT",
          "widget": {
            "name": "length"
          },
          "link": 36
        },
        {
          "name": "ref_video_audios.ref_video_audio_2",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "ref_audios.ref_audio_2",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            14
          ]
        },
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            24
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.33.0",
        "Node name for S&R": "MiniMaxH3ReferenceToVideo"
      },
      "widgets_values": [
        "@Video0 @Image1\n\nReplace the main character in @Video0 with the exact character shown in @Image1.\n\nImage 1 is the only allowed character identity.\nPreserve the original performance, body movement, timing, camera work, and scene from Video 0 completely.\nDo not keep any facial features or appearance from the original character.",
        480,
        832,
        124,
        "match"
      ],
      "widgets_values_named": {
        "prompt": "@Video0 @Image1\n\nReplace the main character in @Video0 with the exact character shown in @Image1.\n\nImage 1 is the only allowed character identity.\nPreserve the original performance, body movement, timing, camera work, and scene from Video 0 completely.\nDo not keep any facial features or appearance from the original character.",
        "width": 480,
        "height": 832,
        "length": 124,
        "ref_image_size": "match"
      }
    },
    {
      "id": 27,
      "type": "VHS_VideoCombine",
      "pos": [
        511.259527262148,
        5940.6557634133815
      ],
      "size": [
        1190.4972360404395,
        2445.140881239121
      ],
      "flags": {},
      "order": 31,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 29
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": 30
        },
        {
          "name": "meta_batch",
          "shape": 7,
          "type": "VHS_BatchManager",
          "link": null
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        },
        {
          "name": "frame_rate",
          "type": "FLOAT",
          "widget": {
            "name": "frame_rate"
          },
          "link": 31
        }
      ],
      "outputs": [
        {
          "name": "Filenames",
          "type": "VHS_FILENAMES",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfyui-videohelpersuite",
        "ver": "1.7.4",
        "Node name for S&R": "VHS_VideoCombine",
        "aux_id": "Kosinkadink/ComfyUI-VideoHelperSuite"
      },
      "widgets_values": {
        "frame_rate": 15,
        "loop_count": 0,
        "filename_prefix": "Video",
        "format": "video/h264-mp4",
        "pix_fmt": "yuv420p",
        "crf": 19,
        "save_metadata": false,
        "trim_to_audio": false,
        "pingpong": false,
        "save_output": true,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "Video_00013-audio.mp4",
            "subfolder": "",
            "type": "output",
            "format": "video/h264-mp4",
            "frame_rate": 24,
            "workflow": "Video_00013.png",
            "fullpath": "D:\\AI\\ComfyUI_windows_portable_nvidia\\ComfyUI_windows_portable\\ComfyUI\\output\\Video_00013-audio.mp4",
            "metadata": {
              "kind": "video",
              "width": 544,
              "height": 960,
              "duration": 7.291666666666667,
              "fps": 24,
              "frame_count": 175
            }
          }
        }
      },
      "widgets_values_named": {
        "frame_rate": 15,
        "loop_count": 0,
        "filename_prefix": "Video",
        "format": "video/h264-mp4",
        "pix_fmt": "yuv420p",
        "crf": 19,
        "save_metadata": false,
        "trim_to_audio": false,
        "pingpong": false,
        "save_output": true,
        "videopreview": {
          "hidden": false,
          "paused": false,
          "params": {
            "filename": "Video_00013-audio.mp4",
            "subfolder": "",
            "type": "output",
            "format": "video/h264-mp4",
            "frame_rate": 24,
            "workflow": "Video_00013.png",
            "fullpath": "D:\\AI\\ComfyUI_windows_portable_nvidia\\ComfyUI_windows_portable\\ComfyUI\\output\\Video_00013-audio.mp4",
            "metadata": {
              "kind": "video",
              "width": 544,
              "height": 960,
              "duration": 7.291666666666667,
              "fps": 24,
              "frame_count": 175
            }
          }
        }
      }
    },
    {
      "id": 947,
      "type": "CheckpointLoaderSimple",
      "pos": [
        1882.5021916051862,
        7517.666874308265
      ],
      "size": [
        285.8528424768456,
        132.20364155949574
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            986
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            990
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": []
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "CheckpointLoaderSimple",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65,
        "models": [
          {
            "name": "sam3.1_multiplex_fp16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors",
            "directory": "checkpoints"
          }
        ]
      },
      "widgets_values": [
        "sam3.1_multiplex_fp16.safetensors"
      ],
      "widgets_values_named": {
        "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
      }
    },
    {
      "id": 948,
      "type": "SAM3_VideoTrack",
      "pos": [
        2241.932194102536,
        7521.515184103298
      ],
      "size": [
        275.80859375,
        166
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 994
        },
        {
          "name": "model",
          "type": "MODEL",
          "link": 986
        },
        {
          "name": "initial_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "conditioning",
          "shape": 7,
          "type": "CONDITIONING",
          "link": 987
        }
      ],
      "outputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "links": [
            991
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.36.0",
        "Node name for S&R": "SAM3_VideoTrack"
      },
      "widgets_values": [
        0.5,
        4,
        1
      ],
      "widgets_values_named": {
        "detection_threshold": 0.5,
        "max_objects": 4,
        "detect_interval": 1
      }
    },
    {
      "id": 949,
      "type": "ImageCompositeMasked",
      "pos": [
        2564.776353383439,
        7512.074828479306
      ],
      "size": [
        211.66666259765626,
        154.9929394954579
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "IMAGE",
          "link": 992
        },
        {
          "name": "source",
          "type": "IMAGE",
          "link": 988
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 989
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            993
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.30.0",
        "Node name for S&R": "ImageCompositeMasked"
      },
      "widgets_values": [
        0,
        0,
        true
      ],
      "widgets_values_named": {
        "x": 0,
        "y": 0,
        "resize_source": true
      }
    },
    {
      "id": 950,
      "type": "CLIPTextEncode",
      "pos": [
        -943.046270184901,
        7338.035918366763
      ],
      "size": [
        328.6040144393262,
        206.82173199028057
      ],
      "flags": {
        "collapsed": false
      },
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 990
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            987
          ]
        }
      ],
      "title": "CLIP Text Encode (Prompt) - Mask Prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "CLIPTextEncode",
        "enableTabs": false,
        "tabWidth": 65,
        "tabXOffset": 10,
        "hasSecondTab": false,
        "secondTabText": "Send Back",
        "secondTabOffset": 80,
        "secondTabWidth": 65
      },
      "widgets_values": [
        "man"
      ],
      "widgets_values_named": {
        "text": "man"
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 951,
      "type": "SAM3_TrackToMask",
      "pos": [
        2240.4099260213766,
        7755.830026543827
      ],
      "size": [
        270,
        58
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [
        {
          "name": "track_data",
          "type": "SAM3_TRACK_DATA",
          "link": 991
        }
      ],
      "outputs": [
        {
          "name": "masks",
          "type": "MASK",
          "links": [
            989
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.36.0",
        "Node name for S&R": "SAM3_TrackToMask"
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "object_indices": ""
      }
    },
    {
      "id": 952,
      "type": "EmptyImage",
      "pos": [
        2238.475570987079,
        7871.3463892491
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            988
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.36.0",
        "Node name for S&R": "EmptyImage"
      },
      "widgets_values": [
        512,
        512,
        1,
        0
      ],
      "widgets_values_named": {
        "width": 512,
        "height": 512,
        "batch_size": 1,
        "color": 0
      }
    },
    {
      "id": 953,
      "type": "LoadImage",
      "pos": [
        -592.1662505096288,
        6399.757095400742
      ],
      "size": [
        493.34386075516863,
        872.62544253737
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            997
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "background (1).png",
        "image"
      ],
      "widgets_values_named": {
        "image": "background (1).png",
        "upload": "image"
      }
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      2,
      2,
      0,
      3,
      1,
      "CLIP"
    ],
    [
      3,
      3,
      0,
      4,
      0,
      "MODEL"
    ],
    [
      10,
      13,
      0,
      17,
      0,
      "IMAGE"
    ],
    [
      13,
      6,
      0,
      21,
      0,
      "MODEL"
    ],
    [
      14,
      26,
      0,
      21,
      1,
      "CONDITIONING"
    ],
    [
      15,
      25,
      0,
      22,
      0,
      "LATENT"
    ],
    [
      16,
      7,
      0,
      22,
      1,
      "VAE"
    ],
    [
      17,
      25,
      0,
      23,
      0,
      "LATENT"
    ],
    [
      18,
      9,
      0,
      23,
      1,
      "VAE"
    ],
    [
      19,
      6,
      0,
      24,
      0,
      "MODEL"
    ],
    [
      20,
      19,
      0,
      25,
      0,
      "NOISE"
    ],
    [
      21,
      21,
      0,
      25,
      1,
      "GUIDER"
    ],
    [
      22,
      20,
      0,
      25,
      2,
      "SAMPLER"
    ],
    [
      23,
      24,
      0,
      25,
      3,
      "SIGMAS"
    ],
    [
      24,
      26,
      1,
      25,
      4,
      "LATENT"
    ],
    [
      29,
      22,
      0,
      27,
      0,
      "IMAGE"
    ],
    [
      30,
      13,
      2,
      27,
      1,
      "AUDIO"
    ],
    [
      31,
      18,
      0,
      27,
      4,
      "FLOAT"
    ],
    [
      39,
      15,
      0,
      17,
      2,
      "INT"
    ],
    [
      40,
      15,
      1,
      17,
      3,
      "INT"
    ],
    [
      986,
      947,
      0,
      948,
      1,
      "MODEL"
    ],
    [
      987,
      950,
      0,
      948,
      3,
      "CONDITIONING"
    ],
    [
      988,
      952,
      0,
      949,
      1,
      "IMAGE"
    ],
    [
      989,
      951,
      0,
      949,
      2,
      "MASK"
    ],
    [
      990,
      947,
      1,
      950,
      0,
      "CLIP"
    ],
    [
      991,
      948,
      0,
      951,
      0,
      "SAM3_TRACK_DATA"
    ],
    [
      992,
      17,
      0,
      949,
      0,
      "IMAGE"
    ],
    [
      994,
      17,
      0,
      948,
      0,
      "IMAGE"
    ],
    [
      995,
      4,
      0,
      6,
      0,
      "MODEL"
    ],
    [
      7,
      18,
      0,
      13,
      2,
      "FLOAT"
    ],
    [
      8,
      10,
      1,
      13,
      3,
      "INT"
    ],
    [
      9,
      14,
      0,
      15,
      0,
      "FLOAT"
    ],
    [
      6,
      11,
      0,
      10,
      0,
      "FLOAT"
    ],
    [
      985,
      18,
      0,
      10,
      1,
      "FLOAT"
    ],
    [
      25,
      3,
      1,
      26,
      0,
      "CLIP"
    ],
    [
      26,
      7,
      0,
      26,
      1,
      "VAE"
    ],
    [
      27,
      9,
      0,
      26,
      2,
      "VAE"
    ],
    [
      33,
      12,
      0,
      26,
      3,
      "IMAGE"
    ],
    [
      997,
      953,
      0,
      26,
      4,
      "IMAGE"
    ],
    [
      993,
      949,
      0,
      26,
      7,
      "IMAGE"
    ],
    [
      996,
      13,
      2,
      26,
      10,
      "AUDIO"
    ],
    [
      35,
      5,
      0,
      26,
      14,
      "STRING"
    ],
    [
      37,
      15,
      0,
      26,
      15,
      "INT"
    ],
    [
      38,
      15,
      1,
      26,
      16,
      "INT"
    ],
    [
      36,
      10,
      1,
      26,
      17,
      "INT"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.31384283767222537,
      "offset": [
        1745.7322421991928,
        -5456.646003379114
      ]
    },
    "frontendVersion": "1.53.10",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}