This Blender Python script generates a texture map representing the distance from the borders of UV islands for one or more selected mesh objects. The output is a grayscale image where white areas are furthest from a UV edge (typically the center of a UV island) and black areas are at or near the UV island edges or outside them.
Maybe needed install some package at system
sudo pacman -S python-scipy # or your package manager
- donwload and unzip script (or just download this script (or just copy paste))
- open blender
- go to scripting tab (or open text editor window)
- Text -> Open... -> Choise file (or create new and copy paste)
- Select mesh object(s)
- Run script. Should in project appear new image (image datablock) that ends with "_uv_distance" (Circle_and_7_others_combined_uv_distance or Plane.003_uv_distance)
All settings are controlled by modifying the TextureGenConfig
.
config = TextureGenConfig()
config.resolution = 1024*4
config.falloff_rate = 3.0
config.smoothness = 1.2
# etc... check script