How to call Filter Transformations through script?

How to call Filter Transformations through script?
Please provide an script example.
Thanks.

What do you want to do? If you want to transform a shape, don’t call the filter, but construct and apply an NSAffineTransform. See the transform method in the Python For Glyphs repository for an example.