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",