|
|
@ -2432,6 +2432,7 @@ class SEQUENCER_OT_strip_to_generatorAI(Operator): |
|
|
|
seed = scene.movie_num_seed |
|
|
|
seed = scene.movie_num_seed |
|
|
|
use_random = scene.movie_use_random |
|
|
|
use_random = scene.movie_use_random |
|
|
|
use_strip_data = addon_prefs.use_strip_data |
|
|
|
use_strip_data = addon_prefs.use_strip_data |
|
|
|
|
|
|
|
temp_strip = None |
|
|
|
|
|
|
|
|
|
|
|
if not strips: |
|
|
|
if not strips: |
|
|
|
self.report({"INFO"}, "Select strip(s) for processing.") |
|
|
|
self.report({"INFO"}, "Select strip(s) for processing.") |
|
|
@ -2474,6 +2475,13 @@ class SEQUENCER_OT_strip_to_generatorAI(Operator): |
|
|
|
context.scene.movie_use_random = use_random |
|
|
|
context.scene.movie_use_random = use_random |
|
|
|
context.scene.movie_num_seed = seed |
|
|
|
context.scene.movie_num_seed = seed |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scene.generate_movie_prompt = prompt |
|
|
|
|
|
|
|
scene.generate_movie_negative_prompt = negative_prompt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if use_strip_data: |
|
|
|
|
|
|
|
scene.movie_use_random = use_random |
|
|
|
|
|
|
|
scene.movie_num_seed = seed |
|
|
|
|
|
|
|
|
|
|
|
if strip.type == "IMAGE": |
|
|
|
if strip.type == "IMAGE": |
|
|
|
strip_dirname = os.path.dirname(strip.directory) |
|
|
|
strip_dirname = os.path.dirname(strip.directory) |
|
|
|
image_path = bpy.path.abspath( |
|
|
|
image_path = bpy.path.abspath( |
|
|
@ -2514,6 +2522,7 @@ class SEQUENCER_OT_strip_to_generatorAI(Operator): |
|
|
|
|
|
|
|
|
|
|
|
scene.generate_movie_prompt = prompt |
|
|
|
scene.generate_movie_prompt = prompt |
|
|
|
scene.generate_movie_negative_prompt = negative_prompt |
|
|
|
scene.generate_movie_negative_prompt = negative_prompt |
|
|
|
|
|
|
|
|
|
|
|
if use_strip_data: |
|
|
|
if use_strip_data: |
|
|
|
scene.movie_use_random = use_random |
|
|
|
scene.movie_use_random = use_random |
|
|
|
scene.movie_num_seed = seed |
|
|
|
scene.movie_num_seed = seed |
|
|
@ -2560,12 +2569,14 @@ class SEQUENCER_OT_strip_to_generatorAI(Operator): |
|
|
|
|
|
|
|
|
|
|
|
scene.generate_movie_prompt = prompt |
|
|
|
scene.generate_movie_prompt = prompt |
|
|
|
scene.generate_movie_negative_prompt = negative_prompt |
|
|
|
scene.generate_movie_negative_prompt = negative_prompt |
|
|
|
|
|
|
|
|
|
|
|
if use_strip_data: |
|
|
|
if use_strip_data: |
|
|
|
scene.movie_use_random = use_random |
|
|
|
scene.movie_use_random = use_random |
|
|
|
scene.movie_num_seed = seed |
|
|
|
scene.movie_num_seed = seed |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if temp_strip is not None: |
|
|
|
delete_strip(temp_strip) |
|
|
|
delete_strip(temp_strip) |
|
|
|
# if temp_strip is not None: |
|
|
|
|
|
|
|
# sel_seq = context.selected_sequences |
|
|
|
# sel_seq = context.selected_sequences |
|
|
|
# for des_strip in sel_seq: |
|
|
|
# for des_strip in sel_seq: |
|
|
|
# des_strip.select = False |
|
|
|
# des_strip.select = False |
|
|
|