select and detach vertices using maxscript
Hello, is there a way to select certain vertices and detach them to new object using maxscript?
I have following geometry merged together (called boxes) and I would like to detach one of them to new object.
I would like to select all vertices of this geometry, where X-axis is possitive (right box) or negative (left box) and detach them to new object.
How can I do that?
Thanks!
Comments
.
Tools and Scripts for Autodesk 3dsMax
Thank you
Working like a charm exactly like I except.
But any chance to make it work on plane for example? Like it cuts plane in half which has edge in the middle (pos 0)
Figure:
https://i.imgur.com/9QKVTXl.png
Thank you so much!
.
Try this using Detach by Face:
or if it not works as expected:
Tools and Scripts for Autodesk 3dsMax
Unfortunately, both don't. :(
Unfortunately, both don't. :(
.
Tools and Scripts for Autodesk 3dsMax
@miauu - Thank you very much,
@miauu - Thank you very much, exactly what I've been looking for.
.
you can simply create a copy of your object and apply slice modifier with remove bottom to original and remove top to copy
GIF click if it refuses to play
@jahman - Thank for
@jahman - Thank for contribution, that's the way I've been doing it manually until now.
However, do you think that this approach is more effective than @miauu script? Because using slice works on both editable geometry and primitives where the script only on editable poly.
.
I personally like slice approach since it isn't destructive.
The only problem to solve here is to align slice plane to world axis properly.
I'll use this method seems to
I'll use this method seems to work on all examples I've tried.
Thank you very much.