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

Use "DCCFPS" metadata to set TCPS value in alembic reader code #2944

Merged

Conversation

marktucker
Copy link
Contributor

Description of Change(s)

If an alembic file has authored the "DCCFPS" metadata in its config info, use that value as the TimeCodesPerSecond value of the equivalent USD data. This prevents unintended time scaling of Alembic files when translating them from Alembic (which stores samples times in seconds) into USD (which stores sample times in samples). This change does not remove support for the old "Usd" metadata section, which takes precedence to avoid unnecessary behavior changes, and change only takes effect if building against Alembic 1.7.12 or later (when DCCFPS was introduced).

Fixes Issue(s)

…nfo,

use that value as the TimeCodesPerSecond value of the equivalent USD data.
This prevents unintended time scaling of Alembic files when translating
them from Alembic (which stores samples times in seconds) into USD (which
stores sample times in samples).
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-9290

@diyajoy
Copy link
Contributor

diyajoy commented Feb 22, 2024

Hi Mark! Could you add a small abc file that has DCCFPS set to 30 or anything other than 24? Then we can add a small test that opens the abc file and verifies that its timeCodesPerSecond matches.

@marktucker
Copy link
Contributor Author

Of course... This file has the DCC FPS value set to 30 (generated by an as-yet-unreleased version of Houdini - shipping builds of Houdini don't author this metadata):
output_30.zip

@diyajoy
Copy link
Contributor

diyajoy commented Feb 22, 2024

Awesome, thank you!

@diyajoy
Copy link
Contributor

diyajoy commented Mar 2, 2024

Hi Mark! We want to check your test file in to source control on our end, but the file provided is larger than our other test files. Would it be possible for you to provide a file with less data or only metadata that we could use in its place?

@marktucker
Copy link
Contributor Author

Sorry this took so long...
dccfps_30.zip

@diyajoy
Copy link
Contributor

diyajoy commented Mar 20, 2024

That's perfect, thank you!

@pixar-oss pixar-oss merged commit f6fdd14 into PixarAnimationStudios:dev Mar 26, 2024
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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants