sultanbal Posted December 20, 2017 Report Share Posted December 20, 2017 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 Link to comment Share on other sites More sharing options...
Eric Hermelin Posted December 20, 2017 Report Share Posted December 20, 2017 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 Link to comment Share on other sites More sharing options...
sultanbal Posted December 20, 2017 Author Report Share Posted December 20, 2017 Superb !!! Thanks Eric Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.