I have a simple FME 2021.2.1.0 workspace which isn't very usable - its just for giving a simple example:
My custom transformer looks like this:
I am trying to create the custom transformer so that it takes one user parameter from the main workspace and use it for the bufferer. I would like the Anchored Snapper to use a fraction (10% as an example) of the my_value user parameter as the Snapping Distance.
The problem is that the Anchored Snapper can only use a hard coded value or a user parameter as input.
In the custom transformer I can create a "Number" user parameter but I cannot assign it the my_value user parameter and multiply it by 0.1.
I can create a scripted python user parameter but when I use FME_MacroValuesa'my_value'] to return a new value FME_MacroValuesa'my_value'] just returns "$(my_value)" (I guess it needs to be dereferenced somehow?).
I can create another user parameter in the main workspace and give it to the custom transformer, but that concept could possible lead to lots of "local" variables needed to be defined "globally".
What could be a better solution?
Regards, Casper