Forum: Poser Python Scripting


Subject: Cloning Objects

adp001 opened this issue on Jun 03, 2023 ยท 21 posts


adp001 posted Sat, 03 June 2023 at 3:52 PM

The more props or polygons there are in total, the slower Poser will be when creating the props. The small computer I'm developing the script on (compared with my graphic workstation) has 16 Gig RAM and creates 1122 props with a total of 5580475 polygons in 125 seconds (so no linear slowdown, but almost exponential :)). The subsequent rendering goes quickly. However, if you move any prop to a different position, e.g. in the Hirarchy editor, Poser takes a seemingly infinitely long time until it reacts again.

I have run the script several times in a row. The result of the time needed is always the same and there were no problems. The number of polygons varied between about 4 and 6 million, depending on which props were randomly selected.

At this point, praise to Poser 12: During hours of testing with a really large amount of props and polygons, there were no crashes. Memory leaks do not seem to exist. The props are deleted and regenerated as expected.

Here is the result: 1122 props generated, 3 props per ground polygon, randomly selected from a set of 4 different props (where 2 props have the same geometry but different textures):