Notifications
Clear all

[Closed] polyop.chanferEdges weird behaviour in max8

Hi guys,

I have a script that chamfers the edges of a poly which works perfect in 7 but in 8 I get this error: ” – Argument count error: chamferVerts wanted 4, got 3″

The main issue is that I’m not using chamferVerts in my script but chamferEdges!

So I’ve tryed to simplify and got to this. If you have a poly, with an edge selected and type this in the listener you’ll get the same error:

 
polyOp.chamferedges $ $.selectededges 3
 

Is this something I am doing wrong or is something with Max 8?

5 Replies
1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

By the look of things, I would say it is broken in 8.

As a workaround, you can optionally set the selection using polyOp.setEdgeSelection first, then call $.chamferEdges 3 to operate on the current selection. If the selection is already there, you can just call chamferEdges which is exposed by the EPoly object itself instead of using the PolyOp. version…

So nobody else is getting this error?

Seems to be a problem with the final value. If you remove it, the function runs fine. just… on a scale of 0.

In the MXS Reference is stated:

polyOp.[font=‘Courier New’]chamferEdges <Poly poly> <edgelist> <float amount>[/font]
Chamfers the specified edges by the specified amount.

so you need the last value which would be the chamfer amount.

But my main concern is with the error you get, which relates with chamverVERTS !
This seems like a max 8 bug…

Thanks Bobo! I’ll use the workaround.