Jump to content

Project Event Subscription


tokejepsen

Recommended Posts

Is this the best way to subscribe to project specific events?

import ftrack_apidef my_callback(event):    '''Event callback printing all new or updated entities.'''    if 'PROJECT_ID' in event['data']['parents']:        print event# Subscribe to events with the update topic.session = ftrack_api.Session()session.event_hub.subscribe('topic=ftrack.update', my_callback)session.event_hub.wait()

Or can you filter directly to the events in the "topic"?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...