Files
OpenAssetIO-OpenAssetIO-Com…/__init__.py
T
David Feltell 35639fdffc [Core] Add ResolveImage node
Copy-paste current implementation of core LoadImage, but use a string
input providing an entity reference instead of a file upload, and
retrieve input file path from the OpenAssetIO manager.

Due to the mix-and-match by ComfyUI of class vs. instance methods, plus
no way to inject context, use a singleton class to represent the
OpenAssetIO host application.

Signed-off-by: David Feltell <david.feltell@foundry.com>
2025-09-05 17:46:51 +01:00

30 lines
830 B
Python

# openassetio-comfyui
# Copyright (c) 2025 The Foundry Visionmongers Ltd
# SPDX-License-Identifier: Apache-2.0
"""
Top-level package for openassetio-comfyui.
This __init__.py will not be packaged, but is useful if the repository
is checked out under ComfyUI's custom_nodes directory, as it allows
ComfyUI to discover the nodes contained within.
"""
import sys
import pathlib
__all__ = [
"NODE_CLASS_MAPPINGS",
"NODE_DISPLAY_NAME_MAPPINGS",
]
__author__ = """Contributors to the OpenAssetIO project"""
__email__ = "openassetio-discussion@lists.aswf.io"
__version__ = "1.0.0"
# Ensure src/ is on the path so we can import from there.
sys.path.append(str(pathlib.Path(__file__).parent / "src"))
from openassetio_comfyui.nodes import NODE_CLASS_MAPPINGS
from openassetio_comfyui.nodes import NODE_DISPLAY_NAME_MAPPINGS