Eder Agreda Posted May 2, 2016 Report Share Posted May 2, 2016 Hello. as you suggested, I am trying the new api.I read that its possible to keep both apis running at the same time and I tried a little exercise: I queried a sequence using both apis and I got this result: the first line its the result using the old api and the last one ,using the last one. Then,I tried to create a folder: if in "session.create" in "parent " I use "sequence01" it works fine but If I use "sequence" I got an error ,so I would appreciate If anyone could tell me what do I need to make it work. Greetings and sorry If I am asking too many questions. Link to comment Share on other sites More sharing options...
tokejepsen Posted May 3, 2016 Report Share Posted May 3, 2016 "sequence" is the old apis object, and "sequence01" is the new apis object. You can't mix objects between the apis. If you are using the new api for creating you will need "sequence01". As for your example you are better off getting the id of an object in the old api, and then get the new apis object by querying the id (I haven't tested the below code): old_sequence = ftrack.getSequence(["createcondorito", "test"]) new_sequence = session.query('Sequence where id is "%s"' % old_sequence.getId()) session.create("Folder", {"name": "testFolder", "parent": new_sequence}) session.commit() Hope that helps Link to comment Share on other sites More sharing options...
Eder Agreda Posted May 4, 2016 Author Report Share Posted May 4, 2016 thanks!! It helped a lot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.