Deeploy.TilingExtension.TilerExtension.TilingReadyNodeBindings
- Deeploy.TilingExtension.TilerExtension.TilingReadyNodeBindings(nodeBindings: List[NodeBinding], tileConstraint: TileConstraint) List[NodeBinding]
Apply tiling constraints to a list of node bindings.
Creates deep copies of the provided node bindings and attaches the specified tile constraint to each binding’s template.
- Parameters:
nodeBindings (List[NodeBinding]) – List of node bindings to make tiling-ready.
tileConstraint (TileConstraint) – The tile constraint to attach to each binding.
- Returns:
List of node bindings with tiling constraints attached.
- Return type:
List[NodeBinding]
Notes
The function creates deep copies to avoid modifying the original node bindings. Each template in the copied bindings gets the tileConstraint attribute set.
Examples
>>> bindings = [binding1, binding2, binding3] >>> constraint = MyTileConstraint() >>> tiling_bindings = TilingReadyNodeBindings(bindings, constraint)