Remus Avram

Members
  • Content Count

    486
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by Remus Avram


  1. 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