Ok well, figured a more elegant way of getting this working would be to just make it look ahead for the next 'master' scene - if it's there and it receives another 'next scene' command, it loops back to the start...
I've got the 'look if next scene=master' bit working, but I'm such a noob at this I have no idea how to set up the loop back to start bit, any advice very welcome!
what peter talks is true, [if] is like a habit from old days. in max you're more with gates/switches/routings (or even splitters) and logic/math-operators. i think they are also processed much quicker internally even though you'd sometimes need three+ objects instead of one [if].
Ok, thanks... if anyone can give me a tip on resetting the above scene 'looper' I'd much appreciate it. It's nearly there now, just need an elegant way of getting it back to the master scene once it 'sees' the next master.
Ok, in the end I went for a system that would just look for 'mstr' in the next scene and then loop on the next 'scene advance' command... it's not quite as dependable if I use my MIDI controller but its seamless for my drummer to loop through scenes, so it'll do for now.
What it could really do with is something that looks ahead x scenes, spots the next master scene, and then sets a loop length based on that. But no way I know how to write that one! This'll do for now - working code! :D
Here's the current version in case it's useful to anyone: