From a58b45b41561065f87c8caed024fd029cd1a908a Mon Sep 17 00:00:00 2001 From: David Date: Sun, 10 Dec 2023 23:00:46 -0800 Subject: [PATCH] pgroup debugging --- nodes/debug.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nodes/debug.py b/nodes/debug.py index 8082700..4502bca 100644 --- a/nodes/debug.py +++ b/nodes/debug.py @@ -3,6 +3,8 @@ import torch import numpy as np from PIL.Image import Image +import keyframed as kf + logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) @@ -36,6 +38,10 @@ def _inspect(item, depth=0): if isinstance(item, Image): logger.info(f"{pad}item.mode: {item.mode}") + + if isinstance(item, kf.ParameterGroup): + logger.info(f"{pad}item.parameters: {item.parameters}") + # to do: be fancy and change to a match statement @@ -147,6 +153,13 @@ class KfDebug_Curve(KfDebug_Passthrough): RETURN_TYPES = ("KEYFRAMED_CURVE",) +class KfDebug_PGroup(KfDebug_Passthrough): + RETURN_TYPES = ("PARAMETER_GROUP",) + +class KfDebug_Schedule(KfDebug_Passthrough): + RETURN_TYPES = ("SCHEDULE",) + + # ###########################