eight Posted August 20, 2014 Report Share Posted August 20, 2014 Hello,I'm getting unexpected behavior when I try to delete an Asset with the API. If I delete an Asset on a Task, then list the parent shot's Assets, then that asset is still there. Here's an example I just came up with:taskAssets = task.getAssets()taskAssets[0].delete()shot = task.getParent()shotAssets = shot.getAssets()shotAssets will still have the asset I deleted.Even if I run this several times, the assets I'm trying to delete are still attached to the shot. Link to comment Share on other sites More sharing options...
eight Posted August 20, 2014 Author Report Share Posted August 20, 2014 Well, I figured it out. Seems that if I delete all of the AssetVersions attached to the Asset before I delete the Asset, it goes away. But if I don't delete the AssetVersions first, it seems to get stuck to the Shot. Link to comment Share on other sites More sharing options...
Mattias Seebergs Posted August 26, 2014 Report Share Posted August 26, 2014 Hi, I got a little curious and felt that I had to try this, but I didn't manage to reproduce your issue. I copied your example in your first post but shotAssets ended up empty. You should not have to delete all asset versions on it first. If you can do this again and get back to me it would be great, this should not be happening. Thanks,Mattias Link to comment Share on other sites More sharing options...
dheeraj.bana Posted November 29, 2016 Report Share Posted November 29, 2016 HI Guys, I want to delete particular asset from shot.But am not able to delete below mentioned Asset object. Asset Object: <asset('{'typeid': None, 'name': 'review', 'assetid': '935b5110-621b-4bf4-8b46-f0ed8decfd4e', 'context_id': 'b8e26b24-8bd4-11e6-8556-001e67d20c13', 'entityType': 'asset', 'taskid': None, 'entityId': '935b5110-621b-4bf4-8b46-f0ed8decfd4e'}')> Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted November 29, 2016 Report Share Posted November 29, 2016 3 hours ago, dheeraj.bana said: I want to delete particular asset from shot.But am not able to delete below mentioned Asset object. Could you provide a self-contained example script where I can reproduce this issue? Please also include information on what permissions the user has who should run the test script. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.