VSE python: using sequence_editor.sequences.new_movie() does not set scale_x and scale_y for imported strip #86925

Closed
opened 2021-03-25 08:39:35 +01:00 by hudson barkley · 7 comments

System Information
Operating system: Windows 10

Blender Version
Broken: 2.92

Short description of error
Using sequence_editor.sequences.new_movie() does not set scale_x and scale_y for imported strip (they just default to 1 each), and there is currently no way to even detect what these values should be manually...

Exact steps for others to reproduce the error
Make sure your project is at a higher resolution than the video you intend to load.
Run the following code in the python console:

bpy.context.scene.sequence_editor.sequences.new_movie(name='test', filepath='D://test.mp4', channel=1, frame_start=1)

(of course, change the filepath to an actual location for a file)

**System Information** Operating system: Windows 10 **Blender Version** Broken: 2.92 **Short description of error** Using sequence_editor.sequences.new_movie() does not set scale_x and scale_y for imported strip (they just default to 1 each), and there is currently no way to even detect what these values should be manually... **Exact steps for others to reproduce the error** Make sure your project is at a higher resolution than the video you intend to load. Run the following code in the python console: ``` bpy.context.scene.sequence_editor.sequences.new_movie(name='test', filepath='D://test.mp4', channel=1, frame_start=1) ``` (of course, change the filepath to an actual location for a file)
Author

Added subscriber: @snuq

Added subscriber: @snuq

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This feature wasn't implemented for python API functions. There are more differences between what these functions do and what operators do.
I can add fit method as non mandatory argument as it is reasonable to have it for loading files.

Meanwhile you can use operator (at least in 2.93 image resolution is available after adding new strips):
https://docs.blender.org/api/master/bpy.ops.sequencer.html?highlight=strip_transform_fit#bpy.ops.sequencer.strip_transform_fit

It's not a bug really, but I will confirm it as such, otherwise I would probably forget about this or never get to it.

This feature wasn't implemented for python API functions. There are more differences between what these functions do and what operators do. I can add fit method as non mandatory argument as it is reasonable to have it for loading files. Meanwhile you can use operator (at least in 2.93 image resolution is available after adding new strips): https://docs.blender.org/api/master/bpy.ops.sequencer.html?highlight=strip_transform_fit#bpy.ops.sequencer.strip_transform_fit It's not a bug really, but I will confirm it as such, otherwise I would probably forget about this or never get to it.

This issue was referenced by ffbe803505

This issue was referenced by ffbe8035057f2937e9c4e32201fed5ac7776def6

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Richard Antalik self-assigned this 2021-03-30 03:04:13 +02:00

Closing since this has been implemented

Closing since this has been implemented
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#86925
No description provided.