Announcement

Collapse
No announcement yet.

All vertices of spline = zero Zed axis?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • All vertices of spline = zero Zed axis?

    I often get contour lines from clients. Often they are good, but sometimes there are some engineer-slop splines that have each vert at a different height.
    (Each vert is at it's own Zed elevation.)
    Here is an image from front/side view...Click image for larger version

Name:	Q_flatten spline.jpg
Views:	1
Size:	305.4 KB
ID:	880428
    Is there a quick way to "flatten" these crap lines?
    I know in AutoCAD there was a command for doing this in about 1 second. Would be surprised if I have to trace over the contour in order
    to get the lines flat (at zero elevation.)
    I've a few scripts that help with the number of vertices, but nothing to deal with vertex heights within a spline.
    TIA

  • #2
    Select all of the vertices and scale in the Z direction to 0, I do it a couple of times as sometimes it looks like the verts are still a bit off even at 0 scale.
    Then all the verts will be at the same level... doesnt help with Beziers though...

    Comment


    • #3
      Actually it does work with beziers

      Comment


      • #4
        @AlexP
        Thank you so much!

        Comment


        • #5
          I'm incredulous there still isn't a native Max function for this...
          James Burrell www.objektiv-j.com
          Visit my Patreon patreon.com/JamesBurrell

          Comment


          • #6
            I'm often surprised when I find a simple command from AutoCAD that is non-existent in Max...AlexP's method is working nicely, though...I'll just have to try to remember this.

            Comment


            • #7
              Originally posted by voltron7 View Post
              I'm often surprised when I find a simple command from AutoCAD that is non-existent in Max...AlexP's method is working nicely, though...I'll just have to try to remember this.
              What's the autocad command??? I'm sure I've been looking for that for the last 15 years!
              Kind Regards,
              Richard Birket
              ----------------------------------->
              http://www.blinkimage.com

              ----------------------------------->

              Comment


              • #8
                it is Flatten
                Originally posted by tricky View Post
                What's the autocad command??? I'm sure I've been looking for that for the last 15 years!
                Bobby Parker
                www.bobby-parker.com
                e-mail: info@bobby-parker.com
                phone: 2188206812

                My current hardware setup:
                • Ryzen 9 5900x CPU
                • 128gb Vengeance RGB Pro RAM
                • NVIDIA GeForce RTX 4090
                • ​Windows 11 Pro

                Comment


                • #9
                  Yes, "flatten" is one way, and there is also a command by typing "elevation" into command line, then enter your value, like 0. This was in Release 2004, but might still work if they haven't gone totally to button control.

                  Comment


                  • #10
                    Originally posted by voltron7 View Post
                    I often get contour lines from clients. Often they are good, but sometimes there are some engineer-slop splines that have each vert at a different height.
                    (Each vert is at it's own Zed elevation.)
                    Here is an image from front/side view...[ATTACH=CONFIG]20093[/ATTACH]
                    Is there a quick way to "flatten" these crap lines?
                    I know in AutoCAD there was a command for doing this in about 1 second. Would be surprised if I have to trace over the contour in order
                    to get the lines flat (at zero elevation.)
                    I've a few scripts that help with the number of vertices, but nothing to deal with vertex heights within a spline.
                    TIA
                    Here you go pal:
                    http://www.scriptspot.com/3ds-max/sc...ten-spline-xyz

                    Comment


                    • #11
                      Originally posted by raymarcher View Post
                      raymarcher, that sure looks like a great solution. Thanks a lot!

                      Comment


                      • #12
                        Hey! I am trying to flatten a spline, but non of this works.
                        Bobby Parker
                        www.bobby-parker.com
                        e-mail: info@bobby-parker.com
                        phone: 2188206812

                        My current hardware setup:
                        • Ryzen 9 5900x CPU
                        • 128gb Vengeance RGB Pro RAM
                        • NVIDIA GeForce RTX 4090
                        • ​Windows 11 Pro

                        Comment


                        • #13
                          The Glue script worked perfectly.
                          Bobby Parker
                          www.bobby-parker.com
                          e-mail: info@bobby-parker.com
                          phone: 2188206812

                          My current hardware setup:
                          • Ryzen 9 5900x CPU
                          • 128gb Vengeance RGB Pro RAM
                          • NVIDIA GeForce RTX 4090
                          • ​Windows 11 Pro

                          Comment


                          • #14
                            its usually the case with alot of files i get, my only and sure solution is to send it to rhino and use project to cplane and it flattens every single thing, its full proof, in max or autocad it usually too much trouble but will look into the glue script
                            Architectural and Product Visualization at MITVIZ
                            http://www.mitviz.com/
                            http://mitviz.blogspot.com/
                            http://www.flickr.com/photos/shawnmitford/

                            i7 5960@4 GHZm, 64 gigs Ram, Geforce gtx 970, Geforce RTX 2080 ti x2

                            Comment


                            • #15
                              select the spline, select all subobjects, open scale floater and right click on the spinner next to z-scale. will scale it to exactly 0. its never failed me..?

                              Comment

                              Working...
                              X