On 28/06/2017 at 12:06, xxxxxxxx wrote:
I am trying to select the outline edges of currently selected Polygons. I tried to go the simple way with modelling command. But I cant get it to work. I have this Code but its not working. Any Ideas?
def main() :
settings = c4d.BaseContainer() # Settings
res = utils.SendModelingCommand(command = c4d.ID_MODELING_OUTLINE_SELECTION_TOOL,
list = [selobj],
mode = c4d.MODELINGCOMMANDMODE_POLYGONSELECTION,
bc = settings,
doc = doc)
if res is False:
print "Something went wrong."
elif res is True:
print "Command successfull."
elif isinstance(res, list) :
print "Here you get the newly created object(s)."
On 29/06/2017 at 09:59, xxxxxxxx wrote:
unfortunately ID_MODELING_OUTLINE_SELECTION_TOOL is marked private for a reason. There are things handled internally in a way, that it currently can not be used with SendModelingCommand(). Sorry!
On 03/07/2017 at 15:52, xxxxxxxx wrote:
Look at the Neighbor class. Go through all edges in the object, if the edge has two neighbor polygons but only one is selected, then it is a border edge.