Im interested in this topic.
Following your example above, what is stored in the $tmp variable, and how can it be read and further utilised?
Can you use it to access data for an object at the frame-number stored in $tmp. Or can you store data from a specific frame int $tmp with the syntax above?
Maybe this was not to eloquent, if it makes no sence, please forgive me.
T.