Mon, Jan 20, 3:56 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 20 11:41 am)



Subject: possible to assign python scripts to quick keys?


cortic ( ) posted Tue, 15 May 2012 at 1:38 PM · edited Mon, 20 January 2025 at 9:24 AM

 

As the title says I'm wondering if it is possible to assign a key press to activate a script... would not have thought so (and can't find anything in the manual) but since there are only a set amount of buttons there, thought it was worth asking...

 

thanks.


PhilC ( ) posted Tue, 15 May 2012 at 8:57 PM · edited Tue, 15 May 2012 at 9:02 PM

Yes you can. Name the script myScript###Ctrl+Alt+D.py and save it in your ScriptsMenu folder.

Next with Poser closed open RuntimeuiPoser.xrc in a text editor.
Search for "Ctrl+Alt+D"
If found disable the line using the comment notation.
Save.
Restart Poser.

Use Ctrl + Alt + D to make it run.

This and many other tips are found in this manual.


cortic ( ) posted Wed, 16 May 2012 at 1:56 AM

hmm, thanks PhilC but I can't seem to get this to work, tried commenting out the line, and the object in poser.xrc, renamed the script and even linked it to the menu script..

 

but Ctrl+Alt+D does nothing when the python window is selected and opens different views when the main object window is selected.. any ideas what I'm doing wrong? I'm on pro 2010 if that makes any difference.

 

 

Thanks.


PhilC ( ) posted Wed, 16 May 2012 at 8:10 AM

Other than not following the instructions exactly, no I do not. I double checked it and it is working for me.

What do you mean by "even linked it to the menu script" ?

It should not matter what you have selected at the time.

You should only comment out the "accel" line not the full object.

What happens when you run the script from the Poser Scripts menu?


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.

 


PhilC ( ) posted Wed, 16 May 2012 at 9:20 AM

No mention was made of editing the mainButtons.py file, although that will neither help or hinder the action.

You have put the script in the folder named "poserScripts" whereas my instructions were to place it in the folder named "ScriptsMenu"

Runtime:Python:poserScripts:ScriptsMenu


cortic ( ) posted Wed, 16 May 2012 at 9:40 AM

working, thanks PhilC. never noticed the ScriptsMenu folder, assumed you meant the folder with the menu script lol... thanks again


cortic ( ) posted Mon, 25 June 2012 at 6:15 AM

is there any way to make multiple quick keys? i tried the same process with Ctrl+Alt+S and Ctrl+Alt+F but doesn't seem to work, whats special about Ctrl+Alt+D ? thanks.


MistyLaraCarrara ( ) posted Mon, 25 June 2012 at 7:58 AM

thanks for this tip!



♥ My Gallery Albums    ♥   My YT   ♥   Party in the CarrarArtists Forum  ♪♪ 10 years of Carrara forum ♥ My FreeStuff


cortic ( ) posted Tue, 26 June 2012 at 1:30 AM

solved, apparently one can only reset a current quick key, they must be hard wired into poser. bagginsbill compiled a handy list of the available keys one can reset here; https://market.renderosity.com/mod/forumpro/showthread.php?thread_id=2850802


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.