Check out Attribute Batcher, a Maya tool by Slava Borovik that records attribute edits and applies them across multiple objects.
Anyone who spends enough time rigging in Maya eventually runs into the same problem.
Many attribute operations only affect a single object, even when you have multiple selected. Setting values, renaming attributes, or creating connections often means repeating the same action over and over again.
For Senior Asset Pipeline TD
Slava Borovik, the usual answer was scripting.
Simple batch operations only take a few lines of Python, but over time those scripts begin to pile up. Eventually, you end up with a shelf full of custom tools, and it becomes easier to write a new script than find an old one.
Attribute Batcher came out of that problem.
The idea is simple.
Select the objects, start the tool, make a change in Maya, and press Apply. Attribute Batcher records what happened and repeats the same operation across multiple objects.
While building the tool, Borovik ran into limitations with Maya's Script Editor when trying to track attribute changes. Some actions were not displayed at all, while others triggered several commands at once.
To solve this, Borovik used Maya's callback system to detect attribute changes and recreate the same operation across multiple objects.
The tool then converts the result into standard maya.cmds commands and prints them to a Python log.
According to Borovik, the Python log can also help artists learn Python for Maya, since users can inspect the resulting commands and see exactly what the tool executed.
The tool supports operations such as:
- setting attribute values
- creating or removing connections
- editing limits and enum values
- adding, removing, or renaming attributes
- locking or unlocking attributes
- changing keyable states
Borovik notes that the tool can often be useful beyond rigging, since many Maya operations involve attributes.
It also understands the difference between transforms and shapes. Users can select multiple transforms, edit a shape attribute once, and apply the same change to their corresponding shapes.
The Pro version expands the idea further. It can record node creation and recreate connection setups between groups of objects. It also includes additional tools for managing attributes and connections.
According to Borovik, this is especially useful when modifying existing rigs.
If you want to learn more or try the tool, the links will be right below.
Interested in creating your own tools in Maya? 📘