Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Really sorry I missed this post (don't know how).
What isn't working?
I haven't done extensive testing, but the only thing we've found so far is that you can't run
other scripts while PRPCd (or any other script for that matter) is running.
Was this the problem?
You can run other scripts using PRPCd's 'Run python script' button.
I posted this in Dizzi's forum as well but figured I might try here in case you've also run across the same problem.
I just downloaded and installed Advanced Library 1.0.0.6 . I tried running just the application like the instructions said but I got nowhere. Next I tried installing and although it shows up in my start menu when I select acb/Advanced Library nothing happens. I even ran the Net Framework installation again to repair any errors. I have a number of software that use the Net Framework and they are all running well so I suppose it might be something else on my system preventing it from running or something very simple I'm overlooking. Any help would be greatly appreciated.
Kalypso. Yes, Dizzi's forum is the best place to debug Advanced Library problems.
The PRPCd problem with running other scripts is not particular to PRPCd.
It seems that if any script is running Poser 7 disables menus for running scripts until the first script exits.
Since PRPCd runs all the time, this is a major issue for prpc. However, you can run other scripts using PRPCd's 'Run python script button'. This button was mainly setup to run client scripts, so it isn't very versatile, but it will run other scripts just fine.
We need to find out why e-frontier decided to disable their script menus (ie. what problems they encountered). Then see if we can solve their problem so that they are willing to leave the script menus enabled.
Until then, use PRPCd's 'Run python script' button. If we can't work out something with e-fronteir, then we'll try and come up another solution or hack.
btw.
I'll be away in the country on vacation until after the new year. So I won't be working on this until then.
Oh yes. I completely forgot about that.
In PRPCd you need to enable 'Remote python script execution'.
Then you can send python scripts to PRPCd and it will execute them.
It will prompt you for confirmation if the 'with confirmation' box is checked.
Thank you Dizzi for adding that to AL.
P3dO also has a 'Run Python Script' option in the 'Tools' menu.
But you need to enable it first.
You need to enable this in Tools->Options->PlugIns->PoserPython
activate the 'Extended' checkbox, click 'Ok' then restart P3dO.
Then P3dO will have the 'Run Python Script' option avaliable in the 'Tools' menu.
You can also use 'Windows Explorer' if you installed 'snd2sock'.exe to create the 'Send To' right-click context menu.
A workaround would be that Prpc should only be run when needed (when "Open with Poser" is called). I'm working on fixing it that way.
The PoserPyhton plugin alone could fix the prob, no need of a P3dO update. I'll post it in Free Stuff when done.
The reason why "'Run Python Script" is an option in P3dO is explained in P3dO's PoserPython plugin help file (security reason).
yarp
www.senosoft.com
Yarp - author of P3DO Organizer for Poser
I agree with Yarp...
Having the PRPC Daemon open only when needed is a good workaround.
PBooost Virtuoso already has an option for the script to be closed after use, or closed after "n" seconds of inactivity. This is a hidden option in the latest version as I wasn't sure if it would be useful:)) Good job I left it in!
It seems a little cloak-and-dagger, but to activate it, open the general preferences, hold down SHIFT+ALT+CTRL and click in the space under the option "Minimize the script after use". The options for auto-close will appear from then on.
In the release version I will make the function activated.
It will be interesting to find out why EF would like only one script running!
Howard:)
www.hogsoft.com
Something that we would need to be careful about with the above proposal is that no other python script using Tk is running when you startup PRPCd in it's ''run as needed' mode.
I think I prefer running PRPCd all the time (like we've been doing).
It provides system crash protection for running multiple Tk python scripts, IF it is started before any other scripts.
But mainly I want to run it all the time because;
I use alot of client modules (posefilter and conformto in particular), so I like having PRPCd running all the time with my client modules configured.
Now in Poser 7, to run python scripts, I'm keeping an 'windows explorer' session on my task bar which points to my pythonscripts folder. This way I can easily launch them remotely whenever I need one. I'm leaving 'with confirmation' enabled so I get a chance to confirm execution of the script.
I'm thinking that I might try and figure out a way to duplicate Pose 7's python script menus in some other alternative system. Maybe some win32ui calls to search the menu handles?
Any return thoughts on this?
Quote - I'm thinking that I might try and figure out a way to duplicate Pose 7's python script menus in some other alternative system. Maybe some win32ui calls to search the menu handles?
Any return thoughts on this?
The Scripts menu is constructed to match the file/directory hierarchy in RuntimePythonposerScriptsScriptsMenu, so no need to do anything more complicated than walk that directory tree (which would also be cross platform).
bummer.
I'll have to start working on saving prpcd's state along with the state of configured client modules.
Then when prpcd starts up, it could;
reload it's state
run the requested operation (file load or save)
save it's state
then exit
but, I don't think I'll get to this very soon.
I want to release a public 1.35.02 version.
Is there anything crucial I should add to the beta (1.35.01i) that I posted at sourceforge?
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.
I am crippled in using my Poser7 without PRPCD. As you know, I use Advance Library and PRPCD extensively to find and load content. Please try to update the PRPCD to a Poser 7 -friendly version. A Big Thank You !
Eternal Hobbyist