ftrack_api.inspection

ftrack_api.inspection.identity(entity)[source]

Return unique identity of entity.

ftrack_api.inspection.primary_key(entity)[source]

Return primary key of entity as an ordered mapping of {field: value}.

To get just the primary key values:

primary_key(entity).values()
ftrack_api.inspection.state(entity)[source]

Return current entity state.

ftrack_api.inspection.states(entities)[source]

Return current states of entities.

An optimised function for determining states of multiple entities in one go.

Note

All entities should belong to the same session.