Skip to content

[core] New dynamic output attributes #2432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 16, 2024
Merged

Conversation

fabiencastan
Copy link
Member

When an output attribute's default value is set to None, it is treated as dynamic. This means that its value will be determined at runtime by the node. As a result, this output value is not saved within the project to prevent invalidating the scene during graph computation. Instead, the output values of these dynamic attributes are stored in the node's cache folder.

@fabiencastan fabiencastan added this to the Meshroom 2024.1.0 milestone Jun 10, 2024
@fabiencastan fabiencastan marked this pull request as draft June 10, 2024 18:03
@fcastan fcastan force-pushed the dev/dynamicOutputValue branch from 19d93f6 to d5e356c Compare June 15, 2024 17:50
…s not exist as they are not saved in the project

So we always check if they exist before accessing them.
The update is done at the same place as the status update.
This is a duplicate that is not needed.
…e of dynamic output attributes

For dynamic output attributes, the UID does not depend on the attribute
value.
In particular, when loading a project file, the UIDs are updated first,
and the node status and the dynamic output values are not yet loaded, so
we should not read the attribute value.
During the serialization to JSON, dict keys are converted to string. We
need to convert them back to int.
@fabiencastan fabiencastan marked this pull request as ready for review June 16, 2024 19:21
@fabiencastan fabiencastan merged commit 55f1cd9 into develop Jun 16, 2024
@fabiencastan fabiencastan deleted the dev/dynamicOutputValue branch June 16, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant