WanVideo Block List:
The WanVideoBlockList node is designed to facilitate the management of block sequences within the WanVideo framework. Its primary function is to generate a list of block indices based on a user-defined string input. This string can include individual block numbers or ranges, allowing for flexible and precise control over which blocks are selected for operations such as block swapping. This capability is particularly useful when you need to apply specific transformations or effects to certain segments of a video, as it allows you to specify exactly which blocks should be affected. By converting a simple string input into a structured list of integers, the node simplifies the process of block selection, making it more intuitive and accessible for users who may not be familiar with programming or scripting.
WanVideo Block List Input Parameters:
blocks
The blocks parameter is a string input that specifies which blocks to include in the list. It accepts a comma-separated list of block indices, which can be individual numbers or ranges. For example, you can input 0,2,3-5 to select blocks 0, 2, 3, 4, and 5. This parameter is crucial for defining the scope of the block operations you wish to perform. The default value is "1", and it supports multiline input, allowing for more complex configurations. Properly configuring this parameter ensures that the desired blocks are targeted for any subsequent processing or transformations.
WanVideo Block List Output Parameters:
block_list
The block_list output is an integer list that represents the parsed and expanded version of the input blocks string. This list contains all the block indices specified by the user, including any ranges that have been expanded into individual numbers. The output is essential for downstream nodes or processes that require a precise list of block indices to operate on. By providing a structured list, it enables seamless integration with other components of the WanVideo framework, ensuring that the specified blocks are correctly identified and processed.
WanVideo Block List Usage Tips:
- Use ranges in the
blocksparameter to efficiently select multiple consecutive blocks, such as0-5for blocks 0 through 5. - Ensure that theblocksstring is correctly formatted with commas and hyphens to avoid errors in parsing.
WanVideo Block List Common Errors and Solutions:
Invalid range: '<part>'
- Explanation: This error occurs when the input string contains a range that cannot be parsed into valid integers, such as
5-a. - Solution: Check the
blocksinput for any non-numeric characters in ranges and correct them to valid integers.
Invalid integer: '<part>'
- Explanation: This error is raised when an individual block number in the input string is not a valid integer, such as
a. - Solution: Ensure that all block numbers in the
blocksinput are valid integers and correct any typos or non-numeric entries.
