From 98beaf7fb7befb2edbf12d44244e6319ceba8286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 11 Nov 2016 09:23:39 +0100 Subject: [PATCH] Unlinking a single shot copies the shot ID to the clipboard. This allows you to easily unlink one strip, and relink another. This cannot be done for multiple shots simultaneously. --- blender_cloud/attract/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/blender_cloud/attract/__init__.py b/blender_cloud/attract/__init__.py index 1c55d3c..6d57f39 100644 --- a/blender_cloud/attract/__init__.py +++ b/blender_cloud/attract/__init__.py @@ -514,7 +514,13 @@ class AttractStripUnlink(AttractOperatorMixin, Operator): node = Node({'_id': oid}) pillar.sync_call(node.patch, {'op': 'unlink'}) - self.report({'INFO'}, 'Shot %s has been marked as Unused.' % oid) + + if len(unlinked_ids) == 1: + shot_id = unlinked_ids.pop() + context.window_manager.clipboard = shot_id + self.report({'INFO'}, 'Copied unlinked shot ID %s to clipboard' % shot_id) + else: + self.report({'INFO'}, '%i shots have been marked as Unused.' % len(unlinked_ids)) draw.tag_redraw_all_sequencer_editors() return {'FINISHED'}