Less crufty arguments for adding movie/audio strips to sequence editor from python #18025

Closed
opened 2008-11-23 23:34:14 +01:00 by Christine Lemmer-Webber · 5 comments

Group: Unstable (example)

%%%Previously to add a movie or audio strip to the sequence editor from python, you had to do:

sequence.new((filename, directory, fullpath, type), position, track)
eg:
sequence.new(('video.avi', '/path/to', '/path/to/video.avi', 'movie'), 1, 2)

... which was a bit redundant, since if you had the full path you didn't really need the filename and the directory.

This patch simplifies this to:
sequence.new((fullpath, type), position, track)
eg:
sequence.new(('/path/to/video.avi', 'movie'), 1, 2)%%%

**Group**: Unstable (example) %%%Previously to add a movie or audio strip to the sequence editor from python, you had to do: sequence.new((filename, directory, fullpath, type), position, track) eg: sequence.new(('video.avi', '/path/to', '/path/to/video.avi', 'movie'), 1, 2) ... which was a bit redundant, since if you had the full path you didn't really need the filename and the directory. This patch simplifies this to: sequence.new((fullpath, type), position, track) eg: sequence.new(('/path/to/video.avi', 'movie'), 1, 2)%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Improved code organization, and fixing buttons crash, as per conversations with ideasman%%%

%%%Improved code organization, and fixing buttons crash, as per conversations with ideasman%%%
Member

%%%Hi, trying to update the status of the patch tracker. Please respond if this patch is still viable/useful and needs review or if it can be closed.%%%

%%%Hi, trying to update the status of the patch tracker. Please respond if this patch is still viable/useful and needs review or if it can be closed.%%%

%%%Close it, I think. This was pre-bpy... no longer relevant.%%%

%%%Close it, I think. This was pre-bpy... no longer relevant.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
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-addons#18025
No description provided.