>
>  {
>     "|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"
>         }
>     ]
> }

 
I was actually thinking of using this in the first place. But instead of it 
being in list, I conjure it in terms of dictionary...

{ 
>
    "|locator1": {
>         "1": {
>             "frame": "1", 
>             "rotateX": "1.0", 
>             "rotateY": "1.0", 
>             "rotateZ": "1.0", 
>             "translateX": "1.5", 
>             "translateY": "1.5", 
>             "translateZ": "1.5"
>         },
>         "2": {
>             "frame": "2", 
>             "rotateX": "1.01", 
>             "rotateY": "1.01", 
>             "rotateZ": "1.01", 
>             "translateX": "1.51", 
>             "translateY": "1.51", 
>             "translateZ": "1.51"
>         }
>     }
> }
>
This works for me too.. It is just that it never occurs to me of using '1', 
2' etc as the key for I am thinking it in terms of using the object's name 
to store the data.. 
Need more practice with dictionary  

-- 
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/1cb4c70e-74ab-4af2-a149-129c7f0f77f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to