Browse Source

fix: temp_image

pull/50/head
tin2tin 1 year ago committed by GitHub
parent
commit
745f4473d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      __init__.py

13
__init__.py

@ -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

Loading…
Cancel
Save