<?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: Animating Shock Spring Issue in 3ds Max Animation and Rigging Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10215750#M2163</link>
    <description>&lt;P&gt;Would this be possible using MassFx&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 15:04:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-06T15:04:24Z</dc:date>
    <item>
      <title>Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10215108#M2162</link>
      <description>&lt;P&gt;Morning,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First post here after using Max since forever.&amp;nbsp; I am having an issue animating the sping inside of a shock. The inside of the shock/cylinder has 2 springs, 1 at the top and one at the bottom. Between them is a gap so these springs are only anchored on 1 end and the other end is free. There is a shaft that goes through the center of the shock/cylinder that moves up and down. On the end of the shaft is a small cylinder. When the shaft moves so far upward, the small cylinder compresses the spring and as the shaft moves back downward to its resting position in the middle the spring decompresses. The same happens if the shaft moves down towards the bottom. The lower spring compresses&amp;nbsp; the shaft end makes contact with the spring and decompresses as the sshaft returns to its resting position.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have this sort of working using wire paramters but the problem is that when I move the shaft up or down the springs react even with the shaft end nowhere near the spring. I would like to delat the springs reaction to the movement of the shaft until the shaft end makes contact with or gets close enough to the spring.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this even possible. I looked into expression controllers but I do not have much experience so I am blindly looking at tutorials.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 11:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10215108#M2162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10215750#M2163</link>
      <description>&lt;P&gt;Would this be possible using MassFx&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10215750#M2163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10218910#M2164</link>
      <description>&lt;P&gt;Here's a simple solution using Wire Parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below the top of the bottom box is at 0,0,0 and the bottom of the top box is 0,0,100 and therefore the distance between them is 100. The middle box thickness is 2 and its pivot is on the top.&amp;nbsp; &amp;nbsp; I'll assume the uncompressed height of the spring is 20.&lt;/P&gt;&lt;P&gt;A wire parameter is added to the top spring (spring001) from its Free Spring Height to the Z position of BoxMid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression for the top spring is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;if (97-Z_Position) &amp;gt; 20 then 20 else (97-Z_Position)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for bottom spring is:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;if (Z_Position) &amp;gt; 21 then 20 else (Z_Position-1)&lt;/LI-CODE&gt;&lt;P&gt;This spring wire diameter is 2.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Move BoxMid up and down in the attached file.&amp;nbsp; All of these object could be linked to a dummy to make the displacements relative to the location and orientation of the dummy.&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/903392i103C03FD651C5152/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10218910#M2164</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-04-07T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10219862#M2165</link>
      <description>&lt;P&gt;Thanks for replying. I will try and set this up again. I went with using a controller. This works perfect until I link the objects to a dummy. Even with using local space it falls apart. I am new to Maxscript so I may be getting the syntax wrong.&amp;nbsp; Everything moves to crazy positions when linked to a dummy/parent. Works perfect if not parent though.&lt;BR /&gt;&lt;BR /&gt;Here is what I have.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ta = $topSpringAnchoredEnd
t = $topSpringLooseEnd
m = $shaftEnd

compressionPoint = 30

maxCompressionPoint = 15

decompressionOffset = 25

dist = distance m ta

--print ("Distance From Top Spring Anchor End is " + dist as string)


if dist &amp;lt;= compressionPoint
then
(
 print ("spring is compressing")
 	
	--match the topSpringLooseEnd's Z pos to the shaftEnd's Z pos while in compression range
	in coordsys local t.pos.z = m.pos.z
)
else
(
  print ("spring fully decompressed")
	
	--set the topSpringLooseEnd's Z pos back to the original uncompresed position
  	in coordsys local t.pos.z = ta.pos.z - offset
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10219862#M2165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10220167#M2166</link>
      <description>&lt;P&gt;In the following I have linked all the object to a master dummy.&amp;nbsp; The calculations are all then done in world coordinates.&amp;nbsp; The dummy may be positioned anywhere and at any orientation.&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;spBottom = $Spring001
spTop = $Spring002
boxmid = $boxMid
maxSpringHeight = 20
dTop = length(spTop.pos- boxmid.pos) - 2
dBot = (length(spBottom.pos - boxmid.pos)) - 2
--format "\n spTop.pos = %, spBottom.pos = % " spTop.pos spBottom.pos 
if dBot &amp;lt;  maxSpringHeight then   spBottom.Free_Spring_Height = dBot 
	else spBottom.Free_Spring_Height = maxSpringHeight
if dTop &amp;lt;  maxSpringHeight then   spTop.Free_Spring_Height = dTop 
	else spTop.Free_Spring_Height = maxSpringHeight&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 22:39:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10220167#M2166</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2021-04-07T22:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10231911#M2167</link>
      <description>&lt;P&gt;Thanks for your help. I had to do it slightly different because the spring modifier doesn't export out so I skinned the springs using bones. Is there a way to bake these wire animations out as key frames? I am trying to get this stuff out of Max and into Playcanvas but I can't seem to find a direct answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:38:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10231911#M2167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-12T16:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Animating Shock Spring Issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10232527#M2168</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Collapse controller&lt;/STRONG&gt; &lt;/U&gt;for baking on controller level, &lt;STRONG&gt;Point Cache&amp;nbsp;&lt;/STRONG&gt; for baking to simplest, vertex level.&lt;/P&gt;&lt;P&gt;You have to know what you can import to that app.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 20:41:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/animating-shock-spring-issue/m-p/10232527#M2168</guid>
      <dc:creator>domo.spaji</dc:creator>
      <dc:date>2021-04-12T20:41:03Z</dc:date>
    </item>
  </channel>
</rss>

