From 13af5f1839606b7265c5766896906661148f72ea Mon Sep 17 00:00:00 2001 From: "Jeison Yehuda Amihud (Blender Dumbass)" Date: Sat, 29 Oct 2022 10:36:25 +0000 Subject: [PATCH] Paste Any text as a checklist --- studio/studio_scriptLayer.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/studio/studio_scriptLayer.py b/studio/studio_scriptLayer.py index 86e81d4..7f37465 100644 --- a/studio/studio_scriptLayer.py +++ b/studio/studio_scriptLayer.py @@ -1943,6 +1943,14 @@ def layer(win): clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD) cliptext = str(clipboard.wait_for_text()) + savetext = "" + for i in cliptext.split("\n"): + if "[ ]" in i or "[V]" in i or "[v]" in i: + savetext = savetext + "\n"+i.replace("[V]", "[ ]").replace("[v]", "[ ]") + else: + savetext = savetext + "\n[ ] #"+i + cliptext = savetext[1:] + filepath = win.project+"/rnd"+win.cur+"/shot.progress" s = open(filepath, 'w') s.write(cliptext)