Browse Source

Update __init__.py

Inpaint_experimental
tin2tin 1 year ago committed by GitHub
parent
commit
6106267f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      __init__.py

24
__init__.py

@ -583,6 +583,18 @@ def uninstall_module_with_dependencies(module_name):
subprocess.check_call([pybin, "-m", "pip", "install", "numpy"])
def input_strips_updated(self, context):
preferences = context.preferences
addon_prefs = preferences.addons[__name__].preferences
movie_model_card = addon_prefs.movie_model_card
scene = context.scene
input = scene.input_strips
if movie_model_card == "stabilityai/stable-diffusion-xl-base-1.0":
scene.input_strips = "input_strips"
class GeneratorAddonPreferences(AddonPreferences):
bl_idname = __name__
@ -862,18 +874,6 @@ class GENERATOR_OT_sound_notification(Operator):
return {"FINISHED"}
def input_strips_updated(self, context):
preferences = context.preferences
addon_prefs = preferences.addons[__name__].preferences
movie_model_card = addon_prefs.movie_model_card
scene = context.scene
input = scene.input_strips
if movie_model_card == "stabilityai/stable-diffusion-xl-base-1.0":
scene.input_strips = "input_strips"
class SEQEUNCER_PT_generate_ai(Panel): # UI
"""Generate Media using AI"""

Loading…
Cancel
Save