Remus Avram Posted July 3, 2018 Report Share Posted July 3, 2018 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 More sharing options...
Remus Avram Posted July 11, 2018 Author Report Share Posted July 11, 2018 Is this expected? Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted July 12, 2018 Report Share Posted July 12, 2018 This is a known "issue" and not designed. We're considering changing this in the future to limit creation of new components with duplicate names. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.