Forum: Poser - OFFICIAL


Subject: Free morph delete tool

Trollzinho opened this issue on Dec 29, 2009 · 8 posts


Trollzinho posted Tue, 29 December 2009 at 8:07 PM

Hi all,
I'm making a freebie called MorphDel. Its a Python script for Poser that lets you delete morphs from your figures. So far it works. I tried on a few test scenes and in a very large scene, and the morphs are gone and the scene continues to work just fine. But >> its still in beta stage <<.

What it does is: You open a PZ3 file with it and then enter a morph name to search for. "morph_02" for example. It will then search your PZ3 for the blocks targetGeom and valueParm that contains "morph_02" in its name. So if it finds, for example, a block nammed "targetGeom Test_Morph_02" or "valueParm Test_Morph_02", it will tell the user once: "Will remove morph: Test_Morph_02". It will not repeat that name to the user though, even if it find more stuff about it. And finally, it'll also lock on lines "parmNode Test_Morph_02" and mark them to be removed.

Anyways... at the end, it'll present the user a list of what will be done and ask for confirmation. Here's what it presents the user:

--------------------------------------------
[when you run the script]
MorphDel v0.9

HOW TO USE IT: Save your scene and close it before using this program; it modifies on your PZ3 file and not your open scene. Your PZ3 file must've been saved with 'Use file compression' and 'Use external binary morph targets' disabled under Poser's 'General Preferences'. Please verify it.

Please browse for your PZ3 file. [file browsing window presented to the user]

Making a backup copy of your file...
A backup copy of your PZ3 file has been saved as:
E:ScenesS1.pz3OLD

Search for: _ [text input box presented to the user]*

Searching for morph names containing: "morph_02" (case insensitive).
Average wait: 30 seconds on small scenes, 2 minutes on large scenes.
Please wait...*

Will remove morph: Test_Morph_02

*Please review what will be done:

  1. The morphs listed above will be removed.
  2. Those morphs were in 90 body parts. All will be removed.
  3. Global morph dials to be removed: 1
  4. Other group dials to be removed: 2
    Total: 93 entries to be removed.
    Confirm: Execute those changes? YES / NO: _* [YES/NO box presented to the user]

Well, my question is, am I missing something? Is it really all I gotta do to remove custom morphs? (remove the targetGeom and valueParm blocks, and the parmNode lines for that morph). The script seems to work fine, but it might be causing damage to the file and I can't see it.