nuketesting.bbox_checks.bbox_checker

Module for comparing bbox data.

Functions

assert_bbox_shape(→ None)

Assert that the node bbox matches the provided shape.

assert_same_bbox(→ None)

Assert that both nodes have the same bounding box.

Module Contents

assert_bbox_shape(node: nuke.Node, shape: list[int] | nuke.Box | str) None

Assert that the node bbox matches the provided shape.

Parameters:
  • node – The node to check.

  • shape – A bounding box shape in the order [left, bottom, right, top] Strings are supported but need to follow the same ordering. Each value separated by a whitespace.

assert_same_bbox(node_a: nuke.Node, node_b: nuke.Node) None

Assert that both nodes have the same bounding box.

Parameters:
  • node_a – First node to check.

  • node_b – Second node that will be checked.

Raises:

AssertionError – The bounding boxed do not match.