Skip to content

USD Assets: Thumbnail / Cards Generation #4

Open

Description

@matthewlow-dwa

For USD Assets hosted by DPEL, we should consider providing a Python script that automatically generates thumbnails (UsdMediaAssetPreviewsAPI) and/or cards (Draw Mode) representations so that they can be consistently applied. The script should iterate over leaf model / component prims on the stage, frame, render, and update.

As an example, ALab provides cards, but not thumbnails.

Activity

  1. aden-tt commented on May 7, 2026

    @aden-tt

    Hi, I'm a tech art student planning to participate in Dev Days and interested in contributing to this issue. I'm trying to join the ASWF Slack but my email isn't on the approved domain list, would anyone be able to send me an invite? My email is [removed]. Thanks!

  2. matthewlow-dwa commented on May 7, 2026

    @matthewlow-dwa
    ContributorAuthor

    Hi @aden-tt , and welcome! Glad to have you work on this issue for Dev Days. I've sent you an invite to the ASWF Slack.

  3. aden-tt commented on May 7, 2026

    @aden-tt

    Thanks!

  4. aden-tt commented on Sep 7, 2026

    @aden-tt

    Hello! I just wanted to give an update that I am still working on this! I'm aware the next DevDays is coming up, I should be done with the tool and will ask for review this weekend! Sorry for the delay

  5. aden-tt commented on Sep 25, 2026

    @aden-tt

    I had a question about the “iterate over leaf model / component prims” part.

    From my understanding, a prim can contain many nested prims, but I'm not sure how to determine which prims should actually get thumbnails/cards. Especially since DPEL's assets come from different studios and pipelines, is there any convention or metadata I can use in my code to determine this?

    I looked at ALab's structure, which is very elaborate, but other assets like OpenShaderPlayground only have one USD asset with everything in the scene inside it (pic attached). I was also considering creating a GUI where the user can select/deselect the prims they want to generate thumbnails/cards for, but I wanted to get your input before designing around that.

    I've been able to create the functionality for creating thumbnails and cards for a single prim but I'm wondering where to go from there.

  6. aden-tt commented on Sep 25, 2026

    @aden-tt

    So far, after some discussion with @matthewlow-dwa this is how I plan to implement the tool:

    • By default it will try to sort prims by IsComponent() or UsdPrimIsModel.
    • If no prims have this data, it will fallback or prompt the user to sort by prims with AssetInfo or specified prim bounds (ex. prim is over 1cm x 1cm x 1cm).
    • Users will also be able to pass an explicit list of prims.
    • These settings will be configurable via flags (e.g. usd-preview-generator.py usd.usda --assetInfo), and I'll include a help command for documentation.

    I had a couple more questions:

    1. Should I also support being input a directory (and sub-directory) of USD assets rather than just one?
    2. Where should I store the thumbnails and cards? Since there might be a lot of prims in one usda, I think following a similar structure to ALab's _preview.usda would work well across all types of assets. I would add all the thumbnails and cards schema data in a seperate dependent usda.

    Feedback appreciated! Thanks 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions