{"id":19483,"date":"2022-07-22T23:03:34","date_gmt":"2022-07-22T23:03:34","guid":{"rendered":"https:\/\/jurn.link\/dazposer\/?p=19483"},"modified":"2022-08-19T16:06:14","modified_gmt":"2022-08-19T16:06:14","slug":"how-to-run-a-python-script-using-a-keyboard-shortcut","status":"publish","type":"post","link":"https:\/\/jurn.link\/dazposer\/index.php\/2022\/07\/22\/how-to-run-a-python-script-using-a-keyboard-shortcut\/","title":{"rendered":"How to run a Python script using a keyboard shortcut"},"content":{"rendered":"<p>If you want to run a Python script in Poser using an assigned keyboard shortcut, you can.<\/p>\n<p><strong>1.<\/strong> The script must be in the software&#8217;s <em>ScriptsMenu<\/em> folder or sub-folders&#8230;<\/p>\n<p><em>C:\\Program Files\\Poser Software\\Poser 12\\Runtime\\Python\\poserScripts\\ScriptsMenu<\/em><\/p>\n<p><strong>2.<\/strong> Rename your target script filename in the following format&#8230;<\/p>\n<p><em>my_fabulous_script###Alt+C.py<\/em><\/p>\n<p>Use of <em>Ctrl<\/em> or <em>Shift<\/em> and <em>Alt<\/em> are permitted, as are capital letters. Capital letters correspond to a lowercase key-press: e.g. C = c.<\/p>\n<p><strong>3.<\/strong> Close and reload Poser. Try your new keyboard command to invoke the script. Tested and working on Poser 12, and once done you see the shortcut on the drop-down if you look there&#8230;<\/p>\n<p><a href=\"https:\/\/jurn.link\/dazposer\/wp-content\/uploads\/2022\/07\/keyscriptpress.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jurn.link\/dazposer\/wp-content\/uploads\/2022\/07\/keyscriptpress.jpg\" alt=\"\" width=\"326\" height=\"42\" class=\"aligncenter size-full wp-image-19484\" srcset=\"https:\/\/jurn.link\/dazposer\/wp-content\/uploads\/2022\/07\/keyscriptpress.jpg 326w, https:\/\/jurn.link\/dazposer\/wp-content\/uploads\/2022\/07\/keyscriptpress-300x39.jpg 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><\/a><\/p>\n<p>With this in place you can now also use mouse-gestures, tied to a keyboard shortcut&#8230; which in turn invokes the script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to run a Python script in Poser using an assigned keyboard shortcut, you can. 1. The script must be in the software&#8217;s ScriptsMenu folder or sub-folders&#8230; C:\\Program Files\\Poser Software\\Poser 12\\Runtime\\Python\\poserScripts\\ScriptsMenu 2. Rename your target script filename in the following format&#8230; my_fabulous_script###Alt+C.py Use of Ctrl or Shift and Alt are permitted, as are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,26,27,12],"tags":[],"class_list":["post-19483","post","type-post","status-publish","format-standard","hentry","category-poser","category-poser-12","category-python-scripts","category-tutorials"],"_links":{"self":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/comments?post=19483"}],"version-history":[{"count":1,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19483\/revisions"}],"predecessor-version":[{"id":19485,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19483\/revisions\/19485"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/media?parent=19483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/categories?post=19483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/tags?post=19483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}