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:14 PM

Now to take the issues further I have  scripts menu scripts that load all my characters

that contain for example

Load V4.2+++Skin2.cr2

import os
import poser
scene = poser.Scene()

def loadLibraryFile():
   path = "/runtime/Libraries/Character/Characters_Daz/V4.2/V4.2+++Skin2.cr2"
   try:
        scene.LoadLibraryFigure(path)
   except:
      pass

loadLibraryFile()

 

Which as expected only load one figure of V4

So I created a pz2 that contains the following and moved the script that loads V4 from the scripts menu folder to the poserScripts folder

{
    version
    {
        number 4
    }
   
    runPythonScript ":Runtime:Python:poserScripts:V4.py"

}

double click on it and it loads 2 copies of V4

then I copied the pz2 and made it a cr2 and put in the character lib and it only loads one copy. So something is a miss it appears to me if you use runPythonScript from the pose folder.

 

anybody seen this behavior?

 

Gary

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