Jump to content

dario.siero

Members
  • Posts

    0
  • Joined

  • Last visited

Reputation Activity

  1. Like
    dario.siero reacted to YuChen in Is "ftrack_connect.application" module not available in ftrack connect ?   
    Hi,

    I found some of my tools disappear in "ftrack Connect-2.0.0rc3" due to unable to find "ftrack_connect.application" module. Most of them are application hooks since I need "ftrack_connect.application.ApplicationStore" and "ftrack_connect.application.ApplicationLauncher" in it. I'm a bit confused by the difference of "ftrack-connect-package-1.1.2" and "ftrack Connect-2.0.0rc3". Are they difference things ?
  2. Thanks
    dario.siero reacted to PeterH in API Explorer GUI   
    I made a tool for exploring the API a while back (just remembered to post here after catching a few errors earlier this week), as I was a bit fed up of my old process which was like this:
    >>> user = session.query('User').first() >>> print(user.keys()) # Look for a key related to groups >>> print(user['memberships']) # Perhaps this, check if entity or list >>> print(user['memberships'][0].keys()) # It's a list, check what each item has available >>> print(user['memberships'][0]['group'].keys()) # I see group, what keys does that have >>> print(user['memberships'][0]['group']['name']) # Found what I needed (random example though, I've never actually needed this) >>> user_groups = [membership['group']['name'] for membership in user['memberships']]  
    I find myself loading it now whenever I'm coding something that I'm unfamiliar with, so just sharing here in case anyone else would find it useful.
    https://github.com/huntfx/ftrack-api-explorer
     

×
×
  • Create New...