Forum: Poser Python Scripting


Subject: Bug? PP2010 run script from pz2?

grichter opened this issue on Feb 10, 2011 · 12 posts


grichter posted Thu, 10 February 2011 at 9:06 PM

execute by double clicking on the icon in the PP2010 pose lib or by clicking on the check mark "apply original pose" and the script runs twice.

01-White.py contains

{
    version
    {
        number 4
    }
   
    runPythonScript ":Runtime:Python:poserScripts:MyScripts:V4Pantyhose:AllSheer:Colored-Sheers:01-White.py"

}

Note: Text wrapped above while posting)

Load from the file menu>run python script

and the script runs as it should just once.

01-White.py contains 20 variables that get transfered to the main script

Have 112 files like 01-White.py with different variables to create a second skin on V4 where the panty hose are all sheer, another 112 that add a displacement map and does a color math routine to make the second skin look like pantyhose with seams, darker top, and another 112 files that do the same except the top is all sheer (does the displacement but not the color math)

The imports are as such

import V4PantyhoseAllSheer

V4PantyhoseAllSheer.Doit( and the 20 variables)

where in V4PantyhoseAllSheer have a def Doit( and the 20 variables) that is where the basic script starts and runs and ends from.

See the next post:

 

 

 

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"