<?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 Need to random arrange small object within bounds of a larger object in 3ds Max Modeling Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-modeling-forum/need-to-random-arrange-small-object-within-bounds-of-a-larger/m-p/11791460#M1897</link>
    <description>&lt;P&gt;Hi! I need to fill the equivalent of a fish tank with beads. What's a good script to do this with? I can't find one that does what I need. I'm working in the 2016 version, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 21:11:26 GMT</pubDate>
    <dc:creator>ASQUEOBSFJ2</dc:creator>
    <dc:date>2023-03-01T21:11:26Z</dc:date>
    <item>
      <title>Need to random arrange small object within bounds of a larger object</title>
      <link>https://forums.autodesk.com/t5/3ds-max-modeling-forum/need-to-random-arrange-small-object-within-bounds-of-a-larger/m-p/11791460#M1897</link>
      <description>&lt;P&gt;Hi! I need to fill the equivalent of a fish tank with beads. What's a good script to do this with? I can't find one that does what I need. I'm working in the 2016 version, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 21:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-modeling-forum/need-to-random-arrange-small-object-within-bounds-of-a-larger/m-p/11791460#M1897</guid>
      <dc:creator>ASQUEOBSFJ2</dc:creator>
      <dc:date>2023-03-01T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to random arrange small object within bounds of a larger object</title>
      <link>https://forums.autodesk.com/t5/3ds-max-modeling-forum/need-to-random-arrange-small-object-within-bounds-of-a-larger/m-p/11794980#M1898</link>
      <description>&lt;P&gt;The following is a simple script that will randomly fill a box with an object.&lt;/P&gt;&lt;P&gt;Create a box bigger than your "fish bowl" and then delete the ones outside.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1677808791308.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1183973iF5646DB8CCC2FFEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1677808791308.png" alt="leeminardi_0-1677808791308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;-- fills the volume defined by a box with objects
-- select the object to fill the box first then
-- select a box object
n = 30 -- number of objects to fill box
obj =  selection[1]
b = selection[2]
xdim = b.width
ydim = b.length
zdim = b.height
x1 = b.pos.x - xdim/2.
x2 = b.pos.x + xdim/2.
y1 = b.pos.y - ydim/2.
y2 = b.pos.y + ydim/2.
z1 = b.pos.z 
z2 = b.pos.z + zdim
for i = 1 to n do
(
	o = copy obj  
--	o =  instance obj  -- use this for instances
	o.pos = [(random x1 x2 ),(random y1 y2), (random z1 z2)]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 02:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-modeling-forum/need-to-random-arrange-small-object-within-bounds-of-a-larger/m-p/11794980#M1898</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2023-03-03T02:00:40Z</dc:date>
    </item>
  </channel>
</rss>

