Forum: Poser Python Scripting


Subject: New light script for free..

MungoPark opened this issue on Feb 18, 2003 ยท 6 posts


ockham posted Tue, 18 February 2003 at 3:41 PM

Copying a file: It can be done using "os" commands, like os.rename() and os.dup(). I don't see a simple os.copy() in the help files that I have. Alternately, you can read a file, filter the lines to change certain things, and rewrite it under a different folder. (My latest LightPanel includes an example of this, because it is the only way to modify the P5 attributes which are not available to Python.) There is -no- copyright problem with copying a file. If the user tries to -sell- the result of that copying (which he could have done by ordinary methods as well as by Python) there is a problem at that point. But the violation is not in the copying; if that were the case, every computer would be violating copyrights 100% of the time! Formatting here: The convention is to use the tilde ~ to replace a tab for indentation, because Renderosity removes all leading tabs and spaces.

My python page
My ShareCG freebies