Timeline for Speed up bpy object creation with "for loop"
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 7, 2019 at 18:07 | history | edited | lemon | CC BY-SA 4.0 |
Typo
|
Sep 7, 2019 at 17:53 | comment | added | lemon | @Lilly2015, have added a duplivert version (faster it seems) | |
Sep 7, 2019 at 17:53 | history | edited | lemon | CC BY-SA 4.0 |
Another method
|
Sep 7, 2019 at 17:08 | comment | added | lemon | @Lilly2015, Python will have some limits here. 100x100x100 will create 8 millions vertices for cubes. But another method could be using dupliverts: make a mesh with only vertices (a big sphere for instance) then use dupliverts on it to fill it with cubes. That what I've used in the script here (second part of the answer): blender.stackexchange.com/questions/143273/… . Anyway, the less is done using Python, the faster it is | |
Sep 7, 2019 at 16:44 | comment | added | Lilly2015 | Jackdaw's proposal with duplicate Linked might work here. I will have a look at both of your solutions. Thanks so much for the input | |
Sep 7, 2019 at 16:43 | comment | added | Lilly2015 | Thanks for the detailed answer. I haven't thought about modifiers, so that solution could actually work quite efficiently. However, how would you proceed if the actual object I want to create in my loops depends on a condition? E.g. I read external data and depending on them i create a sphere instead of a cube with 100x100x100 objects. Is there a way to make such conditional array modifiers? | |
Sep 7, 2019 at 8:26 | history | answered | lemon | CC BY-SA 4.0 |