File Locking#

anchorpoint.lock(workspace_id: str, project_id: str, targets: List[str], description: Optional[str] = None, metadata: Dict[str, str] = {}) None#

Locks a list of files

Example

>>> files = ["C:/Project/asset.blend"]
>>> anchorpoint.lock(ctx.workspace_id, ctx.project_id, files)
anchorpoint.unlock(workspace_id: str, project_id: str, targets: List[str], force: bool = False) None#

Unlocks a list of files

Example

>>> files = ["C:/Project/asset.blend"]
>>> anchorpoint.unlock(ctx.workspace_id, ctx.project_id, files)
anchorpoint.update_locks(workspace_id: str, project_id: str, locks: List[apsync.Lock]) None#

Updates Locks (e.g. description, metadata)

anchorpoint.get_locks(workspace_id: str, project_id: str) List[apsync.Lock]#

Returns all locks for a given project

Example

>>> anchorpoint.get_locks(ctx.workspace_id, ctx.project_id)