Sat, Jun 1, 10:03 AM CDT

Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Apr 26 1:10 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Callling a Python script for a pose file


Allstereo ( ) posted Tue, 03 July 2018 at 7:08 PM · edited Tue, 21 May 2024 at 2:43 PM

Hello all, For those of you that write Python script, I try to call a Python script from a pose file but nothing happen. However, the script is running well with the direct call from both the file menu and script menu.

Allstereo


structure ( ) posted Tue, 03 July 2018 at 10:05 PM
Forum Coordinator

in order to call a script from a pose file, use the following format

{
    version
    {
        number 4
    }
}
{
    version
    {
        number 4
    }
    runPythonScript ":runtime:Python:poserScripts:folder:runthisScript.py"
    runPythonScript ":runtime:Python:poserScripts:folder:runthisScriptalsoifyoulike.py"
}

Locked Out


Allstereo ( ) posted Wed, 04 July 2018 at 5:03 AM

Hello Structure, Thank you for responding. I have tried this format and other variations, but nothing happens. Calling scripts by other artists are working well. I will check again for typographical errors and bad pathways. I you want, I can set the script to you with all related files for testing.

Allstereo


structure ( ) posted Wed, 04 July 2018 at 8:57 AM
Forum Coordinator

sure thing send me a sitemail

Locked Out


Allstereo ( ) posted Wed, 04 July 2018 at 12:25 PM

Hello Structure,

Look at your site mail here at Rendo for info.

Allstereo


Anthony Appleyard ( ) posted Sun, 22 July 2018 at 6:40 AM

But how can the Python script find the values of the angles etc involved in the pose? Is the script called after the pose angles etc are obeyed, or before?


Allstereo ( ) posted Wed, 25 July 2018 at 3:32 PM

Hello Anthony, This type of pose file is not related to the character pose. This is a "hacker" way to call a script from a file located in the libraries. Allstereo


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.