* Settings refactor * Previewer improvements * Other cleanups * Fix video frame limiting * Support for YuE2 previews.
36 lines
857 B
Python
36 lines
857 B
Python
import sys
|
|
|
|
import nodes
|
|
|
|
from . import py
|
|
from .py import settings
|
|
from .py.nodes import samplers
|
|
|
|
BLEH_VERSION = 2
|
|
|
|
|
|
settings.load_settings()
|
|
|
|
from .py.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
|
|
def blep_init():
|
|
bi = sys.modules.get("_blepping_integrations", {})
|
|
if "bleh" in bi:
|
|
return
|
|
bi["bleh"] = sys.modules[__name__]
|
|
sys.modules["_blepping_integrations"] = bi
|
|
nodes._blepping_integrations = bi # noqa: SLF001
|
|
samplers.add_sampler_presets()
|
|
if settings.SETTINGS.previews.publish_last_preview:
|
|
from .py.better_previews import last_preview # noqa: PLC0415
|
|
|
|
last_preview.init_routes(
|
|
min_refresh=settings.SETTINGS.previews.publish_last_preview_min_refresh,
|
|
)
|
|
|
|
|
|
blep_init()
|
|
|
|
__all__ = ("BLEH_VERSION", "NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "py")
|