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

[USDA] Print properties lexicographically? #166

Open
syoyo opened this issue Jun 11, 2024 · 0 comments
Open

[USDA] Print properties lexicographically? #166

syoyo opened this issue Jun 11, 2024 · 0 comments

Comments

@syoyo
Copy link
Collaborator

syoyo commented Jun 11, 2024

pxrUSD prints properties lexicographically always, but TinyUSDZ is not.

TinyUSDZ prints properties lexicographically for USDA input, or USDC without properties Prim metadata(exists only in USDC).
When properties metadata exists in USDC, TinyUSDZ prints properties based on it.

For example, attached USDC has the following properties metadata

 properties = ["myval", "aval"]

And tusdcat prints USD scene as

#usda 1.0

def "bora"
{
    def "a"
    {
        float myval = 1
        float aval = 2
    }

    def "b"
    {
    }

    def "aa"
    {
    }
}

but pxrUSD usdcat prints as

#usda 1.0

def "bora"
{
    def "a"
    {
        float aval = 2
        float myval = 1
    }

    def "b"
    {
    }

    def "aa"
    {
    }
}

NOTE: Prim is not always printed lexicographically.
prop-order-001.zip

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

No branches or pull requests

1 participant