<?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: Random &amp;quot;Object&amp;quot; every frame or every other frame. in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/random-quot-object-quot-every-frame-or-every-other-frame/m-p/11158370#M4181</link>
    <description>&lt;P&gt;The first idea for me that comes to my mind for this task would be as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a substitute modifier to the main object&lt;/LI&gt;
&lt;LI&gt;Create an array that holds the references to the replacement objects&lt;/LI&gt;
&lt;LI&gt;on each frame change, pick a random element from the replacement objects array&lt;/LI&gt;
&lt;LI&gt;Set the substitude-modifier's &lt;STRONG&gt;ObjectReference&lt;/STRONG&gt; property to the picked replacement object&lt;/LI&gt;
&lt;LI&gt;Success !&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Tue, 10 May 2022 04:17:02 GMT</pubDate>
    <dc:creator>spacefrog_</dc:creator>
    <dc:date>2022-05-10T04:17:02Z</dc:date>
    <item>
      <title>Random "Object" every frame or every other frame.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/random-quot-object-quot-every-frame-or-every-other-frame/m-p/11157445#M4180</link>
      <description>&lt;P&gt;I am looking to accomplish something with MaxScript that is equivalent to &lt;A href="https://forums.autodesk.com/t5/3ds-max-forum/random-material-color-of-a-plane-every-frame/td-p/10918822?us_oa=forums-us&amp;amp;us_si=c3a3d40b-4367-46e7-9316-b017a3f333ce&amp;amp;us_st=random%20color%20changes%20every%20frame" target="_blank" rel="noopener"&gt;random plane colors every frame &amp;lt;-- link&lt;/A&gt;. The difference is I want to change the object in every frame to something else. For instance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Off to the side I have outside of camera view the following shapes:&lt;/P&gt;&lt;P&gt;1. Cube&lt;/P&gt;&lt;P&gt;2. Square&lt;/P&gt;&lt;P&gt;3. Ball&lt;/P&gt;&lt;P&gt;4. Donut&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 300 frames in my animation. In the center of camera view I would like for one of these objects to be placed randomly in the center or somewhere I can manipulate (move freely).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frame 1 = Ball&lt;/P&gt;&lt;P&gt;Frame 2 = Donut&lt;/P&gt;&lt;P&gt;Frame 3 = Cube&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this? Open to using things outside of maxscripts also...&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 18:01:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/random-quot-object-quot-every-frame-or-every-other-frame/m-p/11157445#M4180</guid>
      <dc:creator>cpalmerCWG82</dc:creator>
      <dc:date>2022-05-09T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Random "Object" every frame or every other frame.</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/random-quot-object-quot-every-frame-or-every-other-frame/m-p/11158370#M4181</link>
      <description>&lt;P&gt;The first idea for me that comes to my mind for this task would be as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a substitute modifier to the main object&lt;/LI&gt;
&lt;LI&gt;Create an array that holds the references to the replacement objects&lt;/LI&gt;
&lt;LI&gt;on each frame change, pick a random element from the replacement objects array&lt;/LI&gt;
&lt;LI&gt;Set the substitude-modifier's &lt;STRONG&gt;ObjectReference&lt;/STRONG&gt; property to the picked replacement object&lt;/LI&gt;
&lt;LI&gt;Success !&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 10 May 2022 04:17:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/random-quot-object-quot-every-frame-or-every-other-frame/m-p/11158370#M4181</guid>
      <dc:creator>spacefrog_</dc:creator>
      <dc:date>2022-05-10T04:17:02Z</dc:date>
    </item>
  </channel>
</rss>

