Forum: Poser Technical


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

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


bjhaber posted Thu, 27 January 2005 at 5:47 PM

Hi folks. I'm looking for an automated way of collecting all the geometries and texture files for characters I have so I can render on several machines without copying huge runtimes. Any suggestions? Thanks!


markschum posted Fri, 28 January 2005 at 11:48 AM

There may well by a python script for this already. It is an issue in importing Poser figures into Bryce. All the textures need to be in the same folder as the obj and mtl files. Do a search for import poser to bryce either here or on DAZ. If you can't find anything message me with an email, I have a visual basic program that does what you want.


layingback posted Fri, 28 January 2005 at 11:28 PM

Attached Link: http://www.hogsoft.com

Hogsoft's CRPro (the full version) offers a facility to "Copy content to a zip file with all dependent texture and geometry files" which I think is what you are after. More info on Hogsoft's site.

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===


bjhaber posted Fri, 04 February 2005 at 2:38 PM

Thanks much for everybodies help. Very much appreciated.


markschum posted Fri, 04 February 2005 at 3:06 PM

I have posted a freebie program here in the Poser freestuff utilities category. The utility reads the mtl file created with an exported object and copies the texture files into the same folder. regards