7 """ Contains a class that holds timeline informations
15 """ Stores informations about Timeline in the xar format
19 super(Timeline, self).
__init__(
"Timeline")
22 self.
fps = attrs.getValue(
"fps")
24 self.
size = attrs.getValue(
"size")
25 self.
enable = attrs.getValue(
"enable")
28 self.
scale = attrs.getValue(
"scale")
35 'BehaviorLayer': Timeline.attach_behavior_layer}
40 if not isinstance(other, Timeline):
44 ldict = other.__dict__
45 for key
in rdict.keys():
46 if (key ==
"parent_node" or key ==
"children_node"
47 or key ==
"_function_map" or key ==
"behavior_layers"):
49 if rdict[key] != ldict[key]:
55 lfld = other.behavior_layers[0].behavior_keyframes[0].diagram
63 len(other.behavior_layers[i].behavior_keyframes)):
67 other.behavior_layers[i].behavior_keyframes[j]):
72 return not self.
__eq__(other)