Skip to main content

Hello,

I have a program to make that require the use of a PythonCaller. But unfortunately, it looks very different to what I am used to, doing Python work.

I have looked up for some tutorials on how the input/output woks, but I have not found anything really useful, or even understandable.

Do you have any link for a tutorial that goes further than just launching a PythonCaller ?

I need to modify a SHP file, deleting some lines/geometry points and adding some, as well as features. All in 3D

Thank you

I think this will help:

https://community.safe.com/s/article/python-and-fme-basics

Especially that part about PythonCaller Transformer:

https://community.safe.com/s/article/pythoncaller-transformer


Hi @theodore​ , every transformer having an input port requires an input feature to run.

If all you need is to just run the script written in the PythonCaller, add a Creator transformer to the workspace and connect its output port to the input port of the PythonCaller.

Just be aware that FME calls "input" method of a class or a function whose name was specified through the Class or Function to Process Features parameter in the PythonCaller, when a feature is arrived.

FYI, the PytonCreator too executes a Python script, but it requires no input features. 

 

 


Reply