Implement arrangement framework for node groups
- Introduced `frames.py` to manage field complex calculations and their arrangement within node groups. - Added functionality to create and remove field frames based on node arrangements. - Developed `passages.py` to find unobstructed paths for connections around calculation frames. - Implemented `references.py` to route shared results on peripheral tracks, ensuring efficient distribution of outputs. - Created `sections.py` to reserve space for field calculations adjacent to geometry consumers. - Added `sources.py` to position shared calculation sources effectively beside their distribution channels. - Enhanced outline smoothing with `outline_smoothing.py` to adapt camera depth along original outlines.
This commit is contained in:
@@ -22,6 +22,8 @@ def visible_socket(socket):
|
||||
|
||||
def estimate_node_dimensions(node):
|
||||
"""Reserve socket rows, expanded vector values, and node-specific controls."""
|
||||
if node.bl_idname == "NodeFrame":
|
||||
return NodeDimensions(node.width, node.height, {})
|
||||
if node.bl_idname == "NodeReroute":
|
||||
return NodeDimensions(16, 16, {socket: 8 for socket in (*node.inputs, *node.outputs)})
|
||||
inputs = [s for s in node.inputs if visible_socket(s)]
|
||||
|
||||
Reference in New Issue
Block a user