Quote:
Originally Posted by IanB
Global variables generally are horrid and if you find yourself using them, then there probably is a better way to express the idea your are implementing.
|
Oh yes, absolutely.
But from the way it is already used by AverageLuma, etc, current_frame is effectively a global state variable of the run-time environment. My idea is (was?) just to extend its visibility to user functions too.
However, I really do like your elegant
Function F(Clip, Current_Frame) alternative, which is an accurate encapsulation of what a run-time script really is (or should be). So I can live with this.
(Even here though, it seems a bit of a hack that AverageLuma and friends will now use the local Current_Frame instead of the 'real' one, but oh well...)