Jump to content

component name is not unique


Remus Avram

Recommended Posts

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...