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

Initial Sparse Array Edits Proposal #76

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

gitamohr
Copy link
Contributor

Description of Proposal

This proposal introduces a new value type, VtArrayEdit that can sparsely edit weaker VtArray opinions by inserting, erasing, and overwriting elements via a simple editing language, and a general framework for handling sparse attribute value opinions of any type in USD, including time-varying opinions in time samples and value clips.

Sparse Array-Editing Attribute Overrides in OpenUSD

Contributing

@meshula
Copy link
Member

meshula commented Dec 21, 2024

I am wondering about a general resize operation (which I don't think I spotted). I'm thinking of a case like wanting to always successfully set the 3rd element of an array to some value. The proposal says that excess elements are ignored, and so I imagine that if the 3rd element is beyond the end of the array, my value is an excess element. So then, I notice that insert and remove change an array size, so I could imagine first doing three insertions at the end of the array in order to force that the array is at least three long, and now my write will succeed. Was something like resize minimum 3 already considered? That would be less problematic than my hypothetical work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Draft
Development

Successfully merging this pull request may close these issues.

3 participants