Skip to main content
The LatentCut node extracts a specific section from latent samples along a chosen dimension. It allows you to cut out a portion of the latent representation by specifying the dimension (x, y, or t), starting position, and amount to extract. The node handles both positive and negative indexing and automatically adjusts the extraction amount to stay within the available bounds.

Inputs

ParameterDescriptionData TypeRequiredRange
samplesThe input latent samples to extract fromLATENTYes-
dimThe dimension along which to cut the latent samplesCOMBOYes”x"
"y"
"t”
indexThe starting position for the cut (default: 0). Positive values count from the start, negative values count from the end. The node automatically clamps the index to stay within the valid range of the latent samplesINTYes-16384 to 16384
amountThe number of elements to extract along the specified dimension (default: 1). The node automatically reduces this value if it would exceed the available data beyond the starting indexINTYes1 to 16384

Outputs

Output NameDescriptionData Type
outputThe extracted portion of the latent samplesLATENT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): c05ce7a33d9416bdd8dabeed2c61fbc6102fc9e797d727aefaadb00f375287a9