Jump to content

peter divers

Members
  • Content Count

    5
  • Joined

  • Last visited

About peter divers

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location
    Melbourne, Australia

Contact Methods

  • Skype
    pdivers87
  1. Hello im passing in a spreadsheet into python trying to create many asset builds and folder etc. from this and i keep getting the below error which i believe is because i have multiple objects in the same hierarchy so its trying to create the upper objects int he hierarchy twice, what is the best way you guys have found to catch this or query if that item exists before creating my code it similar to below below ERROR ftrack_api.exception.ServerError: Server reported error: IntegrityError((_mysql_exceptions.IntegrityError) (1062, "Duplicate entry '780a712a-9bc3-11ea-b9ae-d61ccb4e321b-
  2. peter divers

    Managers

    Ive posted a topic on this but just found this one, so I guess bumping this back up again
  3. peter divers

    Managers

    Im trying to find where I can return a list of the managers of a project from it seemed easy in the old api of using project.getManager(), but in the new version im having issues ive tried scanning through at both a task and project level to no success any help would be greatly appreciated. cheers
  4. thankyou Mattias, I am now steam rolling through this thanks to your help
  5. Hello all I have an awful lot of questions here as this is my first ftrack api script with event listeners. So here goes below is what I currently have and is all working fine import ftrack_api as ft def ftrackListener(event): print 'event: ' + str(event) for entity in event['data'].get('entities',[]): if entity.get('entityType') == 'task' and entity['action'] == 'update': entityId = str(entity.get('entityId')) parentId = str(entity.get('parentId')) actionType = str(entity['action']) entityType
×
×
  • Create New...