Skip to content

Add FlattenFiles utility conversion node#3061

Draft
Copilot wants to merge 1 commit intodevelopfrom
copilot/create-utility-conversion-node
Draft

Add FlattenFiles utility conversion node#3061
Copilot wants to merge 1 commit intodevelopfrom
copilot/create-utility-conversion-node

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

Adds a pure-Python utility node that accepts a list[list[file]] and produces a flat list[file], enabling graph connections between nodes that emit grouped file lists and nodes that expect a single flat list.

Description

New FlattenFiles node in meshroom/nodes/general/ that flattens a nested list of file lists into a single list.

Features list

  • FlattenFiles node: list[list[file]]list[file] via process()

Implementation remarks

  • Input is a ListAttribute(elementDesc=ListAttribute(elementDesc=File(...))) — nesting ListAttribute within ListAttribute to represent the 2D structure.
  • Output is a ListAttribute(elementDesc=File(...)) populated dynamically in process() by iterating both levels and collecting all .value strings.
  • Extends desc.Node (pure Python, no external binary), consistent with other general utility nodes.

Agent-Logs-Url: https://github.com/alicevision/Meshroom/sessions/7e543717-1323-4994-8791-b64b1972a877

Co-authored-by: fabiencastan <153585+fabiencastan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants