5
5
"""
6
6
7
7
import sys
8
- import ast
8
+ import dumb_store
9
9
from lxml import etree
10
10
import settings
11
11
from misc import change_axis , get_frame , Vector , is_animated , radial_to_tangent
@@ -28,7 +28,7 @@ def append_path(element, parent, element_name, typ="real"):
28
28
gen_properties_multi_dimensional_keyframed (element_dict , element , 0 )
29
29
# Store in lxml element
30
30
element_lxml = etree .Element (element_name )
31
- element_lxml .text = str (element_dict )
31
+ element_lxml .text = dumb_store . put (element_dict )
32
32
parent .append (element_lxml )
33
33
34
34
@@ -181,24 +181,24 @@ def get_tangent_at_frame(t1, t2, split_r, split_a, fr):
181
181
# Setting tangent 1
182
182
for chld in t1 :
183
183
if chld .tag == "radius_path" :
184
- dictionary = ast . literal_eval (chld .text )
184
+ dictionary = dumb_store . get (chld .text )
185
185
r1 = get_vector_at_frame (dictionary , fr )
186
186
elif chld .tag == "theta_path" :
187
- dictionary = ast . literal_eval (chld .text )
187
+ dictionary = dumb_store . get (chld .text )
188
188
a1 = get_vector_at_frame (dictionary , fr )
189
189
x , y = radial_to_tangent (r1 , a1 )
190
190
tangent1 = Vector (x , y )
191
191
192
192
# Setting tangent 2
193
193
for chld in t2 :
194
194
if chld .tag == "radius_path" :
195
- dictionary = ast . literal_eval (chld .text )
195
+ dictionary = dumb_store . get (chld .text )
196
196
r2 = get_vector_at_frame (dictionary , fr )
197
197
if not sp_r :
198
198
# Use t1's radius
199
199
r2 = r1
200
200
elif chld .tag == "theta_path" :
201
- dictionary = ast . literal_eval (chld .text )
201
+ dictionary = dumb_store . get (chld .text )
202
202
a2 = get_vector_at_frame (dictionary , fr )
203
203
if not sp_a :
204
204
# Use t1's angle
0 commit comments