- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I'm building a script that requires a step to extrude the frame of an object in mmapi, all my other steps in this script are working but this single function (single line in this function actually) refuses to work. I want to set offset to 3.5mm, however in this example offset will sometimes go to max mm (about 200mm and crash MeshMixer and my script), or it will go to a number around 3.5mm (such as 1.9-2.3mm or so), but I need to it be exactly 3.5mm. Does anyone have ideas on how to do this? I have tried changing the values of offset, tried manually setting units with "offsetDistanceMm", tried finding a scaling factor. Any help is appretiated.
def extrudeFrame(r):
mm.select_all(r)
mm.begin_tool(r, "extrude")
mm.set_toolparam(r, "offset", 3.5)
mm.set_toolparam(r, "harden", 0.3)
mm.set_toolparam(r, "directionType", 0)
mm.set_toolparam(r, "preserveGroups", True)
mm.tool_utility_command(r, "update")
mm.accept_tool(r)
mm.cancel_tool(r)
Thanks,
Solved! Go to Solution.