First time learning to code in Python. I wanted to try to make a destructive decimator for Sculpt Mode that targets specifically 150k faces or vertices. However, I don’t really understand how to use the webpage explaining the bpy code for Decimate: https://docs.blender.org/api/master/bpy.types.DecimateModifier.html#bpy.types.DecimateModifier.ratio
Another problem I am having is that if I try to code the modifier to apply itself after use, the script completely fails. On the 10th row the script of some reason breaks. Everything else works before adding that line of code using copy paste by hovering the apply button.