Hi,
I'm programming in Python using FME Desktop, specifically using the Python Caller transformer. I'm trying to use a variable called test
in my script, where test
should have the value assigned to the attribute _creation_instance
. I'm declaring it as follows: test = feature.getAttribute('_creation_instance')
, but I'm getting the following error:
Python Exception <NameError>: name 'feature' is not defined
How can I properly get the value from _creation_instance
?
Thank´s