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.
Start the tool, make a change in Maya, and press Apply. Attribute Batcher records what happened and repeats the same operation across multiple objects.
Borovik tried using Maya's Script Editor, but quickly ran into limitations. Some actions are not displayed at all, while others trigger multiple commands at once.
The solution came from Maya's callback system.
Maya's callback system tracks attribute changes as they happen, and Attribute Batcher uses that data to 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 log can also help artists learn Python for Maya, since users can inspect every operation before it is applied.
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 mostly 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? 📘