On 12/07/2016 at 14:12, xxxxxxxx wrote:
Oh, damn!!! I can't select all at once.
I will have to select just two vertexes and change them to an edge selection. I already know how to do that.
But them I will have to add that selected edge to an empty list, building it, one by one.
I'm using this code, to build the selection list, but it is not selecting the correct edges
# initialize the neighbor structure
# get the BaseSelect of the point of the object
# get the BaseSelect of the edges of the object
# make a copy of it and empty it
# go through all the list of vertexes
for i in points_list:
# get the two vertexes that define the edge
# clear the point and edge selection of the object
# select the two points
# print them...
# I checked that the vertexes are correct, but the wrong edges
# get selected at the end, not corresponding to the edges that
# are defined by the two points
print "%s - %s" % (a2,b2)
# convert the point selection to an edge selection
settings = c4d.BaseContainer()
res = utils.SendModelingCommand(command = c4d.MCOMMAND_CONVERTSELECTION,
list = [op],
mode = c4d.MODELINGCOMMANDMODE_POINTSELECTION,
bc = settings,
doc = doc)
# mix this with the initially empty edge selection
# this should add the selection to an empty list,
# slowly building a complete list of selected edges.
# finally, select all the edges that should be in the edges_final list
# but the wrong edges get selected.