From 2eced22c36f70f05c71da152edad7d62e85a399a Mon Sep 17 00:00:00 2001 From: Alexey Barabanov Date: Thu, 6 Nov 2025 14:28:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BA=D0=BE=D0=BB?= =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2=D0=BE=20=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=B2=D0=BE=D0=BB=D0=BE=D0=B2=20=D0=B2=20=D1=87=D0=B0?= =?UTF-8?q?=D1=81=D0=B0=D1=85=20=D0=B4=D0=B2=D0=B0=20=D0=B8=20=D0=BE=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=BC=D0=B5=D0=BD=D1=8C=D1=88=D0=B5=2020=20=D1=82?= =?UTF-8?q?=D0=BE=20=D1=81=D0=B2=D0=B8=D0=B3=D0=B0=D0=B5=D0=BC=20=D0=B2?= =?UTF-8?q?=D1=80=D0=B5=D0=BC=D1=8F=20=D0=BD=D0=B0=2030?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AF_script_test_4.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/AF_script_test_4.py b/AF_script_test_4.py index 98030ad..76696f1 100644 --- a/AF_script_test_4.py +++ b/AF_script_test_4.py @@ -422,7 +422,31 @@ def send_job(data,message): }) logger.info(f'Shifting the "{data['time_h']}:{data['time_m']}" by {anchorPoint} pixels') bot.send_message(message.chat.id,f'Сдвигаем "{data['time_h']}:{data['time_m']}" на {anchorPoint} пикседей',parse_mode=['html']) - + + elif len(data['time_h'])==2 and data['time_h'] < 20: + anchorPoint=[30,0] + payload['assets'].append({ + "layerName": "TIME_H", + "property": "transform.anchorPoint", + "type": "data", + "value": anchorPoint + }) + payload['assets'].append({ + "layerName": "TIME_M", + "property": "transform.anchorPoint", + "type": "data", + "value": anchorPoint + }) + payload['assets'].append({ + "layerName": "TIME", + "property": "transform.anchorPoint", + "type": "data", + "value": anchorPoint + }) + logger.info(f'Shifting the "{data['time_h']}:{data['time_m']}" by {anchorPoint} pixels') + bot.send_message(message.chat.id,f'Сдвигаем "{data['time_h']}:{data['time_m']}" на {anchorPoint} пикседей',parse_mode=['html']) + + payload['assets'].append({ "type": "data", "layerName": "TIME_H",