<?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: simpleMod - Accessing data other than vertex position in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7349005#M12121</link>
    <description>&lt;P&gt;Use simpleMeshMod and its direct mesh access instead of this elaborate and dependency-loop-prone setup.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 21:29:54 GMT</pubDate>
    <dc:creator>Swordslayer</dc:creator>
    <dc:date>2017-09-01T21:29:54Z</dc:date>
    <item>
      <title>simpleMod - Accessing data other than vertex position</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7346541#M12120</link>
      <description>&lt;P&gt;I was working on a SimpleMod plugin to have normal based noise, and have a question regarding access to vertex normals within the map event. Currently when trying to run the getNormal command, I get an error saying "-- Runtime error: Illegal SimpleMod map handler recursion: &amp;lt;internal:0x000079c0&amp;gt; ". Is there a way to access not only the local vertex position within the map event but also the vertex normal? And is it possible to have these values update with changing topology beneath the modifier like the P variable does?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plugin simpleMod normalNoise&lt;/P&gt;&lt;P&gt;name:"Normal Noise"&lt;/P&gt;&lt;P&gt;classID:#(0x3137b97, 0x2c7557ef)&lt;/P&gt;&lt;P&gt;version:1&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters main rollout:params&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; refNode type:#maxObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noiseMult type:#float ui:noiseMultUI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rollout params "Noise Parameters"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noiseMultUI "Noise Mult : "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on create do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; refObj = nodeTransformMonitor node:$ forwardTransformChangeMsgs:false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on map i p do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vertNormal = getNormal refObj.node i&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p += (vertNormal * noiseMult)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:26:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7346541#M12120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-01T19:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: simpleMod - Accessing data other than vertex position</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7349005#M12121</link>
      <description>&lt;P&gt;Use simpleMeshMod and its direct mesh access instead of this elaborate and dependency-loop-prone setup.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 21:29:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7349005#M12121</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2017-09-01T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: simpleMod - Accessing data other than vertex position</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7349080#M12122</link>
      <description>&lt;P&gt;Wow I have 2016 but only the 2015 maxscript help. Thanks for introducing me to this plugin class, I didn't even know it existed and am a bit hesitant to jump into the MCG world so this is perfect. Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 22:20:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/simplemod-accessing-data-other-than-vertex-position/m-p/7349080#M12122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-01T22:20:09Z</dc:date>
    </item>
  </channel>
</rss>

