Announcement

Collapse
No announcement yet.

objects along spline

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

  • objects along spline

    Is there any way to distribute object along spline in 3ds max? Distributed objects should change their position dynamically when I move spline vertices.

    __________
    Sorry for my English

  • #2
    Spline Scatter at ScriptSpot might be what you are looking for

    claude
    Originally posted by 3DMK
    do I want to be a rich business man or a poor artist?

    caddworkx

    Comment


    • #3
      Thanks for the reply.
      But I'm looking for something like Scatter Compound Object in 3ds max.
      Scattered objects should be updated after modification of distrubution spline.
      After execution of this script I get objects separated from distribution spline.

      _____________
      sorry for my English

      Comment


      • #4
        maybe over 10 corners too much. but you can create a spline - dublicate - enable in render - turn to poly - rig with original spline - and attach the objects to faces over attachment controller.
        but veeeeery dumpy, and bet there's a script for what you looking for. but don't know it...
        Jonas

        www.jonas-balzer.de
        www.shack.de

        Comment


        • #5
          You can use a "Path Constrain" as position controller.

          Select the object and choose Animation/Position Controller/Path Constrain and select the spline.
          If you clone it, the new objects will follow the spline, put 10 or so in "Number of Copies" to see clearly how it works.

          If you search for "path constrain" in the Max Help, you'll get a better explanation than mine

          Once you have cloned your objects, you can select them all and run this script to have them equally spaced along the spline:
          Code:
          for i = 1 to (selection.count) do selection[i].pos.controller.path_Constraint.percent = (i - 1) * (100.0 / (selection.count - 1))
          Last edited by Codi; 10-03-2010, 12:27 PM. Reason: typo

          Comment


          • #6
            This would be one of those instances where the spacing tool would work perfectly as a modifier. Why on earth AD made it a one-way tool is beyond me, and then had the nerve to integrate it into the AEC railing object and still negelct a modifier version.
            Ben Steinert
            pb2ae.com

            Comment


            • #7
              you could make a rectangular spline, dump an edit poly / mesh modifier on it and then use the scatter

              you use a spline but Max thinks it's a mesh....
              Two heads are better than one ...
              ....but some head is better than none.....

              Comment


              • #8
                Thanks to everyone for the info.

                Originally posted by Codi View Post
                You can use a "Path Constrain" as position controller. [...]
                Once you have cloned your objects, you can select them all and run this script to have them equally spaced along the spline:
                Code:
                for i = 1 to (selection.count) do selection[i].pos.controller.path_Constraint.percent = (i - 1) * (100.0 / (selection.count - 1))
                This is very clever

                One more question. I want to distribute streetlights along street.
                How to set the orientation of the streetlights in the direction of the center of the road?
                Center of the road is defined by another spline.

                ____________
                sorry for my English

                Comment


                • #9
                  This might be more tricky ... you can try enabling "Follow" in the path constrain parameters. This way the street lights will follow the curvature of the spline they are attached to.

                  Comment


                  • #10
                    maybe you can use itoo forest for that?

                    best regards
                    themaxxer
                    Pixelschmiede GmbH
                    www.pixelschmiede.ch

                    Comment


                    • #11
                      Originally posted by themaxxer View Post
                      maybe you can use itoo forest for that?
                      Unfortunately scattering along a path is disabled in lite version

                      Comment


                      • #12
                        Couldn't you use splineIK and then clone and align the objects to the dummies/vertices then link them them to the dummies/verticies?
                        -----Dwayne D. Ellis-----

                        Comment


                        • #13
                          Originally posted by beestee View Post
                          This would be one of those instances where the spacing tool would work perfectly as a modifier. Why on earth AD made it a one-way tool is beyond me, and then had the nerve to integrate it into the AEC railing object and still negelct a modifier version.
                          I hope the new Max 2011 object paint features have some way of adjusting after creation, some kind of replacement of the old spacing tool, by the demo videos it doesn't seem so ... they forgot again about the modifiers.
                          Last edited by Codi; 12-03-2010, 05:32 AM.

                          Comment


                          • #14
                            they didn't forget, it's just functioinality that is already included. PathConstraint works really well. You can manually move objects along the path to place them where you want or you can set their positions through the motion panel.


                            http://vimeo.com/10131752

                            To take it a step further, you could add a custom attribute to the spline that sets the spacing in world units or percentage or whatever. Then add a script controller to the Percent property of each LampPost.

                            There are worlds unexplored in Max if you just dig a little deeper. Expression controllers, Script controllers, MaxScript, DotNet... and now all the badass UI stuff in 2011. This is a pretty amazing release.

                            Comment


                            • #15
                              2011 looks good indeed, but object paint would be much better if it let you adjust it's parameters whenever you need. It could have replaced/improved the old way of working, but instead we have to use motion controllers, the graph editor and maxscript if we want to dynamically adjust some lampposts.

                              @Mnietek2707:
                              Enabling "Follow" in path constrain has worked for you?

                              Comment

                              Working...
                              X