letterboxing from Video Sequence Editor > Strip menu #41815
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#41815
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have created an addon which makes it easy to letterbox VSE content that does not match the current scene's aspect ratio.
Since I don't have drag&drop I hope I can upload it via a comment.
Changed status to: 'Open'
Added subscriber: @mutantbob
Well, until you fix this tool to support regular file upload:
http://www.pasteall.org/53974/python
Added subscriber: @Genome36
Added subscriber: @BrendonMurphy
hi, Is there a wiki page for this addon with description & more information?
I think it would be good to add to contrib once documented.
work in progress: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Sequencer/Letterbox
I've put my git repo on github.
https://github.com/mutantbob/blender-letterbox/blob/master/letterbox.py
The latest version has updated bl_info according to the guidelines IRC pointed me at.
Added subscriber: @ideasman42
This could go into contrib, but theres still some odd code that would be nice to change beforehand.
False
if the function fails.if hasattr(src_strip, "scene"):
- better check thesrc_strip.type == 'SCENE'
. Same for other uses ofhasattr
to check strip types.# XXX what if the active strip is sound? or something else wrong??
- Just check if its a sound type and report an error in that case.179
, better keep our code G rated :)You're going to have to give me some more specific advice about removing try/except. If I don't catch the exception, then the user won't get any explanation for the failure at all. Also, I don't think the operator expects me to return False on failure. returning {'CANCELLED'} seems to be the preferred return value.
My current instinct is to stick with hasattr. python, being a dynamically typed language, leads me to assume that there might be some other strip (now or in the future) with a scene property, and of all the changes likely to happen, this way seems most future-proof. It is not 100% future proof, but all the scenarios where it isn't will need code changes anyway.
Sound strips: done.
179, fixed. I really should not need that if clause, but something somewhere is insane. Look at that code and tell me why it ever gets called.
@mutantbob.
re: try/except, You don't need this to report issues to the user, you can check scripts that come with Blender, where reporting is managed without exception handling. (You can pass the report method as an argument to the function for eg).
re: "hasattr", This is fine if you inspect data and want to check what it supports. But in this case you should be specific about what strips you operate on.
I stopped throwing exceptions and now return success/fail values.
I removed the "hasattr" futureproofing for most cases, but left it in as guidance for the features currently missing from blender.
Added subscriber: @mont29
Added subscriber: @JohannesThomasMeyer
Changed status from 'Open' to: 'Archived'
over 18 months old.
Archived