natasha Posted June 2, 2016 Report Share Posted June 2, 2016 I have written a custom action to upload a reference movie clip to a shot in ftrack. Once the action is launched, it creates a movie from images on disk and then uploads this movie as an attachment to the shot. After the action is launched, the movie creation and upload runs asynchronously. What's the best way to give feedback to the user regarding the asynchronous processes? I can output messages to the terminal, but an artist may not look at their terminal or even have it open. How can I do I give feedback in the ftrack web UI? Thanks, Natasha Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted June 3, 2016 Report Share Posted June 3, 2016 Hi Natasha, I would recommend creating a job for this. Which api are you using, legacy or ftrack-python-api? Link to comment Share on other sites More sharing options...
natasha Posted June 3, 2016 Author Report Share Posted June 3, 2016 I was just about to comment saying I got it working with ftrack jobs. In case anyone else comes looking for the same thing, I referenced these:https://bitbucket.org/snippets/ftrack/nKoB#file-note_on_multiple_entities_action.pyhttps://bitbucket.org/tokejepsen/ftrack-hooks/src/8c822233a35dd0be71194b4ada9064fbf8839eb4/delivery.py?fileviewer=file-view-default#delivery.py-58 Link to comment Share on other sites More sharing options...
tokejepsen Posted June 3, 2016 Report Share Posted June 3, 2016 This might be an even better example; https://bitbucket.org/tokejepsen/ftrack-hooks/src/b636c49593d667b44cd25c3db404ebfe1393b141/collect_assets.py?at=master&fileviewer=file-view-default Link to comment Share on other sites More sharing options...
tokejepsen Posted June 3, 2016 Report Share Posted June 3, 2016 Also this is useful; Link to comment Share on other sites More sharing options...
jerome Posted September 8, 2016 Report Share Posted September 8, 2016 I have been using a job to wrap a long running action and it is quite nice. But jobs seems a bit limited with legacy API, is there a way to specify: a progress value a custom message (in addition to the title) Or should we switch to new API for this ? Cheers, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.