Since my last post of the last scripts' version I learned again a lot with coding, debugging, looking up commands' use or script examples. It is a lot of fun for me playing with the parameter sets of each of the four patterns. To achieve a simple thing like the color ramp from the lowest to highest object z-position I had to split the main part, the two loops, into two parts to be able to calculated shading according to z-positions. And because for one pattern stepping with natural numbers was not fine enough I had to replace for-im loops by while loops. Also I replaced if: else: if: by if: elif: because it is shorter and easier to read. I just did not know elif during my the first steps. Meanwhile the script can be installed as add-on from the attached zip folder, enabled, disabled and removed. As long as no object is removed from the script generated object array the script should run reliable.
If some one likes to add its own patterns read and follow the next lines.
There are 4 pattern presets. One can add further patterns with code adjustments.
To add further patterns extend the code close to each of the following FIVE comments.
- Add your own pattern name above between
Add your own pattern parameters above between
Add your own pattern method below
Add your own pattern selection below
Add your own pattern method call below
Search for above comments in the code and extent as descripted.
Do not remove the comment lines for obvious reasons.