Skip to content

Comments

Save output node ID in file metadata#5235

Open
bezo97 wants to merge 1 commit intoComfy-Org:masterfrom
bezo97:output_node_id_in_metadata
Open

Save output node ID in file metadata#5235
bezo97 wants to merge 1 commit intoComfy-Org:masterfrom
bezo97:output_node_id_in_metadata

Conversation

@bezo97
Copy link
Contributor

@bezo97 bezo97 commented Oct 13, 2024

I'm working on solving a feature request that involves a small backend modification. In short, the goal is to display the dropped file in the node it was saved by.

To make this work I allow nodes to access their own unique id's and then modify SaveImage, SaveAudio to write it in metadata.

Related frontend PR: link, which depends on this PR to work.

Implementation details:

  • nodes can access their unique IDs in the id field
  • output nodes like SaveImage, SaveAudio, Preview... etc. utilize this to serialize ID in the metadata

For reviewers:

  • Please confirm whether the ID I'm using in execution.py is correct as there were multiple IDs related to the node. Looks like they are all the same.

- nodes can access their unique IDs
- output nodes like SaveImage, SaveAudio, Preview... etc. utilize this to serialize ID in the metadata
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.

1 participant