component name is not unique
2 2

3 posts in this topic

Hi Ftrack Team,

the component name is not unique. We are able to create components on a AssetVersion type with the same name.

Code example:

import ftrack_api

session = ftrack_api.Session()
unmanaged_location = session.query('Location where name is "ftrack.unmanaged"').one()
version = session.query("AssetVersion").first()

version.create_component(
        "/path/to/a/file.txt",
        data={'name': "main"},
        location=unmanaged_location
        )
session.commit()

version.create_component(
        "/path/to/a/file.txt",
        data={'name': "main"},
        location=unmanaged_location
        )
session.commit()

Ftrack Version: 3.5.21.4617

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
2 2