Skyrim
0 of 0

File information

Last updated

Original upload

Created by

Letstryagain

Uploaded by

Letstryagain

Virus scan

Safe to use

About this mod

A Python script for Blender 2.49b, for making the 0-weight mesh for a dress/armor in a fully automatic way. Select: Body_1, Body_0, Dress_1, and obtain Dress_0!

Permissions and credits
Mesh_0Generator Blender script
 
VERSION 1.0 IS BUGGY ! DOWNLOAD THE 1.1!!! (sorry)

What is it?
A Python script for Blender 2.49b, for making the 0-weight mesh for a dress/armor in a
fully automatic way. Select: Body_1, Body_0, Dress_1, and obtain Dress_0!


Other scripts
Mesh X Mirror for Modders Blender script - http://www.nexusmods.com/skyrim/mods/80503/?
Given a "half" Dress/Armor mesh it mirrors: verts positions, bone weights, and UV map of the selected faces.

Mesh_0.5 Blender script - http://www.nexusmods.com/skyrim/mods/79663/?
Given Mesh_1 and Mesh_0 and a scaling factor (say 0.5) it will return the weighed mesh. Negative scaling gives thinner
than Mesh_0, larger than 1 gives a mesh larger than Mesh_1

Mesh_1 to Mesh_0 Blender compatibility script - http://www.nexusmods.com/skyrim/mods/79572/?
This solvs the mesh incompatibility issue (i.e. congruence in the order the vertices are stored in the file).
So you can part and join the meshes and fix the order once you have done.


How can I use it?
It is pretty simple:
  • in "object mode", select IN THIS EXACT ORDER: Body_1, Body_0, Dress_1 (FIG. 2);
  • than goto the tab: "Object > Scripts > Mesh_0 Generator" and click it;
  • in the popup box you can specify if consider only selected verts in Body_1 and/or in Dress_1; 
  • (v1.2) moreover you can ask to adjust the objects order ("Object selection") and change the exponent of the inverse distance weighting algorithm;
  • once done, push OK;
  • if "Object selection" was pushed a menu appears allowing to select Mesh_1 among the list of the names of the 3 selected objects and the same for Mesh_0 (see below);
  • it takes some time to do the work and:
  • DONE

 NOTES:
- In some complex meshes some areas could result distorted. You have to check carefully Mesh_0 and adjust manually the
  distortions (usually quite small). In this case you can select all the mesh but the sensible area in Dress_1 and check the
  "consider only selected verts" in the Dialogue Box.
- Body_1 and Body_0 must be free from incompatibility issue (see other scripts below).
- If you have Dress_0 and need Dress_1 than select in order: Body_0, Body_1, Dress_0 ==> Dress_1
- If you have a body and a modified body (compatible meshes) you can anyway use the script for adapting the dress/armor.
              
Known Issues
If the Blender file is too crowdy some bug inside Blender could bring the script to erroneous results by exchanging the order of the selected objects (usually Dress_0 becomes larger than Dress_1) .
Version 1.2 of the scripts has a button "Object selection" for checking whose objects are mesh_1 and mesh_0 that solves this problem. If you have problems please PM me.

How does it work?
Each vert of Body_1 goes to the corresponding one in Body_0, thus, a 3D shift vector
brings from one to the other. The same kind of vector must bring from Dress_1 to Dress_0.
How to compute a suitable movement vector for a vert in Dress_1:
an "inverse distance (4th power) weighing mean" of the movement vectors of the Body.
DONE. Surprisingly simple!  :D
 
How to install the script
Download the file,unzip, and drop it in the folder:
"C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts",
or wherever you have the Blender script folder.
Then run Blender and it will recognize the script automatically.
 
Documentation and software
Introduction to Python (http://learnpythonthehardway.org/book/ex24.html)
Python 2.7 functions (https://docs.python.org/2/library/functions.html)
Blender functions for Python scripting (https://www.blender.org/api/249PythonDoc)
Notepad++ (https://notepad-plus-plus.org/)
Blender 2.49b
Python 2.7
 
Bugs and requests
Please, if you have suggestions / bugs or requests concerning my scripts PM me (button
just below the figures).
 
Permission
Please, do not upload this script on other sites without permission (other Nexus sites are
not "other sites", but refer to this page).