<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple objects using a line as animation guide in 3ds Max Animation and Rigging Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10637159#M1803</link>
    <description>Hey my friend. You are my hero! A tried the path deform but it didnt worked as I expected. Than I used your script and the jobe is done! I just had to change some values to suit my needs. This could be improved if you want as I had to trie lots of numbers in the sciprt parts that I figured out. Those numbers could be part of variables and funtions to be automated. The script with the changes are bellow. Thanks a billion!&lt;BR /&gt;r = 1 -- radius of geosphere&lt;BR /&gt;n = 200 -- total numbers of spheres&lt;BR /&gt;nsegs = 2 -- number of segments per geosphere&lt;BR /&gt;--&lt;BR /&gt;ThePath = selection[1]&lt;BR /&gt;clearSelection()&lt;BR /&gt;GeoSphere pos:[-47.7738,35.8673,0] isSelected:on radius:r segments:nsegs&lt;BR /&gt;s01 = selection[1]&lt;BR /&gt;s01.pos.controller = Path_Constraint ()&lt;BR /&gt;s01.pos.controller.path = ThePath&lt;BR /&gt;clearSelection()&lt;BR /&gt;&lt;BR /&gt;for k = 1 to (n - 1) do&lt;BR /&gt;(&lt;BR /&gt;GeoSphere pos:[-40.0,35.8673,0] isSelected:on radius:r segments:nsegs&lt;BR /&gt;s02 = selection[1]&lt;BR /&gt;s02.pos.controller = Path_Constraint ()&lt;BR /&gt;s02.pos.controller.path = ThePath&lt;BR /&gt;delta = "Percent + " + (k * n / 40000.) as string&lt;BR /&gt;select $GeoSphere001&lt;BR /&gt;macros.run "Parameter Wire" "paramWire"&lt;BR /&gt;paramWire.connect $.pos.controller[#Percent] s02.pos.controller[#Percent] delta&lt;BR /&gt;clearSelection()&lt;BR /&gt;)&lt;BR /&gt;print "DONE"</description>
    <pubDate>Tue, 21 Sep 2021 14:09:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-21T14:09:15Z</dc:date>
    <item>
      <title>Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10627895#M1790</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone. I need to do a animation using the image attached as reference. To distribute the balls in each line is easy. I am just using the spacing tool to do that. The problem is to animate the balls trough the line. Using the path constraints make the balls go to the same initial ponit in each line. Than I have to relocate each ball manualy using % along path. It works but make the job a pain in the ass. Somebody knows how to animate each ball in the respective line but preserving the original location? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 19:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10627895#M1790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-16T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10628156#M1791</link>
      <description>&lt;P&gt;I'm not sure what you meant by "...&lt;SPAN&gt;&amp;nbsp;but preserving the original location".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would using a wire parameter do what you want?&amp;nbsp; If there were ten balls total and each&amp;nbsp; 10% apart then the second ball&amp;nbsp;would be&amp;nbsp; Percent + 0.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/966230i275B64AB4CA83662/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A script could probably be written to create the balls and the wire parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 22:16:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10628156#M1791</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-16T22:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10628237#M1792</link>
      <description>&lt;P&gt;Path Deform modifier with "Stretch" across the shapes option. Animate "percent" value.&lt;/P&gt;&lt;P&gt;Balls for one spline lined/attached in single object.&lt;/P&gt;&lt;P&gt;That would work for 2nd version of Path Deform (like in Max 2021)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 23:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10628237#M1792</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-09-16T23:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10630610#M1793</link>
      <description>&lt;P&gt;Great! I tought about the possibility of doing some script to automate the process. But I am not a programer. Would you know how to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 20:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10630610#M1793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-17T20:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10630613#M1794</link>
      <description>I gave for the path deform a try but the result was bizarre. At least in Max 2020</description>
      <pubDate>Fri, 17 Sep 2021 21:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10630613#M1794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-17T21:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631390#M1795</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8285824"&gt;@domo.spaji&lt;/a&gt;&amp;nbsp;would you post a sample file of how Path Deform could be used?&amp;nbsp; It might be more efficient than using wire parameters.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 12:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631390#M1795</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-18T12:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631466#M1796</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; &amp;nbsp;my experience writing scripts is very limited and am still learning function syntax and correct program structure.&amp;nbsp; The following code will generate multiple geosphere (I think they are better to use than spheres).&amp;nbsp; The program does not terminate as it should.&amp;nbsp; I am still trying to determine how to do that.&amp;nbsp; In this version the program will display the Wire Parameter menu when it is done running.&amp;nbsp; At this point the user should just click anywhere on the screen.&amp;nbsp; Multiple geospheres will then be created at a separation of&amp;nbsp; 1/n percent apart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change the values of r (radius of geosphere) and n (total number) to suit your needs.&amp;nbsp; If this program generally meets your needs I can improve the user interface.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/966856i1A75027EEDD92945/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;-- Creates n geospheres of radius r that are evenly spaced along the selected spline
-- bug, program does not terminate gracefully but works! When the program is done running
-- you will see the WireParameter menu.  Just click anywhere on the screen to finish the program.
-- L. Minard 9/18/2021  version 1
--
-- IMPORTANT -  select the path spline before execution
--
r = 0.08  -- radius of geosphere
n = 10    -- total numbers of spheres
nsegs = 2  -- number of segments per geosphere
--
ThePath = selection[1]
clearSelection()
GeoSphere pos:[-47.7738,35.8673,0] isSelected:on radius:r segments:nsegs
s01 = selection[1]
s01.pos.controller = Path_Constraint ()
s01.pos.controller.path = ThePath
clearSelection()

for k = 1 to (n - 1) do
(
	GeoSphere pos:[-40.0,35.8673,0] isSelected:on radius:r  segments:nsegs
	s02 = selection[1]
	s02.pos.controller = Path_Constraint ()
	s02.pos.controller.path = ThePath
	delta = "Percent + " +  (k * n  / 100.) as string
	select $GeoSphere001
	macros.run "Parameter Wire" "paramWire"
	paramWire.connect $.pos.controller[#Percent] s02.pos.controller[#Percent] delta
	
	clearSelection()
)
print "DONE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 12:54:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631466#M1796</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-18T12:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631652#M1797</link>
      <description>&lt;P&gt;It's pretty simple...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDformStretch.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/966878i9A75F71895C5F3A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDformStretch.PNG" alt="PDformStretch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yellow tpots lined&amp;nbsp; and attached in single mesh obj.&lt;/P&gt;&lt;P&gt;Rose tpots added Path Deform - setup on pic.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 14:59:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10631652#M1797</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-09-18T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633224#M1798</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8285824"&gt;@domo.spaji&lt;/a&gt;&amp;nbsp;Thank you but I couldn't get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a Teapot added an Edit Mesh modifier then used array to make 10 total instances in the x direction.&amp;nbsp; I then selected the 10 Teapots and click Attach. I&amp;nbsp; added a Path Deform modifier with stretch and got the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 998px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/967074i00F1C78C6762E6D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried several other approaches but no luck.&amp;nbsp; &amp;nbsp;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 01:29:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633224#M1798</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-20T01:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633341#M1799</link>
      <description>&lt;P&gt;You didn't attach them to single obj.&lt;/P&gt;&lt;P&gt;Don't understand how you tried it, we are talking about Attach option in Edit/able Poly/Mesh Geometry rollout.&lt;/P&gt;&lt;P&gt;You can not attach instanced objects or modifiers, make at least one of them unique and attach others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 04:27:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633341#M1799</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-09-20T04:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633349#M1800</link>
      <description>Also, line should be closed (or "almost" closed) so there will no be stretching from 1st to last knot in it...</description>
      <pubDate>Mon, 20 Sep 2021 04:41:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10633349#M1800</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-09-20T04:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10635217#M1801</link>
      <description>&lt;P&gt;I am using 3ds Max 2022 but I cant see in across shapes option the stretch option, I just see the Loopback option.&lt;/P&gt;&lt;P&gt;What I have to do to enable this option?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 20:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10635217#M1801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-20T20:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10635595#M1802</link>
      <description>&lt;P&gt;You can't enable it, that is 3rd gen. of Path Def. XD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try without that, stretch is/was just "necessary evil" to make it loop on same shape path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If doesn't working use Path Deform WSM.&lt;/P&gt;&lt;P&gt;Pick path and press "Move to path". Again, animate "percent" value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure you divide spline&amp;nbsp; enough so that objects dont change shape on different parts of path.&lt;/P&gt;&lt;P&gt;Add "Normalize spline" modifier to it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 00:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10635595#M1802</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-09-21T00:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10637159#M1803</link>
      <description>Hey my friend. You are my hero! A tried the path deform but it didnt worked as I expected. Than I used your script and the jobe is done! I just had to change some values to suit my needs. This could be improved if you want as I had to trie lots of numbers in the sciprt parts that I figured out. Those numbers could be part of variables and funtions to be automated. The script with the changes are bellow. Thanks a billion!&lt;BR /&gt;r = 1 -- radius of geosphere&lt;BR /&gt;n = 200 -- total numbers of spheres&lt;BR /&gt;nsegs = 2 -- number of segments per geosphere&lt;BR /&gt;--&lt;BR /&gt;ThePath = selection[1]&lt;BR /&gt;clearSelection()&lt;BR /&gt;GeoSphere pos:[-47.7738,35.8673,0] isSelected:on radius:r segments:nsegs&lt;BR /&gt;s01 = selection[1]&lt;BR /&gt;s01.pos.controller = Path_Constraint ()&lt;BR /&gt;s01.pos.controller.path = ThePath&lt;BR /&gt;clearSelection()&lt;BR /&gt;&lt;BR /&gt;for k = 1 to (n - 1) do&lt;BR /&gt;(&lt;BR /&gt;GeoSphere pos:[-40.0,35.8673,0] isSelected:on radius:r segments:nsegs&lt;BR /&gt;s02 = selection[1]&lt;BR /&gt;s02.pos.controller = Path_Constraint ()&lt;BR /&gt;s02.pos.controller.path = ThePath&lt;BR /&gt;delta = "Percent + " + (k * n / 40000.) as string&lt;BR /&gt;select $GeoSphere001&lt;BR /&gt;macros.run "Parameter Wire" "paramWire"&lt;BR /&gt;paramWire.connect $.pos.controller[#Percent] s02.pos.controller[#Percent] delta&lt;BR /&gt;clearSelection()&lt;BR /&gt;)&lt;BR /&gt;print "DONE"</description>
      <pubDate>Tue, 21 Sep 2021 14:09:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10637159#M1803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-21T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10638343#M1804</link>
      <description>&lt;P&gt;Here's a much friendlier version of the Maxscript.&amp;nbsp; In addition it fixes some major calculation errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;-- Creates user specifed number of geospheres of a given radius r 
-- that are evenly spaced along the selected spline.
--
-- L. Minardi 9/21/2021  version 4
--
if ballsRollout != undefined do 
 (
 	try(DestroyDialog ballsRollout)catch()
 )

rollout BallsRollout "Balls Along Spline" width:200 height:120
(
	spinner 'BallRad' "Ball radius:" range:[0,10000,0.1] fieldWidth:40 type:#float 
	spinner 'numBalls' "Total number of balls:" range:[0,100000,10] fieldWidth:40 type:#integer
	spinner 'numSegs' "Number of ball segments:" range:[0,50,2] fieldWidth:40 type:#integer
	button 'btnGo' "Go" pos:[50,75] width:96 height:36 align:#left
	on btnGo pressed do
	(
		if 
--		 (selection[1] != undefined) and (superClassOf selection[1] != shape) then 	
		(selection[1] != undefined) then 	
		(				
			thePath = selection[1] 
			clearSelection()
			GeoSphere pos:[0.0,0.0,0.0] isSelected:on radius:BallRad.value segments:numSegs.value
			s01 = selection[1]
			s01.pos.controller = Path_Constraint ()
			s01.pos.controller.path = ThePath
			clearSelection()
			for k = 1 to (numBalls.value - 1) do
				(
					GeoSphere pos:[0.0,0.0,0.0] isSelected:on radius:BallRad.value  segments:numSegs.value
					s02 = selection[1]
					s02.pos.controller = Path_Constraint ()
					s02.pos.controller.path = ThePath
					delta = "Percent + " +  (k as float / numBalls.value  ) as string
					select $GeoSphere001
					paramWire.connect $.pos.controller[#Percent] s02.pos.controller[#Percent] delta
					clearSelection()
				)
			print "DONE"	
		)	
		else
		(
			messageBox "Select a shape object!"	
		)
	)
)
createdialog BallsRollout &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 00:55:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10638343#M1804</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-22T00:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple objects using a line as animation guide</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10640933#M1805</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; version 4 had a bug that if the file already contained Geosphere001 and it was not linked to a path the program would crash.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Version 5 below changes this so that a geosphere named Geosphere__Master&amp;nbsp; is used as the base object.&amp;nbsp; It is very unlikely that your Max file would include such a named object and therefore should execute fine.&lt;/P&gt;&lt;P&gt;Please let me know if you have any problems with the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;-- Creates user specifed number of geospheres of a given radius r 
-- that are evenly spaced along the selected spline
--
-- L. Minardi 9/22/2021  version 5
--
-- IMPORTANT -  select the path spline before execution
--

if ballsRollout != undefined do 
 (
 	try(DestroyDialog ballsRollout)catch()
 )

rollout BallsRollout "Balls Along Spline" width:200 height:120
(
	spinner 'BallRad' "Ball radius:" range:[0,10000,0.1] fieldWidth:40 type:#float 
	spinner 'numBalls' "Total number of balls:" range:[0,100000,10] fieldWidth:40 type:#integer
	spinner 'numSegs' "Number of ball segments:" range:[0,50,2] fieldWidth:40 type:#integer
	button 'btnGo' "Go" pos:[50,75] width:96 height:36 align:#left
	on btnGo pressed do
	(
		if 
			-- ((selection[1] != undefined) and (superClassOf selection[1] != shape)) then 	
		(selection[1] != undefined) then 	
		(				
			thePath = selection[1] 
			clearSelection()
			GeoSphere pos:[0.0,0.0,0.0] isSelected:on radius:BallRad.value name:"GeoSphere001__Master" segments:numSegs.value
			s01 = selection[1]
			s01.pos.controller = Path_Constraint ()
			s01.pos.controller.path = ThePath
			clearSelection()
			for k = 1 to (numBalls.value - 1) do
				(
					GeoSphere pos:[0.0,0.0,0.0] isSelected:on radius:BallRad.value  segments:numSegs.value
					s02 = selection[1]
					s02.pos.controller = Path_Constraint ()
					s02.pos.controller.path = ThePath
					delta = "Percent + " +  (k as float / numBalls.value  ) as string
					select $GeoSphere001__Master
					paramWire.connect $.pos.controller[#Percent] s02.pos.controller[#Percent] delta
					clearSelection()
				)
			print "DONE"	
		)	
		else
		(
			messageBox "Select a shape object!"	
		)
	)
)
createdialog BallsRollout &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 21:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/multiple-objects-using-a-line-as-animation-guide/m-p/10640933#M1805</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-09-22T21:55:27Z</dc:date>
    </item>
  </channel>
</rss>

