Can anyone tell me how I might get an assets type from the assets name though the shotgun api here. I was able to use find to get the asset dict from an asset name
asset_dict = sg_obj.find_one(“Asset”, [[“code”, “is”, “teapot”]])
However this only returns information in regards to the asset id and type which type is Asset. I need to know if its a character or prop etc.
4 Likes
Looks like I figured it out here. just needed to add the fields call there.
sg_obj.find_one(‘Asset’, [[‘code’, ‘is’, ‘teapot’]], [‘sg_asset_type’])
9 Likes
Nice work, @jkiser! Extra thanks for posting your solution for everyone too.
2 Likes