- Notifications
You must be signed in to change notification settings - Fork15
ScottishCyclops/tensionmap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
You should use this instead :
https://blenderartists.org/t/revised-mesh-tension-add-on/1239091
Explanation video:
https://www.youtube.com/watch?v=QfbXeP8LgEg
Original README
This is a blender add-on which give you stretch and squeeze information for any mesh object.
This add-on has been created by Jean-Francois Gallant akaPyroevil and his version is available to download atthis link.
It was released under the GPL2 or later licence.
This repository contains my version of the add-on, which has been madePEP8 compliant (mostly), has been optimized and commented. I also fixed the errors and warning I could find.Since then, it has also been updated for Blender 2.8 and has seen a few new features.
I do not know if PyroEvil is planning on continuing development of this add-on, but I am.
Go to thereleases page on github and underDownloads, choose the latesttensionmap-x.x.x.zip for your blender version.
If you want the latest in-developpment version, which is not recommanded, you can go on themaster branch on github, then click the button that saysClone or download, thenDownload ZIP.
Once downloaded, extract the ZIP file to findtensionmap.py
.
Open Blender, go intoEdit,Preferences...,Add-ons, and click onInstall... at the top of the window.
Navigate to the folder wheretensionmap.py
is, then double click on the file, or select it and clickInstall Add-on from File...
You should see the add-on in the list. If not, search fortension in the search box and it should pop up.
Click on the checkbox to enable it.
If you now select any Object of typeMESH and go into theProperties panel, under theData tab, you should see a new section calledTension Map Script.
Enable it.
Tension Map has two modes of operation that can be enabled or disabled separatly to improve playback performance depending on your needs.
If you checkEnable Vertex Groups, two new groups should be added to yourVertex Groups:tm_squeeze
andtm_stretch
.
Once you disable the option, you can safely remove the two groups if not needed anymore.
If you checkEnable Vertex Colors, oneVertex Colors entry will also be added:tm_tension
.
Again, once you disable the option, you can safely remove the color if not needed anymore.
Use the vertex groups to drive things such as modifiers, and vertex colors to drive materials.
You can access the vertex colors though theAttribute node, by simply wittingtm_tension in theName field.
You then want to plug the color output to aSeparate RGB node, to get stretch values from the Red channel and squeeze values from the Green channel. Note that the Blue channel is not used (for now).
Each mode of operation is quite computationaly intensive in realtime. Enabling, one, the other or both modes will make your framerate at least 2.7 times slower.
As such, you should globally disable Tension Map on your objects while you are working on other things.
As of now, you have the following parameters:
- Multiplier: multiplies the output by a certain factor
- Minimum: sets a minimum squeeze and stretch value for every vertex
- Maximum: sets a maximum squeeze and stretch value for every vertex
Note that vertex groups can only contain values between 0 and 1
Also note that theses parameters are linked to the Mesh data, not the Object data. A second object with the same mesh might create unwanted results
Please report any bugs or suggestions in the appropriated tab on theGithub page.
- Support for shape key deformation
- Manually choosing which modifiers affect the computation
- A global "disable" option to work faster
I hope you'll find this add-on useful and I am open to suggestions (regarding this addon, or ideas for addons)!
Scott