meipe:
Sorry about that, I'm not sure what happened with that code. It looked correct when I typed it in using the
tag.
I've done a fair bit of development on the dsf scripts. I'm gonna hope that Millighost is okay with this, but I'm posting my versions of his dsf tools. I've made a bunch of changes. I didn't really keep track of what I did, but offhand, I can think of the following:
- Added support for either older text-based .dsf files or the newer GZipped versions
- Added ability to load armature from .dsf file, with bone attachments and constraints. I didn't make this part of the dsf-geom script, but instead added a new dsf-armature import that will read the armature out of a dsf file. This does not link the mesh with the armature, however - that has to be done manually.
- I've updated the dsf-geom script to import the correct bone weights from the dsf file. The one in this thread gives every vertex a weight of 1.0 in every group its part of.
- I've started on a pose importer for scene (.duf) files. This is very much a work in progress, but if you select an armature that was created using the new dsf-armature import script, and then select import duf pose and select a DAZ Studio 4.5 scene or pose file, the script will attempt to apply the pose to the armature. This works for simple poses, but does not work correctly with more advanced poses, so you may not want to use this yet. I've got a couple of ideas about what's wrong and hope to have this fixed in a day or two, but if anyone spots what I'm doing wrong on the pose import, I'd love to hear what I'm doing.
- Morph and UVSet import both allow you to select more than one file and will correctly import multiples
- Bug fixes (e.g. UVSet import now works with Blender 2.64)
You can find the scripts here:
http://www.sendspace.com/file/nq1eiaMillghost - if this is not okay with you, say the word, and I'll yank the files down.
I'll gladly take suggestions and bug reports as long as Millighost is okay with it.
FS