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.
This commit is contained in:
Sybren A. Stüvel 2016-11-11 09:23:39 +01:00
parent 3364371ac6
commit 98beaf7fb7

View File

@ -514,7 +514,13 @@ class AttractStripUnlink(AttractOperatorMixin, Operator):
node = Node({'_id': oid}) node = Node({'_id': oid})
pillar.sync_call(node.patch, {'op': 'unlink'}) 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() draw.tag_redraw_all_sequencer_editors()
return {'FINISHED'} return {'FINISHED'}