scourge opened this issue on Nov 25, 2005 ยท 34 posts
scourge posted Mon, 23 January 2006 at 7:50 AM
Kamilche, Okay, haven't been able to test your modification in Poser yet, but here are a couple of things I noticed by reading the code: - Line #467: convert_obj(node, 5) I don't think you need this line at all, pyMPE should be able to convert directly into P4 format without converting into P5 first. Actually the conversion into P5 format will probably do nothing at all because currently pyMPE thinks P5 and P6 have the same file format. But I may be wrong, let me do some tests to be sure. - You should add the line "make_mat(node)" somewhere in the MakeMat function, perhaps right after line #465: node = read_file(tempfile). That will make sure that only the material part is saved (as MarianneR noticed, the script currently saves the whole figure). Of course a script for converting complete cr2 files would be useful too so it may be best to have that option in the pyMPE menu as well. - The script apparently cannot save in compressed gzip format. This is pretty easy to do in a quick & dirty way: if the last (3rd) character of the filename extenstion is "z" the file should be compressed (f = gzip.open(self.full_path, 'wb'). That's at least how I did it (line #195).