Jump to content

Johan Boekhoven

Members
  • Posts

    3
  • Joined

  • Last visited

Johan Boekhoven's Achievements

  1. And this might come in handy too : https://github.com/ftrackhq/ftrack-recipes/tree/main/python/tools/manage_project_schemas
  2. Here's my cleanup routine for assets that have no AssetVersion: def delete_empty_assets(): """Delete all assets that have no versions.""" assets = SESSION.query("select id, name from Asset where latest_version is none").all() for asset in assets: print(f"found asset: {asset['id']} : {asset['name']}") SESSION.delete(asset) SESSION.commit() SESSION is an instance of FtrackSession.
  3. You've probably seen it already, but in the help on your ftrack webpage, there's help>API reference, which will list all entities and their properties. It's useful.
×
×
  • Create New...