This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "Add Camera to View", | |
"category": "3D View", | |
"description": """Adding camera to view with ctrl+shift+D""", | |
"author": "Dmitry aka Rockbard", | |
"version": (1, 0), | |
"blender": (2, 79, 0), | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ***** 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start Draw Volume Keyframes operator from the Graph Editor using F3 | |
import bpy | |
import bgl | |
import blf | |
import gpu | |
from gpu_extras.batch import batch_for_shader | |
def draw_callback_px(self, context): | |
#print("mouse points", len(self.mouse_path)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##### 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; version 3 | |
# of the License. | |
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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""" |