Project Scope for Tag Event Scripts

The Ignition User Manual for Tag Event Scripts says:“The scripts written may use any scripting libraries available in the gateway scope, as tags are always executed in the gateway.”

However, calling a function in a project.* Python module results in a NameError(“global name ‘project’ is not defined”) exception. project.* modules are in the gateway and client scopes.

Calling a function in a shared.* module does work.

I just want to verify that it is the plan that project.* Python modules do not work in Tag Event Scripts. It makes sense to me that they shouldn’t work since tags are not unique to any particular project.

Yeah, I suppose the user manual could be more clear on that. The tags cannot access project scripts, because they are not part of the project.

1 Like

Okay, thanks.