Skip to content

Instantly share code, notes, and snippets.

@tin2tin
tin2tin / intellisense.py
Last active September 19, 2019 14:36
Intellisense for Blender Text Editor
# ***** 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
@tin2tin
tin2tin / SortStrips.py
Created October 3, 2019 09:49
Sort Strips by frame number.
import bpy
strips = bpy.context.selected_editable_sequences
strips = sorted(strips, key=lambda strip: strip.frame_final_start)
cleanup = []
for i in range(1, len(strips)):
st0 = strips[i-1]
st1 = strips[i]
cleanup.append( [ st1, st1.channel ])
@tin2tin
tin2tin / Dark_Text_Editor_Consistency_Theme.xml
Created November 6, 2019 10:42
Dark Blender Text Editor UI Consistency Theme
<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"
@tin2tin
tin2tin / Fountain_in_Text_Editor.py
Last active November 9, 2019 01:19
Fountain_in_Text_Editor - work in progress
import bpy
import textwrap
import os
import sys
import fountain
from bpy.props import BoolProperty, PointerProperty, StringProperty
from pathlib import Path
class FOUNTAIN_PT_panel(bpy.types.Panel):
"""Preview fountain script as formatted screenplay"""
@tin2tin
tin2tin / Import_Storyboader_fcpxml.py
Last active December 14, 2020 23:41
Extract images and time codes from Final Cut Pro X's FCPXML 1.3 formatted files exported from Storyboarder
'''
Project Purpose:
Extract images and time codes from
Final Cut Pro X's FCPXML 1.3 formatted files
Exported from Storyboarder
'''
bl_info = {
"name": "Storyboarder fcpxml import",
@tin2tin
tin2tin / ReferenceDesk.py
Created January 15, 2020 21:00
Reference Desk
# ##### 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
# Workflow enhancements for Proxies in Sequencer
# Copyright (C) 2013 Bassam Kurdali
#
# ##### 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 / Desaturated_Text_Editor_Theme.xml
Created January 21, 2020 07:15
Desaturated Theme for the Blender Text Editor
<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"
@tin2tin
tin2tin / VScode_Text_Editor_Theme.xml
Created January 21, 2020 07:17
VScode Theme for the Blender Text Editor
<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"
@tin2tin
tin2tin / Find & Replace Popup
Last active February 3, 2020 15:35
Find & Replace Popup for Blender Text Editor
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