Philip 3 Posted September 15, 2016 Report Share Posted September 15, 2016 HI Just wondered, is it possible to share components between asset versions? I'm pretty sure I was doing this and it was working, however, I'm noticing now that its not working and I'm questioning my a sanity as to whether it ever was. If I create a Component (unmanaged location) on a AssetVersion all is good, but if I try to add the same Component to another AssetVersion, it simply transfers it. sourceAssetVersion = session.get("AssetVersion","cf0e384c-606d-4bc1-9fdd-b7983562bc32") destAssetVersion = session.get("AssetVersion","d9fdddf7-d27d-45ec-8bfb-1c95ecf97afa") destAssetVersion['components'].append(sourceAssetVersion['components'][0]) session.commit() Is this normal behaviour? thanks Phil Link to post Share on other sites
Mattias Lagergren 145 Posted September 16, 2016 Report Share Posted September 16, 2016 Hi Philip, A component cannot be attached to several versions at the same time. There is a relation on the Component (version_id) entity that points directly to an AssetVersion. Link to post Share on other sites
Philip 3 Posted September 16, 2016 Author Report Share Posted September 16, 2016 OK Thank you for confirming. I think I must have imagined it working, and probably thought that because you can share a thumbnail you could share any component. But I guess the thumbnails are handled differently. Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now