AutoEdge maxscript

AutoEdge maxscript

Anonymous
Not applicable
1,013 Views
4 Replies
Message 1 of 5

AutoEdge maxscript

Anonymous
Not applicable
I'm trying to create a script that does this:

In an object selection check which objects are editable meshes.

For each object select all edges.

'push the Auto Edge button'


I don't know how to do this last step.

The macrorecorder doesn't return anything when i push the Auto Edge button.

Helpfile says to use meshop.autoedge, however i can't get this to work on a selection of edges.


How should i do this?


MLB
0 Likes
1,014 Views
4 Replies
Replies (4)
Message 2 of 5

Steve_Curley
Mentor
Mentor
Seems to work here (in Max 9), but note that there are 2 "autoedge" methods. Which one are you using?


Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 5

Anonymous
Not applicable
hmm, that's confusing...

does this work with you:
- select object
- edge mode
- select all edges
- type in listener: meshops.autoedge

does this autoedge your selection of edges?

MLB
0 Likes
Message 4 of 5

Anonymous
Not applicable
Function expect argument. Following your example ...
meshops.autoedge $ -- this will work
meshops.autoedge -- this of course Not
0 Likes
Message 5 of 5

Steve_Curley
Mentor
Mentor
Yep - does kinda need the object to work on :)

MLB - you need to be more accurate and consistent. In your first post you mentioned "meshop.autoedge" but in your more recent post you state "meshops.autoedge". Ok, could be a typo with the names so similar, but it makes a LOT of difference (as the functions parameters show).
Always read your posts after posting them - amazing how many typos I correct by doing that (I'm a lousy typist ;) ).

Both versions work here, the difference being that the meshOps.autoedge uses the current settings in the UI (I believe) whereas the meshop.autoedge requires you to provide them all as parameters (or it uses default values, but not those in the UI).

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes