Forum: Poser - OFFICIAL


Subject: possible to assign python scripts to quick keys?

cortic opened this issue on May 15, 2012 · 10 posts


cortic posted Wed, 16 May 2012 at 9:07 AM

ok, I have a folder called 'poserScripts' in python where the 'mainButtons.py' is I put 'myScript###Ctrl+Alt+D.py' in that folder and then add:

poser.DefineScriptButton(9,  ":Runtime:Python:poserScripts:myScript###Ctrl+Alt+D.py", "myScript")

to mainbuttons, I then just delete ''Ctrl+Alt+D" from 'Poser.xrc' in the UI folder.

when I click 'myscript' in the poser menu it runs fine, but Ctrl+Alt+D will cycle through views if the preview window is highlighted, or do nothing if its not.

 

sorry if I'm being stupid here, probably missing something obvious.