Forum: Poser Python Scripting


Subject: Is it OK to take code from 2 scrripts and mix for personal use?

grichter opened this issue on Aug 22, 2007 · 7 posts


grichter posted Thu, 23 August 2007 at 9:44 PM

Thanks. I did a search on this forum on books and ordered both Mark Lutz books. On the python main site or what I think is the main site it makes reference to the argv in free standing, yet searching this forum brings up nothing useful relative to poser as you say.

 Regarding sockets I did find a poser example that uses that method.

The concept is do runPythonScript and try to pass a variable that is the filepath+filename of a pz2 file and deal with the passed variable inside the script

If push comes to shove I assume I can use scriptlocation() and I assume I can get the script name and parse it down and remove the .py and add.pz2. Just name the script the same as the target pz2 file name. If that can be done then I have the data I need.

When I knew what I was doing programing wise about 2 decades ago, I used to have a motto, "There is more then one way to skin a cat" . Meaning where there is a will there is a way. Might not be the way the code was intended to be used, but you can always figure someway around to make it work.

Gary

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