I am looking for a possibility to reduce the polygon count greatly (decimate modifier) for a large number of objects in a scene via python-script. It is very important for me to keep the individual object information (names, materials, parenting etc.). So far I have tried the following:
- Link modifiers to all objects
Problem: all objects are reduced by the same percentage -value, this destroys all objects with few polygons (reduced to much), and in many case it reduces far to little. This caused by the fact, that every object is reduced by the same value, doesn’t matter how complex or simple they are.
Advantage: extremely fast processing (multi-threading, cpu at 100% utilization)
I’m trying to combine version 1 with something like “polygon density” or “edge-cost” on the basis of common reduce-methods. Unfortunately, the Blender internal “decimate” code is not comprehensible to me, is there possibly a documentation or something similar here?
Does anyone have an idea, how i could solve this in python?
- Join all objects and decimate together
Problems: loss of the absolutely necessary object information, extremely slow (single thread)
Advantage: very good low-poly quality
Is there possibly a possibility to save the required object information by script and separate and restore the original objects after decimating?
Has anyone possibly a completely different idea how I could implement the whole thing?
Thanks in advance!