gret
A collection of Blender tools I've written for myself over the years. I use these daily so they should be bug-free, mostly. Feel free to take and use any parts of this project. gret
can be typed with one hand in the search bar.
Installation
TODO
Configuration
TODO
Tools
Mesh: Graft
Connects boundaries of selected objects to the active object. I wrote it to deal with stylised fur in a non-destructive way that allows normals to be lifted from the body.
Mesh: Retarget Mesh
Refit clothing meshes to a modified version of the character mesh.
If retargeting to a different mesh, make sure they share topology and vertex order. If the retargeted mesh becomes polygon soup then it's probably the vertex order. Try using an addon like Transfer Vert Order to fix it.
Mesh: Make Collision
Intended for use with UE4, generates collision shapes for selected geometry. For example, to make compound collision for a chair:
- Select a part of the chair in edit mode (can use Select Linked Pick if the pieces are separate).
- Click Make Collision and select an appropriate shape, e.g. capsules for the posts, a box for the backrest and cylinder for the seat.
- Repeat for every piece.
Mesh: Vertex Color Mapping
Procedurally generates vertex colors from various sources. Sources can be vertex groups, object or vertex position, or a random value. Useful for exporting masks to game engines.
Mesh: Apply Modifiers with Shape Keys
The much needed ability to apply modifiers on a mesh with shape keys. Mirrors are specially handled to fix shape keys that move vertices off the center axis. Found in Shape Keys → Specials Menu → Apply Modifiers with Shape Keys.
Mesh: Sync UV Maps
Adds a few buttons that allow reordering UV maps. Sync UV Maps works on all selected objects to ensure UV layer names and order are consistent with the active object. It can also be used to simply switch the active UV layer for multiple objects.
Mesh: Add Strap
Similar in function to an extruded curve. Since it's mesh and not curve based, typical mesh operators can be used to edit it. Use case is adding belts to characters.
Mesh: Add Rope
Generates helicoid meshes, mostly useful as ropes. Can edit the base shape once created.
Animation: Pose Blender
Allows blending poses together, similar to the UE4 AnimGraph node. Works on bones, not shape keys.
Has a performance cost, I'll try to optimize it further at some point.
Animation: Actions Panel
A panel for quick access to actions and working with pose libraries. Pose libraries are simply actions where each frame has a named marker, and normally they're very annoying to work with. A pose library is necessary to use the Pose Blender tool.
Animation: Rig Panel
Add any frequently used rig or bone properties here. To find the data path of a property, right click it then select Copy Data Path.
The addon Bone Selection Sets must be enabled for the second panel to show. I don't find bone pickers to be comfortable to use, and this is a workable alternative. Add and delete buttons make it easy to create temporary sets while animating.
Material: Texture Bake
One-click bake and export. Intended for quickly baking out curvature and AO masks.
Material: Tile Paint
Rudimentary tool to create tile-based UV maps. For anything more complicated use Sprytile instead.
UV: Relax Loops
Relaxes selected UV edge loops to their respective length on the mesh. Can be used to rectify non-grid meshes that TexTools Rectify won't work on. Found in UV Editor → UV → Relax Loops.
Other
Sculpt Selection: Sets the sculpt mask from the current edit-mode vertex selection. Found in the Select menu in edit mode.
Normalize Shape Key: Resets min/max of shape keys while keeping the range of motion. A shape key with range [-1..3] becomes [0..1], neutral at 0.25. Some game engines don't allow extrapolation of shape keys. Found in Shape Keys → Specials Menu → Normalize Shape Key.
Merge Shape Keys to Basis: Mixes active shape keys into the basis shape. It's possible to filter shape keys by name.
Remove Unused Vertex Groups: Originally an addon by CoDEmanX, this operator respects L/R pairs of vertex groups. Found in Vertex Groups → Specials Menu → Remove Unused Vertex Groups.
Deduplicate Materials: Squashes duplicate materials, like "Skin.002", "Skin.003", etc. Found in File → Clean Up.
Replace References: Replaces object references in modifiers. I use it to swap meshes that are shrinkwrap targets and such. Found in File → Clean Up.
Export Jobs
TODO