I am wondering if there is a way to control the timeline via python or tscript?
For example I want to build a 3 dimensional numpy array from a top over say 30 frames, can I just set a particular frame, grab a 2-d slice, add it to a 3-d array, step forward, repeat?
yes you can control the timeline, but I don’t think pausing the master timeline is a good approach for your goal, as this pauses all nodes, and all you want to control is the playbackframe of content in the TOP
My advice is to drive the playback of whatever content is in the TOP , for instance a Movie File In TOP, by a CHOP with an index you control. If you open Help->Operator Snippets->TOP->Movie File In TOP there’s an example called “index” which shows how to drive a movie frame with a slider.
But for reference, here are some example commands in python to control the timeline