{
 "id": "dfa59c2a-a903-4dc8-92eb-0264130e5993",
 "revision": 1,
 "last_node_id": 209,
 "last_link_id": 128,
 "nodes": [
  {
   "id": 1,
   "type": "LoadVideo",
   "pos": [
    100,
    130
   ],
   "size": [
    282.798828125,
    233.0743408203125
   ],
   "flags": {},
   "order": 0,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "file",
     "name": "file",
     "type": "COMBO",
     "widget": {
      "name": "file"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      57
     ]
    }
   ],
   "title": "Source shot (padded to the length grid)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "source_shot.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "source_shot.mp4",
    "upload": "image"
   }
  },
  {
   "id": 2,
   "type": "GetVideoComponents",
   "pos": [
    482.798828125,
    130
   ],
   "size": [
    193.530859375,
    106
   ],
   "flags": {},
   "order": 13,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 57
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      58,
      67,
      110
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": [
      95,
      103
     ]
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": [
      94,
      98
     ]
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "type": "COMBO",
     "links": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "type": "COMBO",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetVideoComponents"
   }
  },
  {
   "id": 3,
   "type": "LoadImage",
   "pos": [
    100,
    342
   ],
   "size": [
    282.798828125,
    102
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "COMBO",
     "widget": {
      "name": "image"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      79
     ]
    },
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": null
    }
   ],
   "title": "Picture 1: main cut-out on grey",
   "properties": {
    "Node name for S&R": "LoadImage"
   },
   "widgets_values": [
    "reference_1.png",
    "image"
   ],
   "widgets_values_named": {
    "image": "reference_1.png",
    "upload": "image"
   }
  },
  {
   "id": 4,
   "type": "LoadImage",
   "pos": [
    100,
    574
   ],
   "size": [
    282.798828125,
    102
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "COMBO",
     "widget": {
      "name": "image"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      80
     ]
    },
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": null
    }
   ],
   "title": "Picture 2: second view (or Picture 1 again)",
   "properties": {
    "Node name for S&R": "LoadImage"
   },
   "widgets_values": [
    "reference_2.png",
    "image"
   ],
   "widgets_values_named": {
    "image": "reference_2.png",
    "upload": "image"
   }
  },
  {
   "id": 5,
   "type": "LoadImage",
   "pos": [
    100,
    806
   ],
   "size": [
    282.798828125,
    102
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "COMBO",
     "widget": {
      "name": "image"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      81
     ]
    },
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": null
    }
   ],
   "title": "Picture 3: third view (or Picture 1 again)",
   "properties": {
    "Node name for S&R": "LoadImage"
   },
   "widgets_values": [
    "reference_3.png",
    "image"
   ],
   "widgets_values_named": {
    "image": "reference_3.png",
    "upload": "image"
   }
  },
  {
   "id": 6,
   "type": "GetImageSize",
   "pos": [
    852.798828125,
    130
   ],
   "size": [
    140,
    66
   ],
   "flags": {},
   "order": 16,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 58
    }
   ],
   "outputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "links": [
      60,
      107
     ]
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "links": [
      61,
      108
     ]
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "links": [
      64,
      109,
      113,
      116,
      122
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "GetImageSize"
   }
  },
  {
   "id": 8,
   "type": "ImageScale",
   "pos": [
    1998.2736328125002,
    578
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 28,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 59
    },
    {
     "localized_name": "upscale_method",
     "name": "upscale_method",
     "type": "COMBO",
     "widget": {
      "name": "upscale_method"
     },
     "link": null
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": null
    },
    {
     "localized_name": "crop",
     "name": "crop",
     "type": "COMBO",
     "widget": {
      "name": "crop"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      114,
      119
     ]
    }
   ],
   "title": "Reference video: the source shot, small (keeps the actors' faces)",
   "properties": {
    "Node name for S&R": "ImageScale"
   },
   "widgets_values": [
    "area",
    384,
    288,
    "disabled"
   ],
   "widgets_values_named": {
    "upscale_method": "area",
    "width": 384,
    "height": 288,
    "crop": "disabled"
   }
  },
  {
   "id": 24,
   "type": "SolidMask",
   "pos": [
    1222.798828125,
    130
   ],
   "size": [
    270,
    106
   ],
   "flags": {},
   "order": 19,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "value",
     "name": "value",
     "type": "FLOAT",
     "widget": {
      "name": "value"
     },
     "link": null
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 60
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 61
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      62
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "SolidMask"
   },
   "widgets_values": [
    1,
    512,
    512
   ],
   "widgets_values_named": {
    "value": 1,
    "width": 512,
    "height": 512
   }
  },
  {
   "id": 25,
   "type": "MaskToImage",
   "pos": [
    1626.6275390625,
    130
   ],
   "size": [
    193.2779296875,
    26
   ],
   "flags": {},
   "order": 23,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "mask",
     "name": "mask",
     "type": "MASK",
     "link": 62
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      63
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "MaskToImage"
   }
  },
  {
   "id": 26,
   "type": "RepeatImageBatch",
   "pos": [
    1998.2736328125002,
    130
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 26,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 63
    },
    {
     "localized_name": "amount",
     "name": "amount",
     "type": "INT",
     "widget": {
      "name": "amount"
     },
     "link": 64
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      65
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "RepeatImageBatch"
   },
   "widgets_values": [
    1
   ],
   "widgets_values_named": {
    "amount": 1
   }
  },
  {
   "id": 27,
   "type": "ImageToMask",
   "pos": [
    2368.2736328125,
    130
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 29,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 65
    },
    {
     "localized_name": "channel",
     "name": "channel",
     "type": "COMBO",
     "widget": {
      "name": "channel"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      74
     ]
    }
   ],
   "title": "Whole frame, every frame (redraw everything)",
   "properties": {
    "Node name for S&R": "ImageToMask"
   },
   "widgets_values": [
    "red"
   ],
   "widgets_values_named": {
    "channel": "red"
   }
  },
  {
   "id": 40,
   "type": "LoadDA3Model",
   "pos": [
    100,
    1038
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "model_name",
     "name": "model_name",
     "type": "COMBO",
     "widget": {
      "name": "model_name"
     },
     "link": null
    },
    {
     "localized_name": "weight_dtype",
     "name": "weight_dtype",
     "type": "COMBO",
     "widget": {
      "name": "weight_dtype"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "DA3_MODEL",
     "name": "DA3_MODEL",
     "type": "DA3_MODEL",
     "links": [
      66
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "LoadDA3Model"
   },
   "widgets_values": [
    "depth_anything_3_mono_large.safetensors",
    "default"
   ],
   "widgets_values_named": {
    "model_name": "depth_anything_3_mono_large.safetensors",
    "weight_dtype": "default"
   }
  },
  {
   "id": 41,
   "type": "DA3Inference",
   "pos": [
    852.798828125,
    326
   ],
   "size": [
    270,
    126
   ],
   "flags": {},
   "order": 17,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "da3_model",
     "name": "da3_model",
     "type": "DA3_MODEL",
     "link": 66
    },
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 67
    },
    {
     "localized_name": "resolution",
     "name": "resolution",
     "type": "INT",
     "widget": {
      "name": "resolution"
     },
     "link": null
    },
    {
     "localized_name": "resize_method",
     "name": "resize_method",
     "type": "COMBO",
     "widget": {
      "name": "resize_method"
     },
     "link": null
    },
    {
     "localized_name": "mode",
     "name": "mode",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "mode"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "da3_geometry",
     "name": "da3_geometry",
     "type": "DA3_GEOMETRY",
     "links": [
      68
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "DA3Inference"
   },
   "widgets_values": [
    504,
    "lower_bound_resize",
    "mono"
   ],
   "widgets_values_named": {
    "resolution": 504,
    "resize_method": "lower_bound_resize",
    "mode": "mono"
   }
  },
  {
   "id": 42,
   "type": "DA3Render",
   "pos": [
    1222.798828125,
    626
   ],
   "size": [
    303.8287109375,
    106
   ],
   "flags": {},
   "order": 21,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "da3_geometry",
     "name": "da3_geometry",
     "type": "DA3_GEOMETRY",
     "link": 68
    },
    {
     "localized_name": "output",
     "name": "output",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "output"
     },
     "link": null
    },
    {
     "localized_name": "normalization",
     "name": "output.normalization",
     "type": "COMBO",
     "widget": {
      "name": "output.normalization"
     },
     "link": null
    },
    {
     "localized_name": "apply_sky_clip",
     "name": "output.apply_sky_clip",
     "type": "BOOLEAN",
     "widget": {
      "name": "output.apply_sky_clip"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      73,
      97
     ]
    }
   ],
   "title": "Depth of the source (guides the motion)",
   "properties": {
    "Node name for S&R": "DA3Render"
   },
   "widgets_values": [
    "depth",
    "v2_style",
    true
   ],
   "widgets_values_named": {
    "output": "depth",
    "output.normalization": "v2_style",
    "output.apply_sky_clip": true
   }
  },
  {
   "id": 50,
   "type": "UNETLoader",
   "pos": [
    100,
    1250
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "unet_name",
     "name": "unet_name",
     "type": "COMBO",
     "widget": {
      "name": "unet_name"
     },
     "link": null
    },
    {
     "localized_name": "weight_dtype",
     "name": "weight_dtype",
     "type": "COMBO",
     "widget": {
      "name": "weight_dtype"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MODEL",
     "name": "MODEL",
     "type": "MODEL",
     "links": [
      69
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "UNETLoader"
   },
   "widgets_values": [
    "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
    "default"
   ],
   "widgets_values_named": {
    "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
    "weight_dtype": "default"
   }
  },
  {
   "id": 51,
   "type": "LoraLoaderModelOnly",
   "pos": [
    482.798828125,
    366
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 14,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "model",
     "name": "model",
     "type": "MODEL",
     "link": 69
    },
    {
     "localized_name": "lora_name",
     "name": "lora_name",
     "type": "COMBO",
     "widget": {
      "name": "lora_name"
     },
     "link": null
    },
    {
     "localized_name": "strength_model",
     "name": "strength_model",
     "type": "FLOAT",
     "widget": {
      "name": "strength_model"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MODEL",
     "name": "MODEL",
     "type": "MODEL",
     "links": [
      70
     ]
    }
   ],
   "title": "Turbo v4 LoRA",
   "properties": {
    "Node name for S&R": "LoraLoaderModelOnly"
   },
   "widgets_values": [
    "minimax_h3_turbo_v4_step600_ema.safetensors",
    1
   ],
   "widgets_values_named": {
    "lora_name": "minimax_h3_turbo_v4_step600_ema.safetensors",
    "strength_model": 1
   }
  },
  {
   "id": 52,
   "type": "ModelPatchLoader",
   "pos": [
    100,
    1462
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "name",
     "name": "name",
     "type": "COMBO",
     "widget": {
      "name": "name"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MODEL_PATCH",
     "name": "MODEL_PATCH",
     "type": "MODEL_PATCH",
     "links": [
      71
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ModelPatchLoader"
   },
   "widgets_values": [
    "minimax_h3_fun_controlnet_union_2.0_pruned_int8_convrot.safetensors"
   ],
   "widgets_values_named": {
    "name": "minimax_h3_fun_controlnet_union_2.0_pruned_int8_convrot.safetensors"
   }
  },
  {
   "id": 53,
   "type": "VAELoader",
   "pos": [
    100,
    1650
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "vae_name",
     "name": "vae_name",
     "type": "COMBO",
     "widget": {
      "name": "vae_name"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VAE",
     "name": "VAE",
     "type": "VAE",
     "links": [
      72,
      77,
      92
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "VAELoader"
   },
   "widgets_values": [
    "minimax_h3_video_vae_fp16.safetensors"
   ],
   "widgets_values_named": {
    "vae_name": "minimax_h3_video_vae_fp16.safetensors"
   }
  },
  {
   "id": 54,
   "type": "VAELoader",
   "pos": [
    100,
    1838
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "vae_name",
     "name": "vae_name",
     "type": "COMBO",
     "widget": {
      "name": "vae_name"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VAE",
     "name": "VAE",
     "type": "VAE",
     "links": [
      78,
      102
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "VAELoader"
   },
   "widgets_values": [
    "minimax_h3_audio_vae_fp32.safetensors"
   ],
   "widgets_values_named": {
    "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
   }
  },
  {
   "id": 55,
   "type": "CLIPLoader",
   "pos": [
    100,
    2026
   ],
   "size": [
    270,
    106
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "clip_name",
     "name": "clip_name",
     "type": "COMBO",
     "widget": {
      "name": "clip_name"
     },
     "link": null
    },
    {
     "localized_name": "type",
     "name": "type",
     "type": "COMBO",
     "widget": {
      "name": "type"
     },
     "link": null
    },
    {
     "localized_name": "device",
     "name": "device",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "device"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "CLIP",
     "name": "CLIP",
     "type": "CLIP",
     "links": [
      76
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "CLIPLoader"
   },
   "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": 56,
   "type": "MiniMaxH3FunControlNetApply",
   "pos": [
    2868.2736328125,
    130
   ],
   "size": [
    324.6109375,
    206
   ],
   "flags": {},
   "order": 31,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "model",
     "name": "model",
     "type": "MODEL",
     "link": 70
    },
    {
     "localized_name": "model_patch",
     "name": "model_patch",
     "type": "MODEL_PATCH",
     "link": 71
    },
    {
     "localized_name": "vae",
     "name": "vae",
     "type": "VAE",
     "link": 72
    },
    {
     "localized_name": "control_video",
     "name": "control_video",
     "shape": 7,
     "type": "IMAGE",
     "link": 73
    },
    {
     "localized_name": "mask",
     "name": "mask",
     "shape": 7,
     "type": "MASK",
     "link": 74
    },
    {
     "localized_name": "source_video",
     "name": "source_video",
     "shape": 7,
     "type": "IMAGE",
     "link": 75
    },
    {
     "localized_name": "strength",
     "name": "strength",
     "type": "FLOAT",
     "widget": {
      "name": "strength"
     },
     "link": null
    },
    {
     "localized_name": "start_percent",
     "name": "start_percent",
     "type": "FLOAT",
     "widget": {
      "name": "start_percent"
     },
     "link": null
    },
    {
     "localized_name": "end_percent",
     "name": "end_percent",
     "type": "FLOAT",
     "widget": {
      "name": "end_percent"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MODEL",
     "name": "MODEL",
     "type": "MODEL",
     "links": [
      83,
      84
     ]
    }
   ],
   "title": "Control (strength 1.5, end 0.5; for more creature detail raise end toward 1.0, then check the faces)",
   "properties": {
    "Node name for S&R": "MiniMaxH3FunControlNetApply"
   },
   "widgets_values": [
    1.5,
    0,
    0.5
   ],
   "widgets_values_named": {
    "strength": 1.5,
    "start_percent": 0,
    "end_percent": 0.5
   }
  },
  {
   "id": 57,
   "type": "MiniMaxH3ReferenceToVideo",
   "pos": [
    2368.2736328125,
    318
   ],
   "size": [
    400,
    384
   ],
   "flags": {},
   "order": 30,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "clip",
     "name": "clip",
     "type": "CLIP",
     "link": 76
    },
    {
     "localized_name": "vae",
     "name": "vae",
     "shape": 7,
     "type": "VAE",
     "link": 77
    },
    {
     "localized_name": "audio_vae",
     "name": "audio_vae",
     "shape": 7,
     "type": "VAE",
     "link": 78
    },
    {
     "localized_name": "ref_image_0",
     "name": "ref_images.ref_image_0",
     "shape": 7,
     "type": "IMAGE",
     "link": 79
    },
    {
     "localized_name": "ref_image_1",
     "name": "ref_images.ref_image_1",
     "shape": 7,
     "type": "IMAGE",
     "link": 80
    },
    {
     "localized_name": "ref_image_2",
     "name": "ref_images.ref_image_2",
     "shape": 7,
     "type": "IMAGE",
     "link": 81
    },
    {
     "localized_name": "ref_image_3",
     "name": "ref_images.ref_image_3",
     "shape": 7,
     "type": "IMAGE",
     "link": null
    },
    {
     "localized_name": "ref_video_0",
     "name": "ref_videos.ref_video_0",
     "shape": 7,
     "type": "IMAGE",
     "link": 126
    },
    {
     "localized_name": "ref_video_1",
     "name": "ref_videos.ref_video_1",
     "shape": 7,
     "type": "IMAGE",
     "link": null
    },
    {
     "localized_name": "ref_video_audio_0",
     "name": "ref_video_audios.ref_video_audio_0",
     "shape": 7,
     "type": "AUDIO",
     "link": null
    },
    {
     "localized_name": "ref_audio_0",
     "name": "ref_audios.ref_audio_0",
     "shape": 7,
     "type": "AUDIO",
     "link": null
    },
    {
     "localized_name": "prompt",
     "name": "prompt",
     "type": "STRING",
     "widget": {
      "name": "prompt"
     },
     "link": null
    },
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": null
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": null
    },
    {
     "localized_name": "length",
     "name": "length",
     "type": "INT",
     "widget": {
      "name": "length"
     },
     "link": 128
    },
    {
     "localized_name": "ref_image_size",
     "name": "ref_image_size",
     "type": "COMBO",
     "widget": {
      "name": "ref_image_size"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "positive",
     "name": "positive",
     "type": "CONDITIONING",
     "links": [
      100
     ]
    },
    {
     "localized_name": "LATENT",
     "name": "LATENT",
     "type": "LATENT",
     "links": [
      90,
      101
     ]
    }
   ],
   "title": "Prompt, size and length",
   "properties": {
    "Node name for S&R": "MiniMaxH3ReferenceToVideo"
   },
   "widgets_values": [
    "subject_definitions:\nIn the source video the element to replace is hidden under a flat grey shape; the new element stands and moves exactly where that shape is.\n<Subject 1> is the {CREATURE OR OBJECT} shown in <Picture 1>, <Picture 2> and <Picture 3>: {DESIGN: shape, skin or surface, colour, distinctive marks}.\n<Subject 2> is the scene: {PLACE}, with {WHAT STAYS: the set, the light}.\n<Subject 3> is {WHO, BY CLOTHING AND ACTION, e.g. \"the man in the brown vest crouching by the nest\"}. {ONE LINE PER PERSON WHO STAYS: <Subject 4> ... . Their faces come from the reference video (your shot), so face pictures are optional: if you add one, load it into a new Load Image connected to the next free ref_images input and write \"shown in <Picture 4>\". Never write \"no people\". Delete this block if nobody is in the shot.}\n\nsummary:\n[reference generation] A photoreal modern visual effects shot inserted into a {YEAR} television series: <Subject 1> in <Subject 2>, following the given motion exactly.\n\nretention_analysis:\n<Subject 1>: fully_preserved design from the pictures, adapted to the scene's lighting.\n<Subject 2>: fully_preserved scene geometry, lighting, exposure and camera.\n\ndetailed_description:\nRealistic {YEAR} live-action television footage with natural film grain. {WHAT IT DOES, AS IN YOUR SHOT}. Where only part of it is in frame, only that part is in frame. The camera and the framing stay exactly the same.\n\noverall_soundscape:\n{THE SHOT'S SOUND}.\n\nnon_diegetic_music:\nN/A\n",
    1024,
    768,
    124,
    "match"
   ],
   "widgets_values_named": {
    "prompt": "subject_definitions:\nIn the source video the element to replace is hidden under a flat grey shape; the new element stands and moves exactly where that shape is.\n<Subject 1> is the {CREATURE OR OBJECT} shown in <Picture 1>, <Picture 2> and <Picture 3>: {DESIGN: shape, skin or surface, colour, distinctive marks}.\n<Subject 2> is the scene: {PLACE}, with {WHAT STAYS: the set, the light}.\n<Subject 3> is {WHO, BY CLOTHING AND ACTION, e.g. \"the man in the brown vest crouching by the nest\"}. {ONE LINE PER PERSON WHO STAYS: <Subject 4> ... . Their faces come from the reference video (your shot), so face pictures are optional: if you add one, load it into a new Load Image connected to the next free ref_images input and write \"shown in <Picture 4>\". Never write \"no people\". Delete this block if nobody is in the shot.}\n\nsummary:\n[reference generation] A photoreal modern visual effects shot inserted into a {YEAR} television series: <Subject 1> in <Subject 2>, following the given motion exactly.\n\nretention_analysis:\n<Subject 1>: fully_preserved design from the pictures, adapted to the scene's lighting.\n<Subject 2>: fully_preserved scene geometry, lighting, exposure and camera.\n\ndetailed_description:\nRealistic {YEAR} live-action television footage with natural film grain. {WHAT IT DOES, AS IN YOUR SHOT}. Where only part of it is in frame, only that part is in frame. The camera and the framing stay exactly the same.\n\noverall_soundscape:\n{THE SHOT'S SOUND}.\n\nnon_diegetic_music:\nN/A\n",
    "width": 1024,
    "height": 768,
    "length": 124,
    "ref_image_size": "match"
   }
  },
  {
   "id": 58,
   "type": "RandomNoise",
   "pos": [
    100,
    2262
   ],
   "size": [
    270,
    82
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "noise_seed",
     "name": "noise_seed",
     "type": "INT",
     "widget": {
      "name": "noise_seed"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "NOISE",
     "name": "NOISE",
     "type": "NOISE",
     "links": [
      86
     ]
    }
   ],
   "title": "Seed (new number per take)",
   "properties": {
    "Node name for S&R": "RandomNoise"
   },
   "widgets_values": [
    926301,
    "randomize"
   ],
   "widgets_values_named": {
    "noise_seed": 926301,
    "control_after_generate": "randomize"
   }
  },
  {
   "id": 59,
   "type": "KSamplerSelect",
   "pos": [
    100,
    2474
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "sampler_name",
     "name": "sampler_name",
     "type": "COMBO",
     "widget": {
      "name": "sampler_name"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "SAMPLER",
     "name": "SAMPLER",
     "type": "SAMPLER",
     "links": [
      88
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "KSamplerSelect"
   },
   "widgets_values": [
    "res_multistep"
   ],
   "widgets_values_named": {
    "sampler_name": "res_multistep"
   }
  },
  {
   "id": 62,
   "type": "BasicScheduler",
   "pos": [
    3292.8845703125003,
    130
   ],
   "size": [
    270,
    106
   ],
   "flags": {},
   "order": 33,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "model",
     "name": "model",
     "type": "MODEL",
     "link": 83
    },
    {
     "localized_name": "scheduler",
     "name": "scheduler",
     "type": "COMBO",
     "widget": {
      "name": "scheduler"
     },
     "link": null
    },
    {
     "localized_name": "steps",
     "name": "steps",
     "type": "INT",
     "widget": {
      "name": "steps"
     },
     "link": null
    },
    {
     "localized_name": "denoise",
     "name": "denoise",
     "type": "FLOAT",
     "widget": {
      "name": "denoise"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "SIGMAS",
     "name": "SIGMAS",
     "type": "SIGMAS",
     "links": [
      89
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "BasicScheduler"
   },
   "widgets_values": [
    "simple",
    8,
    1
   ],
   "widgets_values_named": {
    "scheduler": "simple",
    "steps": 8,
    "denoise": 1
   }
  },
  {
   "id": 63,
   "type": "BasicGuider",
   "pos": [
    3292.8845703125003,
    366
   ],
   "size": [
    159.568359375,
    46
   ],
   "flags": {},
   "order": 34,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "model",
     "name": "model",
     "type": "MODEL",
     "link": 84
    },
    {
     "localized_name": "conditioning",
     "name": "conditioning",
     "type": "CONDITIONING",
     "link": 85
    }
   ],
   "outputs": [
    {
     "localized_name": "GUIDER",
     "name": "GUIDER",
     "type": "GUIDER",
     "links": [
      87
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "BasicGuider"
   }
  },
  {
   "id": 64,
   "type": "SamplerCustomAdvanced",
   "pos": [
    3662.8845703125003,
    130
   ],
   "size": [
    212.3638671875,
    106
   ],
   "flags": {},
   "order": 35,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "noise",
     "name": "noise",
     "type": "NOISE",
     "link": 86
    },
    {
     "localized_name": "guider",
     "name": "guider",
     "type": "GUIDER",
     "link": 87
    },
    {
     "localized_name": "sampler",
     "name": "sampler",
     "type": "SAMPLER",
     "link": 88
    },
    {
     "localized_name": "sigmas",
     "name": "sigmas",
     "type": "SIGMAS",
     "link": 89
    },
    {
     "localized_name": "latent_image",
     "name": "latent_image",
     "type": "LATENT",
     "link": 90
    }
   ],
   "outputs": [
    {
     "localized_name": "output",
     "name": "output",
     "type": "LATENT",
     "links": [
      91
     ]
    },
    {
     "localized_name": "denoised_output",
     "name": "denoised_output",
     "type": "LATENT",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "SamplerCustomAdvanced"
   }
  },
  {
   "id": 65,
   "type": "VAEDecode",
   "pos": [
    3975.2484375000004,
    130
   ],
   "size": [
    140,
    46
   ],
   "flags": {},
   "order": 36,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "samples",
     "name": "samples",
     "type": "LATENT",
     "link": 91
    },
    {
     "localized_name": "vae",
     "name": "vae",
     "type": "VAE",
     "link": 92
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      93
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "VAEDecode"
   }
  },
  {
   "id": 67,
   "type": "CreateVideo",
   "pos": [
    4215.2484375,
    130
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 37,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 93
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": 95
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 94
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "bit_depth"
     },
     "link": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "color_space"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      96
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "CreateVideo"
   },
   "widgets_values": [
    30,
    8,
    "sRGB",
    "none"
   ],
   "widgets_values_named": {
    "fps": 30,
    "bit_depth": 8,
    "color_space": "sRGB",
    "codec": "none"
   }
  },
  {
   "id": 68,
   "type": "SaveVideo",
   "pos": [
    4585.2484375,
    130
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 38,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 96
    },
    {
     "localized_name": "filename_prefix",
     "name": "filename_prefix",
     "type": "STRING",
     "widget": {
      "name": "filename_prefix"
     },
     "link": null
    },
    {
     "localized_name": "format",
     "name": "format",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "format.codec",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec"
     },
     "link": null
    },
    {
     "localized_name": "encoding",
     "name": "format.codec.encoding",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec.encoding"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "links": null
    }
   ],
   "title": "Upgraded shot (full frame)",
   "properties": {},
   "widgets_values": [
    "effects/fullframe",
    "mp4",
    "h264",
    "auto",
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "effects/fullframe",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "auto",
    "codec": "auto"
   }
  },
  {
   "id": 71,
   "type": "CreateVideo",
   "pos": [
    1626.6275390625,
    286
   ],
   "size": [
    270,
    150
   ],
   "flags": {},
   "order": 24,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "link": 97
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "widget": {
      "name": "fps"
     },
     "link": 98
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "bit_depth"
     },
     "link": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "color_space"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMBO",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      99
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "CreateVideo"
   },
   "widgets_values": [
    30,
    8,
    "sRGB",
    "none"
   ],
   "widgets_values_named": {
    "fps": 30,
    "bit_depth": 8,
    "color_space": "sRGB",
    "codec": "none"
   }
  },
  {
   "id": 72,
   "type": "SaveVideo",
   "pos": [
    1998.2736328125002,
    318
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 27,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 99
    },
    {
     "localized_name": "filename_prefix",
     "name": "filename_prefix",
     "type": "STRING",
     "widget": {
      "name": "filename_prefix"
     },
     "link": null
    },
    {
     "localized_name": "format",
     "name": "format",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "format.codec",
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec"
     },
     "link": null
    },
    {
     "localized_name": "encoding",
     "name": "format.codec.encoding",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "format.codec.encoding"
     },
     "link": null
    },
    {
     "localized_name": "codec",
     "name": "codec",
     "shape": 7,
     "type": "COMFY_DYNAMICCOMBO_V3",
     "widget": {
      "name": "codec"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "links": null
    }
   ],
   "title": "Depth (check it)",
   "properties": {},
   "widgets_values": [
    "effects/depth",
    "mp4",
    "h264",
    "auto",
    "auto"
   ],
   "widgets_values_named": {
    "filename_prefix": "effects/depth",
    "format": "mp4",
    "format.codec": "h264",
    "format.codec.encoding": "auto",
    "codec": "auto"
   }
  },
  {
   "id": 73,
   "type": "MiniMaxH3AddGuide",
   "pos": [
    2868.2736328125,
    466
   ],
   "size": [
    274.640234375,
    158
   ],
   "flags": {},
   "order": 32,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "positive",
     "name": "positive",
     "type": "CONDITIONING",
     "link": 100
    },
    {
     "localized_name": "latent",
     "name": "latent",
     "type": "LATENT",
     "link": 101
    },
    {
     "localized_name": "vae",
     "name": "vae",
     "shape": 7,
     "type": "VAE",
     "link": null
    },
    {
     "localized_name": "audio_vae",
     "name": "audio_vae",
     "shape": 7,
     "type": "VAE",
     "link": 102
    },
    {
     "localized_name": "image",
     "name": "image",
     "shape": 7,
     "type": "IMAGE",
     "link": null
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "shape": 7,
     "type": "AUDIO",
     "link": 103
    },
    {
     "localized_name": "frame_idx",
     "name": "frame_idx",
     "type": "INT",
     "widget": {
      "name": "frame_idx"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "positive",
     "name": "positive",
     "type": "CONDITIONING",
     "links": [
      85
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "MiniMaxH3AddGuide"
   },
   "widgets_values": [
    0
   ],
   "widgets_values_named": {
    "frame_idx": 0
   }
  },
  {
   "id": 120,
   "type": "LoadVideo",
   "pos": [
    100,
    2662
   ],
   "size": [
    282.798828125,
    82
   ],
   "flags": {},
   "order": 12,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "file",
     "name": "file",
     "type": "COMBO",
     "widget": {
      "name": "file"
     },
     "link": null
    },
    {
     "localized_name": "choose file to upload",
     "name": "upload",
     "type": "IMAGEUPLOAD",
     "widget": {
      "name": "upload"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "VIDEO",
     "name": "VIDEO",
     "type": "VIDEO",
     "links": [
      104
     ]
    }
   ],
   "title": "Mask video of the element to replace (white = grey it out in the reference; same length as the source shot)",
   "properties": {
    "Node name for S&R": "LoadVideo"
   },
   "widgets_values": [
    "element_mask.mp4",
    "image"
   ],
   "widgets_values_named": {
    "file": "element_mask.mp4",
    "upload": "image"
   }
  },
  {
   "id": 121,
   "type": "GetVideoComponents",
   "pos": [
    482.798828125,
    578
   ],
   "size": [
    193.530859375,
    106
   ],
   "flags": {},
   "order": 15,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "video",
     "name": "video",
     "type": "VIDEO",
     "link": 104
    }
   ],
   "outputs": [
    {
     "localized_name": "images",
     "name": "images",
     "type": "IMAGE",
     "links": [
      106
     ]
    },
    {
     "localized_name": "audio",
     "name": "audio",
     "type": "AUDIO",
     "links": null
    },
    {
     "localized_name": "fps",
     "name": "fps",
     "type": "FLOAT",
     "links": null
    },
    {
     "localized_name": "bit_depth",
     "name": "bit_depth",
     "type": "COMBO",
     "links": null
    },
    {
     "localized_name": "color_space",
     "name": "color_space",
     "type": "COMBO",
     "links": null
    }
   ],
   "properties": {
    "Node name for S&R": "GetVideoComponents"
   }
  },
  {
   "id": 122,
   "type": "ThresholdMask",
   "pos": [
    1222.798828125,
    862
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 22,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "mask",
     "name": "mask",
     "type": "MASK",
     "link": 105
    },
    {
     "localized_name": "value",
     "name": "value",
     "type": "FLOAT",
     "widget": {
      "name": "value"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      112
     ]
    }
   ],
   "title": "Binarise (video compression blurs the mask)",
   "properties": {
    "Node name for S&R": "ThresholdMask"
   },
   "widgets_values": [
    0.5
   ],
   "widgets_values_named": {
    "value": 0.5
   }
  },
  {
   "id": 123,
   "type": "ImageToMask",
   "pos": [
    852.798828125,
    582
   ],
   "size": [
    270,
    58
   ],
   "flags": {},
   "order": 18,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "image",
     "name": "image",
     "type": "IMAGE",
     "link": 106
    },
    {
     "localized_name": "channel",
     "name": "channel",
     "type": "COMBO",
     "widget": {
      "name": "channel"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "MASK",
     "name": "MASK",
     "type": "MASK",
     "links": [
      105
     ]
    }
   ],
   "title": "Mask (white = grey out)",
   "properties": {
    "Node name for S&R": "ImageToMask"
   },
   "widgets_values": [
    "red"
   ],
   "widgets_values_named": {
    "channel": "red"
   }
  },
  {
   "id": 124,
   "type": "EmptyImage",
   "pos": [
    1222.798828125,
    366
   ],
   "size": [
    270,
    130
   ],
   "flags": {},
   "order": 20,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "width",
     "name": "width",
     "type": "INT",
     "widget": {
      "name": "width"
     },
     "link": 107
    },
    {
     "localized_name": "height",
     "name": "height",
     "type": "INT",
     "widget": {
      "name": "height"
     },
     "link": 108
    },
    {
     "localized_name": "batch_size",
     "name": "batch_size",
     "type": "INT",
     "widget": {
      "name": "batch_size"
     },
     "link": 109
    },
    {
     "localized_name": "color",
     "name": "color",
     "type": "INT",
     "widget": {
      "name": "color"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      111
     ]
    }
   ],
   "title": "Flat grey",
   "properties": {
    "Node name for S&R": "EmptyImage"
   },
   "widgets_values": [
    512,
    512,
    1,
    8421504
   ],
   "widgets_values_named": {
    "width": 512,
    "height": 512,
    "batch_size": 1,
    "color": 8421504
   }
  },
  {
   "id": 125,
   "type": "ImageCompositeMasked",
   "pos": [
    1626.6275390625,
    566
   ],
   "size": [
    271.64609375,
    146
   ],
   "flags": {},
   "order": 25,
   "mode": 0,
   "inputs": [
    {
     "localized_name": "destination",
     "name": "destination",
     "type": "IMAGE",
     "link": 110
    },
    {
     "localized_name": "source",
     "name": "source",
     "type": "IMAGE",
     "link": 111
    },
    {
     "localized_name": "mask",
     "name": "mask",
     "shape": 7,
     "type": "MASK",
     "link": 112
    },
    {
     "localized_name": "x",
     "name": "x",
     "type": "INT",
     "widget": {
      "name": "x"
     },
     "link": null
    },
    {
     "localized_name": "y",
     "name": "y",
     "type": "INT",
     "widget": {
      "name": "y"
     },
     "link": null
    },
    {
     "localized_name": "resize_source",
     "name": "resize_source",
     "type": "BOOLEAN",
     "widget": {
      "name": "resize_source"
     },
     "link": null
    }
   ],
   "outputs": [
    {
     "localized_name": "IMAGE",
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      59,
      75
     ]
    }
   ],
   "title": "Reference with the element greyed out (the output is still generated in full; nothing is pasted back)",
   "properties": {
    "Node name for S&R": "ImageCompositeMasked"
   },
   "widgets_values": [
    0,
    0,
    false
   ],
   "widgets_values_named": {
    "x": 0,
    "y": 0,
    "resize_source": false
   }
  },
  {
   "id": 201,
   "type": "ComfyMathExpression",
   "pos": [
    600,
    1500
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 27,
   "mode": 0,
   "inputs": [
    {
     "name": "expression",
     "type": "STRING",
     "link": null,
     "widget": {
      "name": "expression"
     }
    },
    {
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 113
    }
   ],
   "outputs": [
    {
     "name": "FLOAT",
     "type": "FLOAT",
     "links": []
    },
    {
     "name": "INT",
     "type": "INT",
     "links": [
      115
     ]
    },
    {
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": []
    }
   ],
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "a - 1"
   ],
   "title": "Last actual frame index"
  },
  {
   "id": 202,
   "type": "ImageFromBatch",
   "pos": [
    930,
    1500
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 28,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 114
    },
    {
     "name": "batch_index",
     "type": "INT",
     "link": 115
    },
    {
     "name": "length",
     "type": "INT",
     "link": null,
     "widget": {
      "name": "length"
     }
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      117
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    1
   ],
   "title": "Extract the last actual reference frame"
  },
  {
   "id": 203,
   "type": "ComfyMathExpression",
   "pos": [
    1260,
    1500
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 29,
   "mode": 0,
   "inputs": [
    {
     "name": "expression",
     "type": "STRING",
     "link": null,
     "widget": {
      "name": "expression"
     }
    },
    {
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 116
    }
   ],
   "outputs": [
    {
     "name": "FLOAT",
     "type": "FLOAT",
     "links": []
    },
    {
     "name": "INT",
     "type": "INT",
     "links": [
      121,
      123
     ]
    },
    {
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": []
    }
   ],
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "(17 - ((a - 5) % 17)) % 17"
   ],
   "title": "Padding needed for 5 + 17k (the model drops any extra reference frames)"
  },
  {
   "id": 204,
   "type": "RepeatImageBatch",
   "pos": [
    1590,
    1500
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 30,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 117
    },
    {
     "name": "amount",
     "type": "INT",
     "link": 118
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      120
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "RepeatImageBatch"
   },
   "widgets_values": [],
   "title": "Repeat last frame"
  },
  {
   "id": 205,
   "type": "BatchImagesNode",
   "pos": [
    600,
    1720
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 31,
   "mode": 0,
   "inputs": [
    {
     "name": "images.image0",
     "type": "IMAGE",
     "link": 119
    },
    {
     "name": "images.image1",
     "type": "IMAGE",
     "link": 120
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      124
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "BatchImagesNode"
   },
   "widgets_values": [],
   "title": "Append repeated tail"
  },
  {
   "id": 207,
   "type": "ComfyMathExpression",
   "pos": [
    930,
    1720
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 33,
   "mode": 0,
   "inputs": [
    {
     "name": "expression",
     "type": "STRING",
     "link": null,
     "widget": {
      "name": "expression"
     }
    },
    {
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 121
    }
   ],
   "outputs": [
    {
     "name": "FLOAT",
     "type": "FLOAT",
     "links": []
    },
    {
     "name": "INT",
     "type": "INT",
     "links": [
      118
     ]
    },
    {
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": []
    }
   ],
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "max(1,a)"
   ],
   "title": "Repeat node requires at least one image"
  },
  {
   "id": 208,
   "type": "ComfyMathExpression",
   "pos": [
    1260,
    1720
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 34,
   "mode": 0,
   "inputs": [
    {
     "name": "expression",
     "type": "STRING",
     "link": null,
     "widget": {
      "name": "expression"
     }
    },
    {
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 122
    },
    {
     "name": "values.b",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 123
    }
   ],
   "outputs": [
    {
     "name": "FLOAT",
     "type": "FLOAT",
     "links": []
    },
    {
     "name": "INT",
     "type": "INT",
     "links": [
      125,
      127
     ]
    },
    {
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": []
    }
   ],
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "a + b"
   ],
   "title": "Padded reference length"
  },
  {
   "id": 209,
   "type": "ImageFromBatch",
   "pos": [
    1590,
    1720
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 35,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 124
    },
    {
     "name": "batch_index",
     "type": "INT",
     "link": null,
     "widget": {
      "name": "batch_index"
     }
    },
    {
     "name": "length",
     "type": "INT",
     "link": 125
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      126
     ]
    }
   ],
   "properties": {
    "Node name for S&R": "ImageFromBatch"
   },
   "widgets_values": [
    0
   ],
   "title": "Trim extra repeat on already aligned clips"
  },
  {
   "id": 206,
   "type": "ComfyMathExpression",
   "pos": [
    2100,
    1700
   ],
   "size": [
    350,
    180
   ],
   "flags": {},
   "order": 32,
   "mode": 0,
   "inputs": [
    {
     "name": "expression",
     "type": "STRING",
     "link": null,
     "widget": {
      "name": "expression"
     }
    },
    {
     "name": "values.a",
     "type": "FLOAT,INT,BOOLEAN",
     "link": 127
    }
   ],
   "outputs": [
    {
     "name": "FLOAT",
     "type": "FLOAT",
     "links": []
    },
    {
     "name": "INT",
     "type": "INT",
     "links": [
      128
     ]
    },
    {
     "name": "BOOL",
     "type": "BOOLEAN",
     "links": []
    }
   ],
   "properties": {
    "Node name for S&R": "ComfyMathExpression"
   },
   "widgets_values": [
    "max(124,a)"
   ],
   "title": "Generation length covers all padded reference frames"
  }
 ],
 "links": [
  [
   57,
   1,
   0,
   2,
   0,
   "VIDEO"
  ],
  [
   58,
   2,
   0,
   6,
   0,
   "IMAGE"
  ],
  [
   59,
   125,
   0,
   8,
   0,
   "IMAGE"
  ],
  [
   60,
   6,
   0,
   24,
   1,
   "INT"
  ],
  [
   61,
   6,
   1,
   24,
   2,
   "INT"
  ],
  [
   62,
   24,
   0,
   25,
   0,
   "MASK"
  ],
  [
   63,
   25,
   0,
   26,
   0,
   "IMAGE"
  ],
  [
   64,
   6,
   2,
   26,
   1,
   "INT"
  ],
  [
   65,
   26,
   0,
   27,
   0,
   "IMAGE"
  ],
  [
   66,
   40,
   0,
   41,
   0,
   "DA3_MODEL"
  ],
  [
   67,
   2,
   0,
   41,
   1,
   "IMAGE"
  ],
  [
   68,
   41,
   0,
   42,
   0,
   "DA3_GEOMETRY"
  ],
  [
   69,
   50,
   0,
   51,
   0,
   "MODEL"
  ],
  [
   70,
   51,
   0,
   56,
   0,
   "MODEL"
  ],
  [
   71,
   52,
   0,
   56,
   1,
   "MODEL_PATCH"
  ],
  [
   72,
   53,
   0,
   56,
   2,
   "VAE"
  ],
  [
   73,
   42,
   0,
   56,
   3,
   "IMAGE"
  ],
  [
   74,
   27,
   0,
   56,
   4,
   "MASK"
  ],
  [
   75,
   125,
   0,
   56,
   5,
   "IMAGE"
  ],
  [
   76,
   55,
   0,
   57,
   0,
   "CLIP"
  ],
  [
   77,
   53,
   0,
   57,
   1,
   "VAE"
  ],
  [
   78,
   54,
   0,
   57,
   2,
   "VAE"
  ],
  [
   79,
   3,
   0,
   57,
   3,
   "IMAGE"
  ],
  [
   80,
   4,
   0,
   57,
   4,
   "IMAGE"
  ],
  [
   81,
   5,
   0,
   57,
   5,
   "IMAGE"
  ],
  [
   83,
   56,
   0,
   62,
   0,
   "MODEL"
  ],
  [
   84,
   56,
   0,
   63,
   0,
   "MODEL"
  ],
  [
   85,
   73,
   0,
   63,
   1,
   "CONDITIONING"
  ],
  [
   86,
   58,
   0,
   64,
   0,
   "NOISE"
  ],
  [
   87,
   63,
   0,
   64,
   1,
   "GUIDER"
  ],
  [
   88,
   59,
   0,
   64,
   2,
   "SAMPLER"
  ],
  [
   89,
   62,
   0,
   64,
   3,
   "SIGMAS"
  ],
  [
   90,
   57,
   1,
   64,
   4,
   "LATENT"
  ],
  [
   91,
   64,
   0,
   65,
   0,
   "LATENT"
  ],
  [
   92,
   53,
   0,
   65,
   1,
   "VAE"
  ],
  [
   93,
   65,
   0,
   67,
   0,
   "IMAGE"
  ],
  [
   94,
   2,
   2,
   67,
   2,
   "FLOAT"
  ],
  [
   95,
   2,
   1,
   67,
   1,
   "AUDIO"
  ],
  [
   96,
   67,
   0,
   68,
   0,
   "VIDEO"
  ],
  [
   97,
   42,
   0,
   71,
   0,
   "IMAGE"
  ],
  [
   98,
   2,
   2,
   71,
   2,
   "FLOAT"
  ],
  [
   99,
   71,
   0,
   72,
   0,
   "VIDEO"
  ],
  [
   100,
   57,
   0,
   73,
   0,
   "CONDITIONING"
  ],
  [
   101,
   57,
   1,
   73,
   1,
   "LATENT"
  ],
  [
   102,
   54,
   0,
   73,
   3,
   "VAE"
  ],
  [
   103,
   2,
   1,
   73,
   5,
   "AUDIO"
  ],
  [
   104,
   120,
   0,
   121,
   0,
   "VIDEO"
  ],
  [
   105,
   123,
   0,
   122,
   0,
   "MASK"
  ],
  [
   106,
   121,
   0,
   123,
   0,
   "IMAGE"
  ],
  [
   107,
   6,
   0,
   124,
   0,
   "INT"
  ],
  [
   108,
   6,
   1,
   124,
   1,
   "INT"
  ],
  [
   109,
   6,
   2,
   124,
   2,
   "INT"
  ],
  [
   110,
   2,
   0,
   125,
   0,
   "IMAGE"
  ],
  [
   111,
   124,
   0,
   125,
   1,
   "IMAGE"
  ],
  [
   112,
   122,
   0,
   125,
   2,
   "MASK"
  ],
  [
   113,
   6,
   2,
   201,
   1,
   "INT"
  ],
  [
   114,
   8,
   0,
   202,
   0,
   "IMAGE"
  ],
  [
   115,
   201,
   1,
   202,
   1,
   "INT"
  ],
  [
   116,
   6,
   2,
   203,
   1,
   "INT"
  ],
  [
   117,
   202,
   0,
   204,
   0,
   "IMAGE"
  ],
  [
   118,
   207,
   1,
   204,
   1,
   "INT"
  ],
  [
   119,
   8,
   0,
   205,
   0,
   "IMAGE"
  ],
  [
   120,
   204,
   0,
   205,
   1,
   "IMAGE"
  ],
  [
   121,
   203,
   1,
   207,
   1,
   "INT"
  ],
  [
   122,
   6,
   2,
   208,
   1,
   "INT"
  ],
  [
   123,
   203,
   1,
   208,
   2,
   "INT"
  ],
  [
   124,
   205,
   0,
   209,
   0,
   "IMAGE"
  ],
  [
   125,
   208,
   1,
   209,
   2,
   "INT"
  ],
  [
   126,
   209,
   0,
   57,
   7,
   "IMAGE"
  ],
  [
   127,
   208,
   1,
   206,
   1,
   "INT"
  ],
  [
   128,
   206,
   1,
   57,
   14,
   "INT"
  ]
 ],
 "groups": [],
 "config": {},
 "extra": {
  "ds": {
   "scale": 0.9,
   "offset": [
    416,
    110
   ]
  },
  "seamless_scene_channel": "Production v4"
 },
 "version": 0.4
}
