Open luca-heltai opened 9 years ago
I would like to do this part.
Ok. Start by creating a python class, called CompositeObject
, initialized with m
, n
, ntimeframes
or directly with two filenames.
The class should have the following functions:
read_shapes("filename") read_positions("filename")
which read and store two numpy nd arrays from files (create two fake ones for the moment). Store the variables as object_shape and object_position. The ndarrays should have the following shape:
shape(swimmer_position) = (m, ntimeframes)
shape(swimmer_shape) = (n, ntimeframes)
the base class should have then a function (a virtual one)
pose_object(shape, position)
which, if called from within blender on a concrete class, would generate the object with the given shape and position. Start by considering a nurbs curve, with shape given by the control points.
I have some examples I can give you. More on thursday.
A Blender interface