aline.lima 11 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 post Share on other sites
Carl Claesson 13 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 post Share on other sites
aline.lima 11 Posted July 30, 2014 Author Report Share Posted July 30, 2014 Yes, that is it! Thank you,Aline Lima Link to post Share on other sites
vitek 0 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 post Share on other sites
Mattias Lagergren 145 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 vitek and Remus Avram 2 Link to post Share on other sites
vitek 0 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 post Share on other sites
vitek 0 Posted July 19, 2018 Report Share Posted July 19, 2018 Thanks! Works like a charm! Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now