Jump to content

Static URL pointing to latest version of an asset type?


L Smallwood

Recommended Posts

Hi all,

In some cases, I am constructing (or querying) URLs to point to specific asset versions, like so:

https://ftrack.myserver.com/#slideEntityId=7581acc1-3344-4376-b846-fab9d1c69a94&slideEntityType=assetversion&view=tasks&itemId=projects&entityId=4a6cd680-129b-11e8-849a-021590fc46df&entityType=show

The ftrack system uses specific entity IDs in the URL.  I was wondering if there is any way to construct a URL that points to the latest version of a particular asset type?  For example, I want to get the latest "Maya scene" version of asset "table".  Is it at all possible to resolve to that asset version in ftrack, using a URL, that doesn't embed specific IDs in the URL?

Cheers,

Lori

Link to comment
Share on other sites

Hi @L Smallwood you can find an example on how to build url path here :
https://bitbucket.org/ftrack/ftrack-connect-pipeline/src/b7043ae2cd364a4637bf7efbf359087ac404ca1e/source/ftrack_connect_pipeline/ui/publish/workflow.py#lines-374
but this is basically to what boils down to:

'{server_url}/#slideEntityId={version_id}&slideEntityType=assetversion&view=versions_v1&itemId=projects&entityId={project_id}&entityType=show'

you'll need to format with :
server_url, version_id and project_id 
Hope it helps.

Link to comment
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...