Reply
Reply
 
Thread Tools Display Modes
polygonfreak's Avatar
Old (#1)

What I am trying to do is make the center vertices all uniform, so that the polygon is straight and is the same width at each vert. I think I saw a method for this a long time ago, but just can't remember. I tried planer and planer view... but that didn't work. Any advice would be such a big help.
Offline , spline, 208 Posts, Join Date Dec 2010, Location Mountain View, Ca Send a message via Yahoo to polygonfreak  
   Reply With Quote

luke's Avatar
Old (#2)
do you mean like, select a row of verticies and align with each other?
select your row of verts and hit which ever X,Y,Z that corisponds to the angle you want in the graphite modeling tools
Offline , polycounter, 769 Posts, Join Date Sep 2009, Location Cambridge, England Send a message via MSN to luke  
   Reply With Quote

polygonfreak's Avatar
Old (#3)
Luke, That is just what I was looking for... I guess the first time I tried that I selected the wrong verts or the wrong axes. Thanks for the help.
Offline , spline, 208 Posts, Join Date Dec 2010, Location Mountain View, Ca Send a message via Yahoo to polygonfreak  
   Reply With Quote

Stradigos's Avatar
Old (#4)
You can also select multiple verts and scale them closer so they line up. It's the dirty approach.
"If I have seen a little further it is by standing on the shoulders of Giants" - Isaac Newton

Portfolio
Offline , polygon, 659 Posts, Join Date Feb 2009, Location Michigan Send a message via Skype™ to Stradigos  
   Reply With Quote

Playdo's Avatar
Old (#5)
Is there a way to select multiple vertices and move them to the same coordinates, without having to align them first? ie like an absolute mode transform type-in for 'Local' coordinates. Hopefully that makes sense
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

perna's Avatar
Old (#6)
Meshtools has Flatten X/Y/Z.
http://www.scriptspot.com/3ds-max/sc...th-cspolytools

Maxscript doesn't support vertex scaling. Yeah, I know.
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,100 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Mark Dygert's Avatar
Old (#7)
The make planar XYZ tools are in edit poly also, no need for graphite modeling tools, there is so much redundancy between the two its retarded.

Remember that you can run that on edges too, which is great for flattening loops. too bad it doesn't work on rings like the flatten UV Tools do, where it operates only on connected edges meaning you can flatten a few rings without them being smashed absolutely to the same spot.
(AKA Vig) Portfolio | Lab | Brawl | Decker |
Offline , Polycount.com Editor, 13,894 Posts, Join Date Oct 2004, Location Seattle, Wa Send a message via MSN to Mark Dygert  
   Reply With Quote

Playdo's Avatar
Old (#8)
I know about make planar. I was hoping I'd missed a way to select a bunch of vert/edges and right click on the transform spinner to 0 them, instead of having to planar them first. I'd have thought it would work when set to local, but it doesn't.

Just looking for those little shortcuts
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

perna's Avatar
Old (#9)
Playdo: I wouldn't call anything involving having to manipulate a spinner a "shortcut".

Here's a one-line barebones script to align all currently selected epoly verts to zero on the x-axis:

for i in (polyop.getvertselection $.baseobject) do(polyop.setvert $.baseobject i [0,(polyop.getvert $.baseobject i).y,(polyop.getvert $.baseobject i).z])
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,100 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Playdo's Avatar
Old (#10)
Thanks for the script Perna. I presume I'm right then that there isn't a Reference Coordinates System or setting that will move them all to the same coordinate
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

perna's Avatar
Old (#11)
Playdo: I can help you if you describe what you want, but what you just said makes no sense to me.
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,100 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Playdo's Avatar
Old (#12)
ok, I'll try again:

Say I select a bunch of verts which all have different coordinates in the z-axis. I want to move these verts so they are in a straight line at 10cm on the z-axis. If I type in 10cm in the Z axis type-in box, it won't move each vert to 10cm on the z-axis, it will take the selection/pivot centre. So they need to be made planar first before typing in 10cm, so that all vertices end up at 10cm.

I would have thought that if the 'Local' Cordinate System was selected that it would move each vert to 10cm without having to make planar first.

Is that any clearer?
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

perna's Avatar
Old (#13)
Playdo:
ok, check your current workflow here:

-click the shortcut for "make planar"
-click the type-in box
-press 1
-press 0
-press enter


.. there are so many operations here, so how is it going to make you any more efficient to have a mode that will set all verts absolutely instead of moving them relatively? You need a key to enable that mode anyay, so you're right back where you started.

You're really barking up the wrong tree as far as improving your efficiency goes.

The most efficient approach here, if working the way you do, is to have two type-in boxes.. one for each mode. I've made a script fox a box like that, but not for this reason.

When inspecting this closer - why would you want to move all verts to 10cm or any other position? The most common answer would be because you want to align them to existing verts at that position. In that case what you need is a copy/paste vertex position script, not some fancy type-in mode. Such a script is a MUST-HAVE no matter what, and I'm sure you can find ready-made solutions on scriptspot, preferably one that lets you paste in both modes.
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,100 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Playdo's Avatar
Old (#14)
Quote:
Originally Posted by perna View Post
The most efficient approach here, if working the way you do, is to have two type-in boxes.. one for each mode.
You made a script for a type in box that move objects to the same coordinate?

You're right, I'd still need to activate an absolute mode if I wasn't already in it.

This is such a minor thing anyway, but I'm curious.
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

perna's Avatar
Old (#15)
Quote:
Originally Posted by Playdo View Post
You made a script for a type in box that move objects to the same coordinate?
Subobjects. It's an advanced dockable version of the standard max type-in that was originally written because the max one doesn't show up unless you simultaneously enable a bunch of other unnecessary ui elements. So the custom type-in can be used in expert mode, and has a lot more options.
It's straightforward to put together if you want to mess around with maxscript. Then again, yeah, it's not something you need for efficiency in the case you've described.
3pointstudios.com - Game Art Outsourcing
Offline , veteran polycounter, 4,100 Posts, Join Date Oct 2004, Location UK Send a message via ICQ to perna Send a message via MSN to perna Send a message via Yahoo to perna  
   Reply With Quote

Playdo's Avatar
Old (#16)
Ok, thanks for the info Perna
Offline , triangle, 362 Posts, Join Date Aug 2009,  
   Reply With Quote

Bigjohn's Avatar
Old (#17)
I must be missing something, cause it sounds like this is being ridiculously over-complicated.

If you have some verts that you want aligned vertically, all you'd do is select them, then hit Make Planar X. That's 1 operation.

If you want them to be vertical, but also have them at X-zero, you'd hit Make Planar X, then right click the X spinner at the bottom of the screen. That's 1 extra operation, 2 total.

I'm not sure what a maxscript could possibly cut out of that workflow. Unless I'm misunderstanding something, which seems likely.
Offline , card carrying polycounter, 1,932 Posts, Join Date May 2010, Location Los Angeles Send a message via AIM to Bigjohn Send a message via MSN to Bigjohn  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch