Creation of Instance Object

Thanks.

Here's another issue:

I get it working if I use a value change in a perspective view to trigger the project script.

But if I link the project script directly to a tag "value changed" script, it will show the following error:
global name 'xxxx' is not defined

It's the same issue as mentioned in the two posts below.
It looks like that I still cannot assign project script to a tag value change event.