Obj import/export for morph targets.

Every so often people ask that blenders obj i/o keepo vertex order. mainly for poser morph targets?

For a number of resons this isnt supported- mainly because it would break existing features such as smoothing groups…

Wasnt going to help these people, because coding a simple obj i/o is so embaresingly easy (unlike spelling :slight_smile: )

  • But I just realized that the importers and exporters on a tutorial wiki support this.

if you need to use blender to edit morph targets- use these.
http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Advanced_Tutorials/Python_Scripting/Export_scripts
http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Advanced_Tutorials/Python_Scripting/Import_scripts

Tested both and they work. would be interested weather these work for editing morph targets.

(Just in case this might help someone doing morph targets) For mirroring characters when you can’t change vertex order, like when modeling morph targets, this is a great script. Old, but still works:

https://blenderartists.org/forum/viewtopic.php?t=14212

Why not use mirror modifier?

Sorry, I think I was off topic, anyway…

The mirror modifier will not allow you to create a good UV mapping before applying it, UV maps follow no rules as to how they are aligned regarding symmetry axes, so the modifier can’t really attempt to mirror a UV map.

For creating shape keys (the closest thing to morph targets in Blender) you can’t use it because you are working on a half model. When you hit the “Apply” button, a message appears saying that all keys, among other things, are going to be deleted.

Mirrors not only reflect half things so they look as they were one full thing, they can also reflect full things even if they are asymmetric:
http://img.kokcito.tk/flip.jpg

The modifier also requires that all vertices along the seam are kept aligned. You can’t create an expression where seam vertices actually cross the symmetry plane. A good example is all the movement you can do with your mouth and tongue.
http://img.kokcito.tk/boquitatorcida.jpg

That is why there are some mirror scripts around. They will keep UV, vertex color and weight maps or vertex order.