Skip to content
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

Metadata : Add targetsWithMetadata() function #6222

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

johnhaddon
Copy link
Member

This is the first of a few PRs containing some of the groundwork for GafferRenderMan. The final GafferRenderMan PR is likely to be a bit big, so I'm breaking off what I can to be reviewed separately.

The targetsWithMetadata() function will be used in GafferRenderMan to automatically populate RenderManAttributes and RenderManOptions nodes from metadata-based definitions - the same definitions used to populate the AttributeEditor and RenderPassEditor. We're planning to eventually make the metadata be the single-source-of-truth for all renderers, but RenderMan will be the first one.

@johnhaddon johnhaddon requested a review from ericmehl January 20, 2025 11:23
@johnhaddon johnhaddon self-assigned this Jan 20, 2025
@johnhaddon johnhaddon changed the base branch from main to 1.5_maintenance January 20, 2025 11:44
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This is equivalent to `nodesWithMetadata()` and `plugsWithMetadata()`, but for string targets. Ths also switched the internal container to maintain order of insertion so that we can return targets in the order they were first created.
@johnhaddon johnhaddon merged commit 8b7c846 into GafferHQ:1.5_maintenance Jan 22, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending release
Development

Successfully merging this pull request may close these issues.

2 participants