I have exactly the same problem. I can control different appearances for 3D views and Section/Elevation windows with GLOB_CONTEXT=3 and GLOB_CONTEXT=4 in the 3D Script but I'm not able to use any other index.
I want opening lines for my own doors in the Schedule, but not on elevations, the workaround for me is:
IF Glob_Context<>3 OR Glob_Context<>4 THEN …
I hope this can help you. Anyone knows a better way to do it?
Miquel
Capella & Garcia Arquitectura
AC18 - AC21, iMac 27" 3.1 Ghz Intel Core i7, 16GB Ram, OSX 10.13.1