THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/03/2011 at 12:33, xxxxxxxx wrote:
Thanks nux.
That's exactly what I needed. 
This is an example of all I was trying to do with it:
import c4d
from c4d import gui,utils
def main() :
obj = doc.GetActiveObject()
AllPoints = obj.GetPointS() # Gets all the points
PointIndex = AllPoints.Select(1) # Gets point index #1
c4d.EventAdd()
nb = utils.Neighbor() # Assigns neighbor to a variable
nb.Init(obj) # Instantiates the neighbor class
selected = nb.GetPointPolys(PointIndex) # Gets the id's of those neighboring polygons
print selected
c4d.EventAdd()
if __name__=='__main__':
main()
I'm sure the SDK about this makes sense to people with years of coding experience. But I couldn't figure out what it was was trying to tell me on how to use this class.
Thanks a lot for the for the example file.
-ScottA