I also notice that the transform filter changes the coordinates of the points. How could I rotate the cylinder without losing the initial center coordinates?
I’d recommend getting familiar with using the Python trace. That is the easiest way to see how to do a GUI operation through the Python interface. The Transform filter also has a translate input.