Just when I thought I might be getting the hang of python in C4D I ran into a challenge of trying to bevel an edge selection. I've been able to piece together most of what I think I need but I've run into two problems. The first being that I can't set the offset of the tool and second I must be missing some sort of command to have the polygons show up after the resulting bevel takes place. I've been scouring the forums and trying a bunch of things for the last few hours and I've come to the point where I have to throw in the towel and seek professional help.
Any and all help is appreciated.
Here's what I have so far -
tags = op.GetTags()
for tag in tags:
if tag.GetType()==5701: #edge selection
doc.SetMode(c4d.Medges)
selection = tag.GetBaseSelect()
edgeSelected = op.GetEdgeS()
selection.CopyTo(edgeSelected)
c4d.CallCommand(431000015,431000015) # xll bevel tool
tool = plugins.FindPlugin(doc.GetAction(), c4d.PLUGINTYPE_TOOL)
bcBevel = doc.GetActiveToolData()
bcBevel.SetData(c4d.MDATA_BEVEL_OFFSET_MODE, 0)
bcBevel.SetData(c4d.MDATA_BEVEL_RADIUS, 1)
bcBevel.SetData(c4d.MDATA_BEVEL_SUB, 2)
bcBevel.SetData(c4d.MDATA_BEVEL_DEPTH, 1)
bcBevel.SetData(c4d.MDATA_BEVEL_SELECTION_PHONG_BREAK, False)
c4d.CallButton(tool, c4d.MDATA_APPLY)
op.Message(c4d.MSG_UPDATE)
c4d.EventAdd()