kyraia opened this issue on Jun 13, 2005 ยท 8 posts
kyraia posted Mon, 13 June 2005 at 7:29 AM
Is there an (easy) way to remove unused morphs (initValue 0) and their belonging data out of a cr2-file?
I tried it myself and wrote a PERL script, but the result isn't a valid Poser-6-file any more. That's at least, what Poser says.
I could continue poking around in these files but maybe a solution already exists.
Message edited on: 06/13/2005 07:31
Ken _Gilliland posted Thu, 16 June 2005 at 12:32 PM
The easiest way I know is to bring the .cr2 into a text editor and hunt down the offending morph such as:
targetGeom OffendingMorph
{
name OffendingMorphk
initValue 0
hidden 0
forceLimits 4
min -1
.....
deltas
{
d 0 0.0033799 0.0003319979 -0.001543805
d 1 0.003927298 0.002131999 -0.001614101
.....
}
and delete that section
Message edited on: 06/16/2005 12:33
kyraia posted Sat, 18 June 2005 at 11:51 PM
Thank you, KenG.
I've tried, but with a cr2-file of 50 MByte this is very tiresome :-(
I also tried Morph Manager, but after removing many morphs the file got even bigger rather than smaller.
Is ist possible to do this with Python? Maybe it would be interesting to learn it.
mateo_sancarlos posted Thu, 23 June 2005 at 4:56 PM
It's also possible to delete them in the Hierarchy Editor. I don't know why MM would make the file size increase, unless it's just hiding the morphs like that free Daz app does.
nruddock posted Thu, 23 June 2005 at 5:52 PM
I think MM causes the file size to increase because it replaces tabs with spaces and / or writes the file with CR/LF at the end of each line where the original may have had only CR or LF.
CR = carriage return (0x0D)
LF = line feed (0x0A)
mateo_sancarlos posted Fri, 24 June 2005 at 1:46 PM
Yeah, that might do it. In OS X we have an app that will delete those things, called BBEdit. It's the "zap gremlins" command, BION.
Smoker1000 posted Fri, 01 July 2005 at 10:46 AM
FYI for Mateo- removing a morph in the hierarchy table is only a quick fix, it doesn't clear the .CR2. :)
davidhp posted Tue, 12 July 2005 at 8:13 PM
Get a tool called MorphManager, load up the character however large the file and delete the morphs you don't want from it then save the result (actually a big text file) as a new character. It's out there someplace! However, I haven't used it in ages but I did once make some morphless figures for pose testing and for de-morphing poses. I don't know if it works with the new texture format in P5/P6 but it could handle mutiple figures in a set in the same file.