From c9836a87f6823db1d53e56997417f3cbe8cc4727 Mon Sep 17 00:00:00 2001 From: Mel Massadian Date: Tue, 2 Apr 2024 17:18:26 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9A=20missing=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/animation.py | 4 ++-- nodes/graph_utils.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nodes/animation.py b/nodes/animation.py index 194282e..24db501 100644 --- a/nodes/animation.py +++ b/nodes/animation.py @@ -1,7 +1,7 @@ from ..log import log -class AnimationBuilder: +class MTB_AnimationBuilder: """Simple maths for animation.""" @classmethod @@ -41,4 +41,4 @@ class AnimationBuilder: return (frame, scaled, raw_loop, (frame == (total_frames - 1))) -__nodes__ = [AnimationBuilder] +__nodes__ = [MTB_AnimationBuilder] diff --git a/nodes/graph_utils.py b/nodes/graph_utils.py index c6caea8..03f0049 100644 --- a/nodes/graph_utils.py +++ b/nodes/graph_utils.py @@ -76,6 +76,14 @@ class MTB_ToDevice: # class MTB_ApplyTextTemplate: class MTB_ApplyTextTemplate: + """ + Experimental node to interpolate strings from inputs. + + Interpolation just requires {}, for instance: + + Some string {var_1} and {var_2} + """ + @classmethod def INPUT_TYPES(cls): return {