Jump to content

component name is not unique


Remus Avram

Recommended Posts

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...