ftrack_api.resource_identifier_transformer.base¶
-
class
ftrack_api.resource_identifier_transformer.base.ResourceIdentifierTransformer(session)[source]¶ Transform resource identifiers.
Provide ability to modify resource identifier before it is stored centrally (
encode()), or after it has been retrieved, but before it is used locally (decode()).For example, you might want to decompose paths into a set of key, value pairs to store centrally and then compose a path from those values when reading back.
Note
This is separate from any transformations an
ftrack_api.accessor.base.Accessormay perform and is targeted towards common transformations.-
__init__(session)[source]¶ Initialise resource identifier transformer.
session should be the
ftrack_api.session.Sessioninstance to use for communication with the server.
-