Making a Tool for Zbrush


I’ve been trying to create a tool that will select all polys in Zbrush over/under a certain size. Does anyone have any idea how I would go around doing this? I’ve written simular tools in python for maya but I don’t even know where I would start for Zbrush and would appreciate any help!