0

Listing sg_asset_type Values

Hello there..
I'm trying to get all values from "sg_asset_type" Asset Field. Usually is a list with "Character, Vehicle, Prop, Environment, Matte Painting" but i'm not sure which entity I can use to get the whole list since sg.find("Asset",[],['sg_asset_type']) just returns sg_asset_type from existing assets, and that is not what i'm looking for.
Thanks.

2 comments

  • Avatar
    Rob Blau Official comment

    Hey there, to get the valid values you want to look at the the schema calls in the api.  For the sg_asset_type fields, you can get at the info with a call like this:

    shotgun.schema_field_read("Asset", "sg_asset_type")["sg_asset_type"]["properties"]["valid_values"]["value"]

     

  • 0
    Avatar
    mb0rt

    Thx Rob.

Please sign in to leave a comment.