aline.lima Posted July 29, 2014 Report Share Posted July 29, 2014 Hello, There's a way that I can create a new note with a attached file (image or video) using API? Thank you,Aline Lima Link to comment Share on other sites More sharing options...
Carl Claesson Posted July 30, 2014 Report Share Posted July 30, 2014 Hi Aline, You can attach files to notes from the API by doing:entity = # Get an entity from ftrack. Eg. task, shot, project.note = entity.createNote('note text')note.createAttachment('path/to/file', fileName='attachment.png')Let me know if that helps. Regards,Carl Link to comment Share on other sites More sharing options...
aline.lima Posted July 30, 2014 Author Report Share Posted July 30, 2014 Yes, that is it! Thank you,Aline Lima Link to comment Share on other sites More sharing options...
vitek Posted July 4, 2018 Report Share Posted July 4, 2018 Hi there! How can I achieve the same thing with the new API, please? Thanks in advance! Vit Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted July 6, 2018 Report Share Posted July 6, 2018 There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments Link to comment Share on other sites More sharing options...
vitek Posted July 13, 2018 Report Share Posted July 13, 2018 On 7/6/2018 at 10:26 AM, Mattias Lagergren said: There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments Thank you, it worked! Link to comment Share on other sites More sharing options...
vitek Posted July 19, 2018 Report Share Posted July 19, 2018 Thanks! Works like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.