On a gateway with vision and perspective, I would like to know in a script if it is executing in vision context or perspective context ?
If you just need to distinguish Perspective from Vision, I’d use
from com.inductiveautomation.ignition.common.model import ApplicationScope isVision = ApplicationScope.isClient(ApplicationScope.getGlobalScope())
Thanks a lot
Exactly what I was looking for.