Exemple #1
0
 def _encode(self, obj, context):
     try:
         return f32_to_u16(obj, 0., context._._.duration)
     except AttributeError as e:
         print "Whoops, this keyframe isn't parented properly!\n"
         raise
         return None
Exemple #2
0
 def _encode(self, obj, context):
     return f32_to_u16(obj, -5., 5.)
Exemple #3
0
 def _encode(self, obj, context):
     return f32_to_u16(obj, -1., 1.)