digitaldistrict Posted May 19, 2017 Report Share Posted May 19, 2017 hi, I would like when I publish an AssetVersion, that my thumbnail is used to update the parents Task and Shot. The problem is that the thumbnail is generated by makeReviewable and I have no way of knowing when it's finished. Because when it finishes generating the web review it crushes the current thumbnail by his own. In summary : - how can I detect the addition of a new thumbnail? And execute code as soon as it happens - is there a better solution for it to do it automatically? Thank ! Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted May 19, 2017 Report Share Posted May 19, 2017 Are you triggering the makeReviewable your self or is this through Connect or a plugin provided by ftrack? Link to comment Share on other sites More sharing options...
digitaldistrict Posted May 22, 2017 Author Report Share Posted May 22, 2017 Yes I'm triggering the makeReviewable through ftrack-connect/resource/hook/make_web_playable.py, by : ftrack.Review.makeReviewable(version, path) Link to comment Share on other sites More sharing options...
Milan Kolar Posted June 5, 2017 Report Share Posted June 5, 2017 Have a look here. https://github.com/kredencz/ftrack-event-plugins-kredenc/blob/master/thumbnail_updates.py We're listening to events on `assetversion` where action is `encoded`, then grab a thumb and push it to the parent. Using Toke Jepsen's event server script, we're running a lot of these little event listeners. Link to comment Share on other sites More sharing options...
digitaldistrict Posted June 7, 2017 Author Report Share Posted June 7, 2017 I'll watch, thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.