Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The ReplaceVideoLatentFrames node inserts frames from a source latent video into a destination latent video, starting at a specified frame index. If the source latent is not provided, the destination latent is returned unchanged. The node handles negative indexing and will issue a warning if the source frames do not fit within the destination.

Inputs

ParameterData TypeRequiredRangeDescription
destinationLATENTYes-The destination latent where frames will be replaced.
sourceLATENTNo-The source latent providing frames to insert into the destination latent. If not provided, the destination latent is returned unchanged.
indexINTNo-MAX_RESOLUTION to MAX_RESOLUTIONThe starting latent frame index in the destination latent where the source latent frames will be placed. Negative values count from the end (default: 0).
Constraints:
  • The index must be within the bounds of the destination latent’s frame count. If it is not, a warning is logged and the destination is returned unchanged.
  • The source latent frames must fit within the destination latent frames starting from the specified index. If they do not, a warning is logged and the destination is returned unchanged.

Outputs

Output NameData TypeDescription
outputLATENTThe resulting latent video after the frame replacement operation.