Forum: Poser Python Scripting


Subject: Moving morphs between different figures

Cage opened this issue on Dec 20, 2006 · 1232 posts


Cage posted Wed, 02 April 2008 at 7:01 PM

vertneighbors(mesh) #still need to run this manually - pyd isn't returning the same data.  
mesh.vneighbors2 = mesh.mesh.GetVertNeighborsByNgons()
for vi in range(len(mesh.verts)):
    print vi, mesh.vneighbors[vi],mesh.vneighbors2[vi]
return

0 [1 2 3] [0]
1 [0 2 3] [0, 1]
2 [0 1 3] [0, 1, 2]
3 [0 1 2] [0, 1, 2, 3]
4 [7 6 5] [7, 6, 5, 4]
5 [7 6 4] [7, 6, 5]
6 [7 5 4] [7, 6]
7 [6 5 4] [7]

The above code prints the results of a comparison between the "classic" vertneighbors and the .pyd just posted, using the two-sided square primitive....

Am I mis-applying the code for GetVertNeighborsByNgons()?

===========================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.