Forum: Poser Python Scripting


Subject: runPythonScript not working

papillon68 opened this issue on Dec 10, 2010 · 4 posts


papillon68 posted Fri, 10 December 2010 at 4:44 PM

I have a .pz2 file like the following:

{
version
    {
    number 6
    runPythonScript ":Runtime:Python:largevillage.py"
    }
}

The python script is not run, and .py file location is right. I'm using Poser 8/Pro 2010, any idea ?

Thanks

visit my blog:  www.alessandromastronardi.com

My Rendo Store


bagginsbill posted Fri, 10 December 2010 at 4:50 PM

Move the runPythonScript to between the close braces - down one line.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


papillon68 posted Fri, 10 December 2010 at 5:07 PM

Thanks BagginsBill, tried that but I managed to get it to work only if saved and used as a .pp2 prop file.

As a .pz2, it won't trigger the python script ... odd

visit my blog:  www.alessandromastronardi.com

My Rendo Store


papillon68 posted Fri, 10 December 2010 at 5:20 PM

I think I understood why it doesn't work as a .pz2. It needs to have a figure selected on the scene. So, if the scene is empty, or there is only a prop, it won't run.

visit my blog:  www.alessandromastronardi.com

My Rendo Store