Forum: Poser Technical


Subject: Antonia Technical

odf opened this issue on Aug 20, 2009 · 49 posts


odf posted Sun, 30 August 2009 at 1:19 AM

So, I've done some more work on my fledgling Poser file manipulation library and wrote a script that would read a cr2 and write a new one with a list of empty targetGeom channels added to every actor. Since it uses my library, the script itself is very short. About half of it is the template text for the new channels. It is also reasonably fast. For Antonia, it takes two or three seconds on my one-year-old Toshiba laptop.

I know I had a wish list for Poser file surgery scripts in the main Antonia thread, but I forgot to copy it out, and it's impossible to find things in that monster of a thread. So let's just start a new one.

What I've already done:
1) Shift an actor and all its descendants by a given vector.
2) Add a channel with given content to every actor or every actor except BODY.

Things I think would be useful:
1) Extract the scaling from each actor and write it into a pose file.
2) Generate a pose file from a template and a list of actors.
3) Compare two files and generate a list of their differences, disregarding changes in white space, number formatting or the ordering of statements in cases where it is not relevant (this one might take a while).

More ideas are very welcome, no matter how crazy. I'm hoping to eventually build an API that will make it dead easy for people with a little bit of Python knowledge to mess with Poser files programmatically to their hearts contents. The irregular structure of Poser files will make this quite tricky in parts, so I'm not making any promises. But I'll see how far I can get.

-- I'm not mad at you, just Westphalian.