H3 Protect Prefix (alpha):
The H3ProtectPrefix node is designed to manage and protect specific segments of a sequence by adjusting the "holds" within a given plan. Its primary function is to ensure that certain frames, defined as the prefix and suffix, are preserved or "protected" during processing. This node is particularly useful in scenarios where maintaining the integrity of specific frames is crucial, such as in animation or video editing workflows. By setting the prefix frames to a constant value, it effectively prevents unwanted alterations, ensuring that the initial frames remain intact. Additionally, it can also protect suffix frames if specified, providing a comprehensive solution for frame preservation. This capability is essential for maintaining continuity and consistency in visual outputs, especially when dealing with complex sequences that require precise control over frame manipulation.
H3 Protect Prefix (alpha) Input Parameters:
hold_map
The hold_map parameter is a JSON string that represents the current state of frame holds. It is crucial for determining which frames are to be protected. This parameter directly influences how the node will adjust the holds, ensuring that the specified prefix and suffix frames are preserved. The input should be a valid JSON string that includes a list of holds, which the node will modify based on the plan.
plan
The plan parameter is another JSON string that outlines the strategy for frame protection. It includes details such as the number of frames to protect as a prefix and optionally as a suffix. This parameter is essential for guiding the node's operation, as it dictates the extent of frame protection. The plan should be carefully crafted to align with the desired outcome, ensuring that the correct frames are preserved.
H3 Protect Prefix (alpha) Output Parameters:
modified_hold_map
The modified_hold_map is a JSON string that reflects the updated state of frame holds after the node has executed its protection logic. It shows which frames have been set to a constant value, indicating their protected status. This output is crucial for verifying that the node has correctly applied the intended frame protection, allowing users to ensure that their sequence maintains the desired integrity.
report
The report is a string that provides a summary of the node's actions, detailing how many frames were protected as a prefix and suffix, and the overall impact on the sequence. This output is valuable for understanding the node's effect on the sequence and for troubleshooting any issues that may arise during processing. It offers insights into the node's operation, helping users to fine-tune their plans for optimal results.
H3 Protect Prefix (alpha) Usage Tips:
- Ensure that the
hold_mapandplanparameters are correctly formatted as JSON strings to avoid errors during processing. - Use the
reportoutput to verify that the node has applied the desired frame protection, and adjust theplanparameter if necessary to achieve the correct outcome. - Consider the sequence's overall structure when defining the prefix and suffix in the
planto ensure that the most critical frames are protected.
H3 Protect Prefix (alpha) Common Errors and Solutions:
Invalid JSON format in hold_map or plan
- Explanation: The input parameters
hold_maporplanare not properly formatted as JSON strings, leading to parsing errors. - Solution: Ensure that both
hold_mapandplanare valid JSON strings. Use a JSON validator to check the format before inputting them into the node.
Missing or incorrect keys in plan
- Explanation: The
planparameter lacks necessary keys or contains incorrect values, preventing the node from executing its logic correctly. - Solution: Verify that the
planincludes all required keys, such ashandleandresolved, and that these keys contain appropriate values. Adjust the plan to include any missing information.
Unexpected output in modified_hold_map
- Explanation: The node's output does not match the expected frame protection, possibly due to incorrect input parameters.
- Solution: Review the
reportoutput to understand the node's actions and adjust thehold_mapandplanparameters accordingly to achieve the desired frame protection.
