From 0d658ee825a9d6bff3951f026741410090b1a8ae Mon Sep 17 00:00:00 2001 From: p2or <512368+p2or@users.noreply.github.com> Date: Sun, 26 Nov 2023 16:37:05 +0100 Subject: [PATCH] Globals - added $DAY and $TIME to the defaults --- loom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loom.py b/loom.py index 04f725a..80658a8 100644 --- a/loom.py +++ b/loom.py @@ -5418,6 +5418,8 @@ def draw_loom_render_presets(self, context): "$MARKER": 'next((i.name for i in bpy.context.scene.timeline_markers if i.frame == bpy.context.scene.frame_current), "NO_NAME")', "$COLL": 'bpy.context.collection.name', "$OB": 'bpy.context.active_object.name', + "$DAY": 'exec("import time") or time.strftime("%Y-%m-%d")', + "$TIME": 'exec("import time") or time.strftime("%H-%M-%S")', "$SUM": 'str(sum([8, 16, 32]))' }