<?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: Change vertex weights of an envelope to closest 1/10 value? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/change-vertex-weights-of-an-envelope-to-closest-1-10-value/m-p/4033381#M26015</link>
    <description>Here is an abbreviated version of a function I wrote a while ago:&lt;BR /&gt;&lt;PRE&gt;fn Round val places:3 =&lt;BR /&gt;(&lt;BR /&gt;    if val == 0 then &lt;BR /&gt;        0&lt;BR /&gt;    else&lt;BR /&gt;    (&lt;BR /&gt;        places = (10.0 ^ places)&lt;BR /&gt;        if val &amp;gt; 0 then &lt;BR /&gt;            (floor ((val * places) + 0.5)) / places&lt;BR /&gt;        else&lt;BR /&gt;            (ceil ((val * places) - 0.5)) / places&lt;BR /&gt;    )&lt;BR /&gt;)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The longer version handles a variety of value types, but it is fundamentally based on the system used above.</description>
    <pubDate>Fri, 03 Oct 2008 21:59:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-10-03T21:59:53Z</dc:date>
    <item>
      <title>Change vertex weights of an envelope to closest 1/10 value?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/change-vertex-weights-of-an-envelope-to-closest-1-10-value/m-p/4033380#M26014</link>
      <description>Are there max script functions or scripts to set the vertex weight value of a 3ds max object with a skin modifier to the closest 1/10, ie : &lt;BR /&gt;&lt;BR /&gt;Change to 0.3 if the current value is 0.29&lt;BR /&gt;&lt;BR /&gt;Thanks for any help</description>
      <pubDate>Wed, 17 Sep 2008 17:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/change-vertex-weights-of-an-envelope-to-closest-1-10-value/m-p/4033380#M26014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-09-17T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change vertex weights of an envelope to closest 1/10 value?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/change-vertex-weights-of-an-envelope-to-closest-1-10-value/m-p/4033381#M26015</link>
      <description>Here is an abbreviated version of a function I wrote a while ago:&lt;BR /&gt;&lt;PRE&gt;fn Round val places:3 =&lt;BR /&gt;(&lt;BR /&gt;    if val == 0 then &lt;BR /&gt;        0&lt;BR /&gt;    else&lt;BR /&gt;    (&lt;BR /&gt;        places = (10.0 ^ places)&lt;BR /&gt;        if val &amp;gt; 0 then &lt;BR /&gt;            (floor ((val * places) + 0.5)) / places&lt;BR /&gt;        else&lt;BR /&gt;            (ceil ((val * places) - 0.5)) / places&lt;BR /&gt;    )&lt;BR /&gt;)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The longer version handles a variety of value types, but it is fundamentally based on the system used above.</description>
      <pubDate>Fri, 03 Oct 2008 21:59:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/change-vertex-weights-of-an-envelope-to-closest-1-10-value/m-p/4033381#M26015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-10-03T21:59:53Z</dc:date>
    </item>
  </channel>
</rss>

