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": "VSE Strip Alignment Addon", | |
"author": "Your Name Here", | |
"version": (1, 0), | |
"blender": (3, 4, 0), | |
"location": "Video Sequence Editor > My Addon", | |
"description": "Aligns selected VSE strips based on user-specified alignment", | |
"warning": "", | |
"doc_url": "", | |
"category": "Video Editing", |
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, subprocess, sys, site | |
def import_module(module, install_module): # name for import, name/url for installation | |
module = str(module) | |
try: | |
exec("import " + module) | |
except ModuleNotFoundError: | |
app_path = site.USER_SITE | |
if app_path not in sys.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
# Before running the script do this to be able to see what is happening in the console while it is running: | |
# Main Menu > Window > Toggle System Console | |
bl_info = { | |
"name": "OpentimelineIO Installer", | |
"author": "tintwotin", | |
"version": (1, 0), | |
"blender": (3, 4, 0), | |
"location": "Check System Console", |
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 | |
from bpy.types import Panel | |
from bpy.utils import register_class | |
import textwrap | |
def _label_multiline(context, text, wrap_width, parent): | |
chars = int(context.region.width / 7) | |
print(chars) | |
chars = int(wrap_width) | |
print(chars) |
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 | |
from bpy.types import Panel | |
from bpy.utils import register_class | |
import textwrap | |
def _label_multiline(context, text, parent): | |
chars = int(context.region.width / 7) | |
wrapper = textwrap.TextWrapper(width=chars) | |
text_lines = [wrapped_line for line in text.splitlines() for wrapped_line in wrapper.wrap(text=line)] | |
[parent.label(text=text_line) for text_line in text_lines] |
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 | |
bl_info = { | |
"name": "Example Addon", | |
"blender": (2, 80, 0), | |
"category": "Sequencer" | |
} | |
class ExampleOperator(bpy.types.Operator): | |
"""Example Operator""" |
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": "My VSE Operator", | |
"description": "An operator for the VSE.", | |
"author": "Your Name", | |
"version": (1, 0), | |
"blender": (3, 0, 0), | |
"location": "Sequencer > Strip > My Operator", | |
"category": "Sequencer" | |
} |
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 | |
# Set up the scene | |
bpy.context.scene.sequence_editor_create() | |
# Add the first text strip | |
txt1 = bpy.context.scene.sequence_editor.sequences.new_effect( | |
name="First", | |
type="TEXT", | |
channel=1, |
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
# by chatGPT | |
import bpy | |
import librosa | |
import numpy as np | |
def find_clap_time(audio_file): | |
# Load the audio file using Librosa | |
y, sr = librosa.load(audio_file) | |