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

Installing Schemas.usda #158

Closed
dbaz opened this issue Feb 3, 2017 · 10 comments
Closed

Installing Schemas.usda #158

dbaz opened this issue Feb 3, 2017 · 10 comments

Comments

@dbaz
Copy link

dbaz commented Feb 3, 2017

Hi,
I'm trying to build my schemas library using USDv0.7.2 but it fails to build because the schemas.usda is not installed.

Could we get these base-type schemas.usda installed?

-Baz

@jtran56
Copy link

jtran56 commented Feb 6, 2017

Filed as internal issue #142730.

@dbaz
Copy link
Author

dbaz commented Feb 7, 2017

Also, it doesn't seem like codegenTemplates is installed.
I should really be putting PR's in for this kind of thing.
Thanks!

@chadrik
Copy link
Contributor

chadrik commented May 28, 2017

Hi all, has there been any movement on this issue? If there has not, it would be great to start discussing how this should work so that we can possibly make a PR for it.

@spiffmon
Copy link
Member

spiffmon commented May 28, 2017 via email

@chadrik
Copy link
Contributor

chadrik commented May 29, 2017

Hmm... tricky problem. What solutions have you come up with?

Here's a very rough draft that comes to mind:

  • create an environment variable for defining a schema search path
  • give each schema.usda a unique name, e.g.. usdGeom.schema.usda
  • use a custom asset resolver to find schemas on the search path. e.g.
    #usda 1.0
    (
        "This file describes the USD Geometric schemata for code generation."
        subLayers = [
            @usd.schema.usda@
        ]
    )
    
  • set the env var during the build process

@spiffmon
Copy link
Member

spiffmon commented Jun 1, 2017 via email

@chadrik
Copy link
Contributor

chadrik commented Jun 1, 2017

@spiffmon Sounds like a plan. This will pave the way for releasing some open source projects, which should really help the community by providing some working examples.

On a related note, have you considered moving the third-party extensions into their own repos once this is complete? It would really improve compilation time in the general case, as well as jump-start the plugin ecosystem with pixar-blessed examples.

@spiffmon
Copy link
Member

spiffmon commented Jun 1, 2017 via email

@sirpalee
Copy link
Contributor

@spiffmon Submitted a PR that implements your idea from above.

@sunyab
Copy link
Contributor

sunyab commented Aug 21, 2017

Just wanted to note we've landed a series of changes to address this. This does affect how USD schemas get included in other schemas. Previously, the sublayer paths to do this had to be paths that pointed into a source tree. Now, we use a search path-based scheme so clients just have to mention the name of the library containing the schema.usda to be included. For example:

#usda 1.0
(
    "Example schema.usda file that uses schema.usda from usd and usdGeom"
    subLayers = [
        @usd/schema.usda@,
        @usdGeom/schema.usda@
    ]
)
...

Please let us know if there are any questions or concerns here. We'll close this out once these changes get pushed into the next release. Thanks!

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

6 participants