okuma10 / importsubtitles Goto Github PK
View Code? Open in Web Editor NEWImports Subtitles for Blender 2.9+ VSE
Imports Subtitles for Blender 2.9+ VSE
Nice to see you working on this.
A few notes:
If you want to add an open-filebrowser button next to the path, there is a template for this in the Template menu: operator_file_import.py
After the import I get this error:
AttributeError: 'Context' object has no attribute 'active_sequence_strip'
- I'm running the add-on in 2.93. But it works in 3.0: https://developer.blender.org/rBSc84d1ad3dbf4551b55f7b2630ef4ba7f6512b775https://developer.blender.org/rBSc84d1ad3dbf4551b55f7b2630ef4ba7f6512b775
For some odd reason can't the font type be batch changed with Copy to Selected, so maybe you can find a way to work around that?
The text strips can actually insert text with forced text breaks, but you just can't insert them manually in the string widget. Adding a string like this "line 1"+chr(13)+"line 2" to the text strip will draw the text in two lines.
If you want to add pip installing of external modules, it can be done like this:
import bpy, sys, subprocess, site
app_path = site.USER_SITE
if app_path not in sys.path:
sys.path.append(app_path)
pybin = sys.executable # bpy.app.binary_path_python # Use for 2.83
try:
subprocess.call([pybin, "-m", "ensurepip"])
except ImportError:
pass
try:
import pysubs2
except ImportError:
subprocess.check_call([pybin, "-m", "pip", "install", "pysubs2"])
import pysubs2```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.