Home Website Youtube GitHub

Post build data collector

What does this option, on the guide root, does exactly or where can i find docs on it?

Thank you

I don’t know, so I just tried it.

  • It outputs a serialized (json) dictionary of all the collected build data named YourName.scd
    • Guide (component) names, positions, name, type, etc.
    • Names of joints, world positions, rotations, “Role” which is what the joint is for, I guess
    • Names of controllers, side, type, position, rotation
    • My guess without digging too deep, is that this is just storing the same data that you otherwise would have found in the stepDict when you’re running post Python scripts. I’m not 100% sure it’s the same dictionary.

You can find the code in ./release/scripts/mgear/shifter/__init__.py
Related methods:
collect_build_data(self)
data_collector_output(self, file_path=None)
add_collected_data_to_root_jnt(self)

With a quick test, I can’t find the “root joint” it stores the collected_data attribute on. Maybe it gets cleaned away at some point.

3 Likes