Hey guys, currently working on a simple tool(coded in python) for animators and started wondering what would be the best technique store/access the data.
My first guess was to have a class named CenterOfMass wich has a list of targets that are CenterOfMassTarget.
Then I would have a network node with two attributes. First attribute is metanetwork to link to my rig metanetwork. Second attribute is named data and would store an instance of the class CenterOfMass (serialized in json)
class CenterOfMass(object):
def __init__(self):
self.display_radius = 10.0
self.target_list = []
class CenterOfMassTarget(object):
def __init__(self):
self.object = None
self.weight = None
class CenterOfMassNode(object):
def __init__(self):
self.metanetwork = None
self.data = None
This stuff works but my question is: Is there a better way of doing this?
My second guess would be to have a node in maya for each of my classes and they would all be interconnected.
Any thoughts?