Hi Justin, thanks for getting back..
I tried your method, and I am still getting the same issue. The keyframes
are still only being written once, same as the output that I have pasted in
my first post.
Actually, now I am doubting if using dictionaries are the right way to do
so?
Cause supposedly if my code does works, I assume the following is the
output I will be seeing, though I am unsure if the recurring key names -
'frame', 'rotateX' etc will pose an issue later on or during the phase when
such data are being inserted into the dictionary
{
"|locator1": {
{
"frame": "1",
"rotateX": "1.0",
"rotateY": "1.0",
"rotateZ": "1.0",
"translateX": "1.5",
"translateY": "1.5",
"translateZ": "1.5"
},
{
"frame": "2",
"rotateX": "1.01",
"rotateY": "1.01",
"rotateZ": "1.01",
"translateX": "1.51",
"translateY": "1.51",
"translateZ": "1.51"
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/3b06a3cb-7fc2-4cf8-8d32-ee6e5e940a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.