Get AssetBuildTypes using new ftrack api
0

3 posts in this topic

Hello all,

i am new to ftrack and this is my first query.

We know that from the old ftrack api, we can get the AssetBuild types as:
 

project_object = ftrack.getProject("<ProjectName>")

project_object.getAssetBuildTypes()

But how can we get it using the new ftrack api ?

Regards

Share this post


Link to post
Share on other sites

Hi,

 

you can get the asset types for a project / project schema like this

 

session = ftrack_api.Session()

project = session.query(
    'Project where name is "<ProjectName>"'
).first()

types = project.get('project_schema').get_types('AssetBuild')
    

 

cheers

Eric

 

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
0