Cage opened this issue on Dec 20, 2006 · 1232 posts
Cage posted Fri, 28 March 2008 at 4:31 PM
I think I'm crashing Poser 7 by trying to use CorrelateByIndexLists(). Here's what I'm doing.
tripolyindexlist = [i for i in range(len(polyMesh.tpolys))] # Always send all of the polys
vertindexlist = [i for i in range(len(vertMesh.verts))
if vertMesh.particles[i].oneOverM != 0.0] # We'll be locking the mass for some verts
print step,"pyd"
print vertindexlist
hitlist = CorrelateByIndexLists( tripolyindexlist, polyMesh.tpolys, polyMesh.verts,
vertindexlist, vertMesh.verts, vertMesh.vnorms )
So I screen the vertindexlist under certain conditions, and then send an incomplete vert list with a complete poly list.
It handles fine when I send a complete vertex list, but once I screen anything, it crashes during the .pyd step in the code.
Incompletelist doesn't work.
[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31,
32, 33, 36, 37, 38, 39, 40, 41, 44, 45, 46,
47, 48, 49, 52, 53, 54, 55, 56, 57, 60, 61,
62, 63, 64, 65, 68, 69, 70, 71, 72, 73, 76,
77, 78, 79, 80, 81, 84, 85, 86, 87, 88, 89,
92, 93, 94, 95, 96, 97, 100, 101, 102, 103,
104, 105, 108, 109, 110, 111, 112, 113, 116,
117, 118, 119, 120, 121, 124, 125, 126, 127,
128, 129, 132, 133, 134, 135, 136, 137, 140,
141, 142, 143, 144, 145, 148, 149, 150, 151,
152, 153, 156, 157, 158, 159, 160, 161]
Complete list, no problem.
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
98, 99, 100, 101, 102, 103, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113, 114, 115,
116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133,
134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151,
152, 153, 154, 155, 156, 157, 158, 159, 160, 161]
Am I misunderstanding something or doing something wrong, or have I found a bug (and thereby actually done something useful for the first time in a week or more)?
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.