Skip to main content
https://ezgif.com/: Resize (640p, ImageMagick + coalesce (undo optimizations)) -> Remove every 2nd frame -> Speed 50% -> Optimize Transparency (7) -> Color Reduction + dither (64) -> Lossy (128)
Source Link
unwave
  • 4.8k
  • 1
  • 6
  • 19
import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

enter image description here

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

enter image description here

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

added 4 characters in body
Source Link
Chris
  • 1
  • 6
  • 35
  • 98
import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

Post Undeleted by Chris
added 1305 characters in body
Source Link
Chris
  • 1
  • 6
  • 35
  • 98
import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

...................................... Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

...............................................

import bpy

# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"

# Get the video sequence editor
vse = bpy.context.scene.sequence_editor

# Find the video strip by name
strip = vse.sequences.get(video_strip_name)


start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)

print("start", start)
print("end", end)
print("duration", duration)

counter = 0

for (cut) in range(start, end):
    
    if cut % 5 == 0:
        
        counter += 1
    
        print('cut', end-cut)
        
        new_strip = strip.split(frame=end-cut, split_method='HARD')
        
        if counter % 2 == 1 and new_strip != None:
            bpy.context.scene.sequence_editor.sequences.remove(new_strip)
            
        if counter % 2 == 1 and new_strip == None:
            bpy.context.scene.sequence_editor.sequences.remove(strip)
        

Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.

result demo:

https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif

Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.

deleted 451 characters in body
Source Link
Chris
  • 1
  • 6
  • 35
  • 98
Loading
Rollback to Revision 1
Source Link
Leander
  • 27.8k
  • 2
  • 46
  • 109
Loading
deleted 360 characters in body
Source Link
Chris
  • 1
  • 6
  • 35
  • 98
Loading
Post Deleted by Chris
Source Link
Chris
  • 1
  • 6
  • 35
  • 98
Loading