Hello all,
It would be great to be able to define a python function in a workspace that is then callable from within the Arithmetic Editor of Transformers within that workspace. Similiar to how you can call the the built in functions such as @degToRad(<float>), @min(<float>,<float>,...) etc.
This would be useful in situations where the value you are trying to find requires some temporary state or where the logic is complex. As an example of the former I regularly find I need to calculate the smallest difference between two angles. I then have to write multiple entries in an AttributeCreator to do this. If I could write a Python function in the workspace then call it from the Arithmetic Editor I would only need to define one entry in AttributeCreator.
This also has the advantage that the function can then be used in multiple places in the workspace without having to redefine that logic each time.
Original post about this:
Let me know what you think.
Thanks
Michael

