giordi
07-07-2011, 12:05 PM
hi everyone !
I m working on animation exporter and importer .
Until now i was able to export animation without any problem .
Now i experted the animation creating a root called animation and a child for every object or controll i have exported the animation and for ever y object i made a child for each attribute was keyframed and and added to this attributes with the info i needed . the structure will look like that
animation
------object1
------------translateX
-----------------and here all the attribute needed for recreating the curve .
------object 2
------------visibility
-----------------and here all the attribute needed for recreating the curve .
so now i exported my data as list for example the keyframe position will be like
keyFramePosition = [0,15,26,45 etc ]
now the problem is when i m going to read that value python wont read it as a list but as a string like this
keyFramePosition = "[0,15,26,45 etc ]"
so i cant go through each item of the list and that s bug me a lot . is it there a way to achieve this?
if not i will modify my script in order to print out single values in the XML .
thank you for help
I m working on animation exporter and importer .
Until now i was able to export animation without any problem .
Now i experted the animation creating a root called animation and a child for every object or controll i have exported the animation and for ever y object i made a child for each attribute was keyframed and and added to this attributes with the info i needed . the structure will look like that
animation
------object1
------------translateX
-----------------and here all the attribute needed for recreating the curve .
------object 2
------------visibility
-----------------and here all the attribute needed for recreating the curve .
so now i exported my data as list for example the keyframe position will be like
keyFramePosition = [0,15,26,45 etc ]
now the problem is when i m going to read that value python wont read it as a list but as a string like this
keyFramePosition = "[0,15,26,45 etc ]"
so i cant go through each item of the list and that s bug me a lot . is it there a way to achieve this?
if not i will modify my script in order to print out single values in the XML .
thank you for help
