On 08/02/2013 at 08:57, xxxxxxxx wrote:
Hi everyone,
I want to convert an edge to a point selection and then get the corresponding neighboring polys.
If I want to use the neighbor class it doesn't seem to work properly. If I try to initialize it the following way
obj = doc.GetActiveObject()
nb = c4d.utils.Neighbor
nb.Init(obj,None)
poly_a, poly_b = nb.GetEdgePolys(point_a,point_b)
the console says:
TypeError: descriptor 'Init' requires a 'c4d.utils.Neighbor' object but received a 'c4d.PolygonObject'
Though the SDK clearly states that Init requires a PolygonObject and optionally a BaseSelect.
What am I doing wrong here? Might be a stupid question, but I didn't use python for a long time in Cinema and the SDK always gives me headaches...
Kind Regards