ftrack_api.structure.id

class ftrack_api.structure.id.IdStructure(prefix='')[source]

Id based structure supporting Components only.

A components unique id will be used to form a path to store the data at. To avoid millions of entries in one directory each id is chunked into four prefix directories with the remainder used to name the file:

/prefix/1/2/3/4/56789

If the component has a defined filetype it will be added to the path:

/prefix/1/2/3/4/56789.exr

Components that are children of container components will be placed inside the id structure of their parent:

/prefix/1/2/3/4/56789/355827648d.exr
/prefix/1/2/3/4/56789/ajf24215b5.exr

However, sequence children will be named using their label as an index and a common prefix of ‘file.’:

/prefix/1/2/3/4/56789/file.0001.exr
/prefix/1/2/3/4/56789/file.0002.exr
get_resource_identifier(entity, context=None)[source]

Return a resource identifier for supplied entity.

context can be a mapping that supplies additional information.

__init__(prefix='')

Initialise structure.