Adding schemas

   814   3   0
User Avatar
Member
39 posts
Joined: 11月 2014
Offline
Hi
I can see within the documentation in the Solaris glossary relating to Schema and API Schema. But is there a node within Houdini which provides the ability to add schemas to meshes?

Snippet from a usda file which only contains a box.

    def Mesh "Cube" (
        prepend apiSchemas = ["PhysicsCollisionAPI", "PhysxCollisionAPI", "PhysxTriangleMeshCollisionAPI", "PhysicsMeshCollisionAPI"]
    )

The apiSchemas was added by Nvidia Isaac Sim. I assume we can add this using Python but wanted to know if there were tools already for this so we're not reinventing the wheel.

edited: Sorry i didn't realise the forums didn't like lists and hide the text.

Thanks
Edited by wjm - 2023年11月24日 10:46:02
User Avatar
Member
289 posts
Joined:
Online
The "Configure Primitive" LOP will let you apply API schemas and even change the primitive type:

https://www.sidefx.com/docs/houdini/nodes/lop/configureprimitive.html [www.sidefx.com]
User Avatar
Member
39 posts
Joined: 11月 2014
Offline
Thanks! I can't believe i missed that right at the bottom!

I see that there are PhysicsCollisionAPI and PhysicsMeshCollisionAPI listed in the drop-down.
When i try to add PhysxCollisionAPI and PhysxTriangleMeshCollisionAPI in the string manually, only PhysicsCollisionAPI and PhysicsMeshCollisionAPI are listed in the schemas with PhysxCollisionAPI and PhysxTriangleMeshCollisionAPI being left out. Are we unable to specify schemas that aren't on the list?
User Avatar
Member
289 posts
Joined:
Online
The API schemas need to be visible to USD to work. You might need to add those to the PXR_PLUGINPATH_NAME environment variable:

https://lucascheller.github.io/VFX-UsdSurvivalGuide/core/plugins/overview.html [lucascheller.github.io]
  • Quick Links