Track View > Selected Keys > How to get controller info from keys?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My goal: I'm trying to store the info of selected keys in the track view so I can paste them onto other tracks in the track view.
My question: How do you get the controller information from an array of keys?
For example, I loop though all my selected, keyable tracks and save the keys in an array. How do I access the information regarding the controller the key came from in each key?
When I run this on myKeys array that contains two keys:
for k in myKeys do format "Time = % : Value = %\n" k.time k.value
I get this result:
Time = 156f : Value = -0.194065
Time = 223f : Value = -0.180666
Is there a value stored in the key that references the controller the key belongs to? For example (paraphrased):
for k in myKeys do format "Controller Name = %\n" k.controller
Result: "controller.pos.x" ...etc
Thanks