odf opened this issue on Aug 20, 2009 · 49 posts
odf posted Sun, 06 September 2009 at 9:41 AM
No GUI yet, but I now have a script that changes channel names (targetGeom and valueParm) in a Poser file and updates references to those channels accordingly. Anyone here who's comfortable enough running things from the command line is welcome to give it a try. The script uses regular expressions, so it's possible to rename a whole bunch of channels with a single command.
This will be the middle part of my file rewriting trick to prepare a figure for a specific morph injection pose:
1) Open the input cr2 and collect all channels that currently exist in the figure.
2) Open the input pz2, rename all channels that collide with ones from the cr2 and write the result as the output pz2.
3) For every channel now in the output pz2, add a blank one with the same name to the figure and write the result as the output cr2.
(Obviously referring to just targetGeom and valueParm channels again.)
I have scripts that can do 2) and 3), and 1) is basically a subroutine of 2). That means all I have to do now is decide on a renaming strategy and put the pieces together.
When all this works I'll add another part to prevent injection poses from messing up existing dial groups. But I think the channel surgery is more important, so I'll take care of that first. At some point in the future I might also add an option to merge the complete content of the pz2 into the figure file for people who like all their morphs to be preloaded.
-- I'm not mad at you, just Westphalian.