Forum: Poser Technical


Subject: automated collecting of all files pertaining to cr2 or pz3

bjhaber opened this issue on Jan 27, 2005 ยท 6 posts


underdog posted Fri, 04 February 2005 at 2:29 PM

Attached Link: http://ockhamsbungalow.com/Python/Extractors.zip

There was a discussion on this on the Poser Python forum here. I found a link to a zip file that ockham posted a long time ago. I couldn't find the corresponding thread on the forum, but here is the link to the ZIP file.

http://ockhamsbungalow.com/Python/Extractors.zip

What follows is the contents of the "read-me" file found in that ZIP...

===========================================================

Extractors
Copyright (c) 2003, David G. Drumright (ockham)
Trial version, Aug. 23, 2003


Three little scripts.

ExtractorPP2.py
ExtractorCR2.py
ExtractorPZ3.py

One for each main Poser file type.

The PP2 and CR2 scripts work similarly. The blank for
filename automatically fills in runtime/libraries/character
for the CR2, or runtime/libraries/props for the PP2. You
then need to fill in the subfolder and filename.

Because there's no standard location for PZ3 files,
you have to fill in the complete absolute path,
starting from C: or whatever.

After you fill in a name and hit Go, each script
does the following steps:

Reads the specified file.

Tries to locate all the external textures and objects listed in the file.

Copies those external textures and objects, along with the main file
itself, into a new folder named after the original file with
EXTRACTED prefixed. This folder is placed directly under the
Runtime of the version of Poser where you run the script.

For instance, if you process Casual Woman.cr2, the folder will be:

Runtime/EXTRACTED_Casual Woman

Then the script writes a log file inside the folder, which lists
each of the textures and objects found, along with the folder where
each was discovered. If an object or texture is listed in the main
file but wasn't found, the log file mentions that fact.


===========================================================

Hope that helps. I suggest you go to the Poser Python forum and post your question there if this doesn't get you want you are looking for.

===Underdog===