Mustard2 / RandomScripts

Collection of random scripts for Blender

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RandomScripts

Collection of random scripts for Blender. These scripts are for personal use, so it might not work for all applications.

Instructions

Add the script in the Blender Text editor, and run them following the instructions in the comments in the first lines of the script.

Scripts

add_drivers

The script creates drivers on shape keys of the selected objects, using the target (the source value of he drivers) as the last selected item. The script will automatically search the shape keys of both selected objects and target object, and add drivers only when the target shape keys match the name of the shape keys in the selected objects.

Example of application: You have Outfits with the same shape keys of the Body, and you want to create drivers so that if I change the value of the shape key in the Body, also the shape keys in the Outifits are changed automatically. The naive way is to do that manually, but if the shape keys are a lot, it might become a very long and tedious process. With this addon you can do this in a few clicks. Select the Outfits first, then the Body and then run the script. The Outfits shape key will be linked to the Body ones via drivers.

Note: The script will automatically overwrite existing drivers on shape keys, so use it only if you want to overwrite shape keys. If not, please rename the shape keys you don't want to be linked with the driver in such a way the selected and target object shape keys are not named the same.

Note: This addon is only intended for creating drivers, it will not create new shape keys nor transfer shapes from one key to another: it simply use existing shape key and create drivers if the names are matching.

About

Collection of random scripts for Blender

License:MIT License


Languages

Language:Python 100.0%