Skip to content

Instantly share code, notes, and snippets.

@tin2tin
tin2tin / Add_text_strip_outline.py
Last active Jun 21, 2020
Add_text_strip_outline.py
View Add_text_strip_outline.py
bl_info = {
"name": "Add Outline",
"author": "tintwotin",
"version": (1, 0),
"blender": (2, 83, 0),
"location": "Text Strip > Style > Add Outline",
"description": "Add outline to text strips",
"warning": "",
"doc_url": "",
"category": "Sequencer",
View camera_to_view.py
bl_info = {
"name": "Add Camera to View",
"author": "SayPRODUCTIONS",
"version": (1, 0),
"blender": (2, 80, 0),
"location": "View3D > Add > Camera > Camera to View",
"description": "Add Camera to View",
"warning": "",
"wiki_url": "",
"category": "Camera",
@tin2tin
tin2tin / gist:6a65b4d4529d9de2562a4830f93db5b3
Created May 28, 2020
Youtube Uploader by Shelby Jueden
View gist:6a65b4d4529d9de2562a4830f93db5b3
bl_info = {
"name": "Youtube Uploader",
"author": "Shelby Jueden",
"version": (0,8),
"blender": (2,82,0),
"description": "Uploads a video file to Youtube from the Blender GUI",
"warning": "Requires install of Google APIs for python",
"category": "Render",
}
@tin2tin
tin2tin / transcode_for_avid.sh
Created May 26, 2020 — forked from bradcordeiro/transcode_for_avid.sh
FFmpeg Command to Transcode DNxHR for Avid Media Composer
View transcode_for_avid.sh
# Change number following -profile:v to encode different flavors of DNxHR
# 1: DNxHR 444
# 2: DNxHR HQX
# 3: DNxHR HQ
# 4: DNxHR SQ
# 5: DNxHR LB
ffmpeg -i ${INPUT} -c:v dnxhd -profile:v 3 -c:a pcm_s24le ${OUTPUT}
@tin2tin
tin2tin / TextStripPlus.py
Created May 14, 2020
Multilines, scrolling and fade in and out on a text effect https://developer.blender.org/T50218 (unfinished update)
View TextStripPlus.py
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@tin2tin
tin2tin / slideshow.py
Created Apr 18, 2020
Slideshow for the VSE
View slideshow.py
import bpy
import os
def make_transition(seq, s1, s2):
effect = seq.sequences.new_effect(name="Cross", channel=3, frame_start=s2.frame_final_start, frame_end=s1.frame_final_end, type='GAMMA_CROSS', seq1=s1, seq2=s2)
def create_slide_show(scn, dirname):
if scn.sequence_editor is None:
@tin2tin
tin2tin / VSE_timeline.diff
Created Feb 13, 2020
Experimental patch for a new look for ex. selection in the VSE
View VSE_timeline.diff
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 6ebccf31355..a6979074c1e 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -466,7 +466,7 @@ static void draw_seq_handle(View2D *v2d,
const short direction,
unsigned int pos)
{
- float v1[2], v2[2], v3[2], rx1 = 0, rx2 = 0; // for triangles and rect
+ float rx1 = 0, rx2 = 0; // for rect
@tin2tin
tin2tin / Playback_controls_in_VSE_header.py
Last active Jul 28, 2020
Playback controls in Blender VSE header and Project Dimensions and Output settings in Sidebar Tabs, so you can get rid of the "Timeline" and "Properties" areas.
View Playback_controls_in_VSE_header.py
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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.
#
@tin2tin
tin2tin / Find & Replace Popup
Last active Feb 3, 2020
Find & Replace Popup for Blender Text Editor
View Find & Replace Popup
import bpy
class PopupFindReplace(bpy.types.Operator):
bl_idname = 'text.popup_find_replace'
bl_label = 'Find & Replace'
bl_description = 'Pop-up with Find and Replace'
bl_options = {'REGISTER', 'UNDO'}
@classmethod
@tin2tin
tin2tin / VScode_Text_Editor_Theme.xml
Created Jan 21, 2020
VScode Theme for the Blender Text Editor
View VScode_Text_Editor_Theme.xml
<bpy>
<Theme>
<user_interface>
<ThemeUserInterface
menu_shadow_fac="0.3"
menu_shadow_width="4"
icon_alpha="1"
icon_saturation="0.5"
widget_emboss="#00000005"
editor_outline="#1f1f1f"
You can’t perform that action at this time.