Skip to content

Instantly share code, notes, and snippets.

tin2tin / draw_mc_preview.diff
Last active Nov 19, 2021
Draw MovieClip Previews patch
View draw_mc_preview.diff
diff --git a/source/blender/blenkernel/intern/ b/source/blender/blenkernel/intern/
index ffc39028400..0e1a43bfea2 100644
--- a/source/blender/blenkernel/intern/
+++ b/source/blender/blenkernel/intern/
@@ -41,6 +41,7 @@
#include "DNA_screen_types.h"
#include "DNA_texture_types.h"
#include "DNA_world_types.h"
+#include "DNA_movieclip_types.h"
View dndvse.diff
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 4b6c5e29d77..67c453d391e 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -28,6 +28,7 @@
#include "DNA_gpencil_types.h"
#include "DNA_mask_types.h"
#include "DNA_scene_types.h"
+#include "DNA_sound_types.h"
tin2tin / drag_drop.diff
Created Nov 17, 2021
Drag and drop files from outliner and asset browser into VSE
View drag_drop.diff
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 2a6e49edfb6..dd57b74cd0d 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -364,6 +364,21 @@ static void sequencer_listener(const wmSpaceTypeListenerParams *params)
/* ************* dropboxes ************* */
+static bool movie_id_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
tin2tin /
Created Jul 15, 2021 updated
bl_info = {
"name": "Dial and Scale",
"author": "stacker, sambler",
"version": (1, 2),
"blender": (2, 80, 0),
"location": "3DView > Add > Curve > Dial and Scale",
"description": "Add an array of text number objects or watch dials.",
"warning": "",
"wiki_url": "",
"tracker_url": "",
tin2tin / pan_presets.diff
Created Jul 14, 2021
Diff for Pan Presets for the Blender VSE
View pan_presets.diff
diff --git a/release/scripts/startup/bl_operators/ b/release/scripts/startup/bl_operators/
index 48a02a4c5c6..b94d2f03709 100644
--- a/release/scripts/startup/bl_operators/
+++ b/release/scripts/startup/bl_operators/
@@ -377,10 +377,138 @@ def calculate_duration_frames(context, duration_seconds):
return round(duration_seconds * context.scene.render.fps / context.scene.render.fps_base)
+class SEQUENCER_OT_pan_presets(Operator):
+ """Pan Presets"""
tin2tin /
Last active Nov 18, 2021
Convert selected strips to assets via sound, image or clip IDs.
# Convert selected strips to assets via sound, image or clip IDs.
# By tintwotin & batFINGER
import bpy, os
strips = bpy.context.selected_editable_sequences
strips = sorted(strips, key=lambda strip: strip.frame_final_start)
for sq in strips:
if sq.type == "SOUND":
tin2tin /
Created Mar 11, 2021
Import and select a sound strip in the sequencer
import bpy
# Import and select a sound strip in the sequencer, then run scipt.
# A speaker object and a sound data-block will be created and linked.
active = bpy.context.scene.sequence_editor.active_strip
if active and active.type == "SOUND":
path = bpy.path.abspath(active.sound.filepath)
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
tin2tin / Commit to a branch
Created Feb 2, 2021
How to commit to a branch and build
View Commit to a branch
- commit code to a branch
- go to
- click on a builder with name <platform>_custom_branch
- on the right top corner there will be a Force Build button. Press it
- specify your branch name in the Build: field
After the build is done it is available in the Experimental Branches section of
import bpy
wm = bpy.context.window_manager
CopiedMap ="CopiedMap")
#Get list of default keymap items
keymaps = wm.keyconfigs.default.keymaps.items()
for i in keymaps:
#Put default values in to new keymaps