The resource loading... loading...

Template function reported an error

Author: ooorrrggg, Created: 2021-06-04 15:23:15, Updated:

I tested the template function: def SetParam1 ((p1)): global param1 param1 is equal to p1.

def GetParam1(): Log(“param1:”, param1) return param1

ext.SetParam1 = SetParam1 ext.GetParam1 = GetParam1

The results were wrong:

Traceback (most recent call last): File “<string>”, line 1606, in Run File “<string>”, line 10, in <module> File “<string>”, line 2, in main AttributeError: ‘i1Iii1i1I’ object has no attribute ‘GetParam1’

I asked, why is this?


More

Inventors quantify - small dreamsYou don't have a main function, how can you get an error in the main function?

ooorrrgggThat's good.

Inventors quantify - small dreamsCheck if, referring to the policy for this template, this template option is not selected.

ooorrrgggThat's good.