Forum: Poser Python Scripting


Subject: runPythonScript not in docs-question

grichter opened this issue on Aug 31, 2007 · 3 posts


grichter posted Fri, 31 August 2007 at 9:31 AM

The command runPythonScript, which I have seen samples of and people use I can't find any reference to in P7 Python Methods Manual.

My key question actually is must myscript.py be located in the ":runtime:python:"  of the base runtime for the version of poser I am using or can it be elsewhere when called by the runPythonScript command? Like in a poser library folder for example?

Pages 1 and 2 of the manual talk about script locations in the script menu etc. But since I can't find a reference to the runPythonScript command I need a clarification. No where in the docs can I find verbiage that states a script must be in the root python folder to work.

I can run my script directly with it located elsewhere or outside the base runtime and in a library folder. It does work when located inside the python folder. But when I use relative or abosulte paths to a location outside the root python folder...nothing. So either I am missing a peice of code or it can't be done.

thanks

Gary

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