10-05-2021, 09:46 PM
(10-05-2021, 09:31 PM)Tegwick Wrote: From here I will try to find answers for the following questions:I pretty much sure every questions is answered in docs for the api.
Q1) How do I grab the URI for accessing an asset using the API?
Q2) How can I reference to the most current version of an asset?
Anyway getting the latest file would be:
search_key = 'prod/asset?project=sample3d&code=chr001'
snapshot = server.get_snapshot(search_key, context='anim', [i]include_web_paths_dict=True, versionless=True)
[/i]for the specific version:
snapshot = server.get_snapshot(search_key, context='anim', [i]include_web_paths_dict=True, version=2)[/i]