Hello, I would like to add the contents of a list filter through a Python script. Is this possible?
There is not a good API for this. The Color Flow plugin has a working but slightly dangerous solution in the method: Generate_Color_Flow_Smart_Filter(). Have a look there. After you changed the file, you call there two lines:
GSGlyphsInfo.sharedManager().reloadCustomFilterGroup()
NSNotificationCenter.defaultCenter().postNotificationName_object_("GSGlyphGroupsHaveChanged", None)
that should trigger a reload in all open documents.