I would like to add some interactions in usd using python tools. Specifically I would like some tap/click interactions in usd files that eventually will be ported to usdz.
Sorry for the delayed response. Since the behaviour schemas for QuickLook are bespoke/preliminary schemas, personally I would recommend exporting an example of what you want out of Reality Composer (non-Pro) as a USDZ file.
If you convert the USDZ file to a usda, you should be able to see the exact schema names and attributes to use.
I believe @herbst has done some work for his web product for some common ones and might be of assistance too.
Unfortunately I have a newer OS and can’t install/use non-Pro reality composer. I have read multiple times that USDZ can do this even on the Apple developer website!
But I don’t know how to put the pieces together in python or manually through editing a usda file. I placed a post on the Apple dev forums too
(USD/Z schemas and Declarations | Apple Developer Forums) but that place seems quite dead!
I would even settle for an interactive USDZ file but I can’t find one anywhere!
Oh sorry, forgot to mention. Go to the settings app, look for Reality Composer there and there’s an option to Enable USDZ Export. It’s off by default.
With regards to using the schema, you can create it ad hoc.
In Python, you have stage.DefinePrim and one of the arguments is the type name. You can give it any arbitrary string. As long as it matches something known, it’ll be fine.
Needle indeed has the capability to generate USDZ with Preliminary_Behavior on the fly from browser applications, including an API that can emit arbitrarily compex behaviour chains (more complex than what Reality Composer allows for). It also includes higher-level logic for commonly used scenarios such as playing multiple animations, switching materials, and so on.
This is incredible stuff! I have managed to build the interactivity I needed by using Reality Composer and manually editing the usda file as a template (I am building this to be unique and defined per user) - but this looks incredible.