The following functions can be used to access threads information via MAXScript:
The function outputs the threads information to the Listener or, if the to: option is provided, to the given stream.
If showLocals: is passed as false, local variables will not be shown. Defaults to true.
If firstFrameOnly: is passed as true, only the first frame will be shown. Defaults to false.
Returns the current thread's ID.