Problem creating Asset Builds
3 3

5 posts in this topic

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"])

Share this post

Link to post
Share on other sites

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.



Share this post

Link to post
Share on other sites

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?

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
3 3