Eder Agreda Posted April 27, 2016 Report Share Posted April 27, 2016 Hello. Iam starting with ftrack api and I have a question abut an issue with creating AssetBuilds If I create it from the project ,it works fine: project = ftrack.getProject("test") typeName = ["Animation", "Layout", "Lighting", "FX"] dict = {} for x in project.getAssetBuildTypes(): if x.getName() in typeName: dict[x.getName()] = x.getId() project.createAssetBuild("anim", dict["Animation"]) but If I tried to create it from a shot or any other task,i Got an error that says "Task Object has not attribute 'createAssetBuild'".For example: seq = ftrack.getSequence(["test", "ep001", "sq001"]) seq.createAssetBuild("anim", dict["Animation"]) Link to comment Share on other sites More sharing options...
Mattias Seebergs Posted April 28, 2016 Report Share Posted April 28, 2016 Hi Eder, You can only create asset builds on the project level, however you can create a link between the asset build and an arbitrary object if you would like by using the addPredecessor and addSuccessor methods. Please note also that you can create tasks on asset builds. Let me know if you have any more questions. Thanks, Mattias Link to comment Share on other sites More sharing options...
Eder Agreda Posted April 28, 2016 Author Report Share Posted April 28, 2016 thank you for the answer .I just have one final question. In the attached image I show what I am trying to do. I did this via web mode. Did I understand correctly when you say It is not possible via api mode? Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted May 2, 2016 Report Share Posted May 2, 2016 Hi Eder, I noticed that you're using the legacy api in your example. The legacy api does come with some limitations and I strongly recommend that you pick up our new ftrack-python-api - you can read more about it here http://ftrack-python-api.rtd.ftrack.com/en/stable/introduction.html Link to comment Share on other sites More sharing options...
Eder Agreda Posted May 2, 2016 Author Report Share Posted May 2, 2016 Thank you! I´ll start reading abut it Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.