Apologies on being a couple days late on this one.
This months tool is inspired by a workflow laid out by Richard Lico in this video:
Center of mass script from Richard Lico on Vimeo.
His idea is really clever and the workflow is great for hunting down elusive physicality issues that come from having your root not be necessarily where the character’s center of gravity is all the time.
The script is an attempt to automate this set-up in a generic way that should hopefully work with most characters. I’ve tested it on a handful of free rigs, but every rig is different and so it’s very probable that it wont work perfectly for everyone. Ideally the way it works is you select the root control of your puppet, and then run the tool either to create a locator which is constrained to the center of mass, or to transfer animation from the root to a center of mass locator. I wanted it to be as streamlined as possible.
It’s also using a very rough approximation to calculate the relative masses. I think I’ll try some different approaches in the future, but for the time being, it simply looks for visible geometry that is being driven by the root, and then tries to discover a skinCluster in the history of that geometry. It uses the skinCluster weights to get the surface area of the mesh that is being affected by each joint, and then uses those surface area values to weight a point constraint. So for simple characters this seems to work pretty well, but for example if your character has a lot of hair geometry, there will be a lot more relative surface area on the head, and so it will be assumed to be more massive. If you hide geo that you don’t want included in the calculation, that should solve that problem.
It also may have trouble finding the appropriate geometry to use. It will have the best success if your rig scene is referenced, so consider referencing your rig if that is a problem.
Anyway, I consider this to be pretty beta since there’s a lot of different rigs out there, give it a try and let me know if you get any useful sounding errors, or especially if you can share a scene that has issues.
Special thanks to Richard Lico, wherever you are! And to my Patreon supporters!
Create a locator that approximates the Center of Mass for the character. This locator can be live and simply used as reference, or you can transfer the root animation of your character to the center of mass, and then back again after you've adjusted any motion. This workflow is helpful for debugging action animation when a characters body needs to move in a believable way.
|Date:||5 December, 2016|
Also note that this requires the latest ml_utilities script:
ml_utilities isn't a stand alone tool, but rather it's a collection of support functions that are required by several of the tools in this library. The individual tools will tell you if this script is required.
|Date:||23 February, 2014|