pawel Posted July 28, 2017 Report Share Posted July 28, 2017 hi, this is probably a very dumb question... the documentation shows how to override Factories to extend the functionality of fetched objects. This is very cool and exactly what we need. http://ftrack-python-api.rtd.ftrack.com/en/stable/working_with_entities.html#default-projections However, I'm not entirely sure how to add a custom factory to a session. Do I need to wrap it in a plugin? The example in documentation states that the session has to be restarted but how will it pick up the new factory? There seems to be no way to just pass it to the session other than through a custom plugin. I'm sure I'm missing something trivial... Link to comment Share on other sites More sharing options...
Lucas Correia Posted July 28, 2017 Report Share Posted July 28, 2017 Hi Pawel, The documentation includes a default plugin (construct_entity_type.py) with a factory which you can copy and modify to suite your needs. The section configuring plugins also explains how to add a plugin to your session. You can do this by pointing the environment variable FTRACK_EVENT_PLUGIN_PATH or the keyword argument plugins_paths to a directory containing the plugin with your factory. Regards, Lucas Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.