<?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: Removing a percentage of elements from a TriMesh in MCG in 3ds Max Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763338#M68089</link>
    <description>&lt;P&gt;See above, do the filtering as a last step, after you've cloned them in the third axis, not before.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 15:24:42 GMT</pubDate>
    <dc:creator>Swordslayer</dc:creator>
    <dc:date>2016-12-21T15:24:42Z</dc:date>
    <item>
      <title>Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6762500#M68084</link>
      <description>&lt;P&gt;So Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently creating an MCG to parametrically create shelves and an according amount of packets on them. There are equal amounts of the same packages in every compartment and are created separated from the shelves. So far most of it is working perfectly. But now I need to get rid of a specific percentage of random packages. I know that there is a script that does that with individual meshes, but since I'm using a CloneAndTranslate compound (which outputs a TriMesh), this wouldn't work properly. Also I want this to be an all in one solution without requiring a second&amp;nbsp;script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried a few different solutions (none of which worked at all), but due to the lack of proper documentation, all of those were shots in the dark. Is there a reference document were i can educate myself properly about all those operators in MCG?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 08:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6762500#M68084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T08:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6762857#M68085</link>
      <description>&lt;P&gt;Since you are the one who controls creating the mesh, you should do that before creating the trimesh in the first place. Collect the transforms and pick the given percentage of them, then use those filteref transforms to clone meshes and attach the result. I've made a simple modifier that show the logic, only instead of mesh elements, you'd be shuffling transformation matrices:&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="deleteRandom.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/304528iB29BB2D6877C2FEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="deleteRandom.png" alt="deleteRandom.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get it on &lt;A href="http://www.scriptspot.com/3ds-max/mcg/delete-random-elements" target="_self"&gt;scriptspot&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 12:17:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6762857#M68085</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2016-12-21T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763256#M68086</link>
      <description>&lt;P&gt;First of all: Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly for a single shelf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I'm encountering another problem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A high bay warehouse racking, created with the tool" style="width: 286px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/304571i54DC3694D97A5C11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skizze.png" alt="Skizze.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Screenshot shows a high bay warehouse racking, created with my tool. It is fully procedural. the amount of boxes in each compartment depends on the size of the compartment and the spacing between the boxes. The amount of compartments depends on the size of each one and the overall size of the&amp;nbsp;warehouse. But as you can see, if I duplicate them with the CloneAndTrasnform compound the shelves look exactly the same. I think I already know why this happens: the compound uses the "baked" result of the function (the TriMesh) but not the function itself. But i haven't found a workaround for this problem yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763256#M68086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763277#M68087</link>
      <description>&lt;P&gt;That's what you get by using cloning... A clean way would be generating the transforms in all three dimensions first, filter that result, then place meshes at those transforms and output final mesh. Dirty way would be filtering the resulting elements after cloning in all three dimensions (not before the last step as you do now).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763277#M68087</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2016-12-21T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763323#M68088</link>
      <description>&lt;P&gt;OK, I get what you mean.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think &lt;STRONG&gt;I'm&lt;/STRONG&gt; not able to put that into a graph. I am pretty new to this whole MCG thing (using it for about a week now). Maybe you could help me if i tell you how i create those racks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So first of all i'm creating the first compartement, then i'm cloning it in the Z and aftewards in the Y direction. Then i'm filtering the boxes with the graph you povided (boxes and steel construction are generated separately). After that, the first aisle is created. then i clone that the calculated amount in the X direction to get multiple aisles.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the easiest (read: only) way i found to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763323#M68088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T15:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763338#M68089</link>
      <description>&lt;P&gt;See above, do the filtering as a last step, after you've cloned them in the third axis, not before.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:24:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763338#M68089</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2016-12-21T15:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763427#M68090</link>
      <description>&lt;P&gt;This seems to work only to a certain point...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the warehouse does not exceed the size of around 50 meters x 25 meters (which it does in real world scenarios quite often) everything works just fine but if I go beyond that it takes a while &amp;nbsp;and then crashes. The maxscript listener shows the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error occurred in HRL_Creator defined in C:\Users\user\Desktop\HRL_Creator.maxtool
- System.OverflowException, Array dimensions exceeded supported range. at Autodesk.Sequences.IArray`1[T] Flatten[T](Autodesk.Sequences.IArray`1[Autodesk.Sequences.IArray`1[T]])
   at Autodesk.Sequences.ImmutableArray.Flatten[T](IArray`1 seqs)
   at Autodesk.Geometry3D.MeshData.IndirectChannel`1.Concatenate(IArray`1 channels)
   at Viper3dsMaxBridge.MaxMeshData.Concatenate(MeshData[] xs)
   at Viper3dsMaxBridge.ViperMaxOperators.TriMeshOps.CombineAllMeshes(IArray`1 meshes)
   at _anonymous_type_58.main(&amp;lt;16 parameters used prior&amp;gt;) in C:\Users\user\Desktop\HRL_Creator.txt:line 721&lt;/PRE&gt;&lt;P&gt;The referred line (721) shows a Combine all meshes operator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_200CombineAllMeshes = CombineAllMeshes(_199Take);&lt;/PRE&gt;&lt;P&gt;So do too many input parameters generate more dimensions than a 3ds max array can handle?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763427#M68090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T15:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763449#M68091</link>
      <description>&lt;P&gt;Yeah, that's sort of a known MCG error &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; You know what? Could you post that along with the error message to the facebook 3ds Max Procedural Tools - MCG + DCM group? The MCG developers frequent it and could be able to help or at least promise some solution in next service pack.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:54:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6763449#M68091</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2016-12-21T15:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6800386#M68092</link>
      <description>&lt;P&gt;Finally after some days of trial and error, but more important, lots of help from here and that facebook group, I was finally able to get a solution to this problem. The source of the error was the MeshElements node, because, as it seems, this isnt able to take more than ~3800 elements at once. solution to this: Splitting the whole Array of meshes into vertices, then slice the array by the amount of vertices in one object into subarrays. Then I'm using most of the script posted above to remove a certain percentage of objects and shuffle the array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Picture below shows the whole process. The upper TriMesh input is the array, the other two are the base object.&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="Unbenannt01.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/310445i869700AD9874A5D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Unbenannt01.PNG" alt="Unbenannt01.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 09:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6800386#M68092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-12T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6812256#M68093</link>
      <description>&lt;P&gt;Thank you very much for posting the follow up&amp;nbsp;@Anonymous, that was very nice of you. &amp;nbsp;Kudos to you, sir! &amp;nbsp; Nice work in this thread&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1275790"&gt;@Swordslayer&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:47:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6812256#M68093</guid>
      <dc:creator>Alfred.DeFlaminis</dc:creator>
      <dc:date>2017-01-18T01:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6841303#M68094</link>
      <description>&lt;P&gt;SwordSlayer's method is good, but I know I ran into a few issues with being able to produce repeatable results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are trying to get random elements from an Array I found that &lt;A href="https://www.facebook.com/groups/1611269852441897/1779165688985645/" target="_self"&gt;Vu_RandomUniqueFromArray&lt;/A&gt;&amp;nbsp;provides consistent repeatable results. Vu's results will flip over 50 percent for performance reasons, but that may be able to be fixed with an If greater than 50 percent call to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: There may be some missing compounds in there. I have them from another file I downloaded, but don't remember where I found it. I will see if I can link you to that file later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6841303#M68094</guid>
      <dc:creator>PiXeL_MoNKeY</dc:creator>
      <dc:date>2017-01-30T19:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6842151#M68095</link>
      <description>&lt;P&gt;It's great to see you in here&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/785836"&gt;@PiXeL_MoNKeY&lt;/a&gt;, thanks for the informative post. &amp;nbsp;When I was just learning 3D to beyond a beginner level, you were the person who helped the most with my various questions and problems I was having. &amp;nbsp;I don't think I ever got a chance to say thank you for that. &amp;nbsp;You really helped me a lot over the years and I have not forgotten, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 01:03:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6842151#M68095</guid>
      <dc:creator>Alfred.DeFlaminis</dc:creator>
      <dc:date>2017-01-31T01:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6842295#M68096</link>
      <description>&lt;P&gt;Thanks Alfred I hope I can get back to having time for more forum helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took some download and URL history forging, but I finally found the other Vu post with the needed missing compounds in his test_ADistanceB.mcg found in the FB posts&amp;nbsp;&lt;A href="https://www.facebook.com/groups/1611269852441897/permalink/1779510698951144/?comment_tracking=%7B%22tn%22%3A%22O%22%7D" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 03:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/6842295#M68096</guid>
      <dc:creator>PiXeL_MoNKeY</dc:creator>
      <dc:date>2017-01-31T03:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/13256365#M68097</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To remove a specific &lt;A href="https://calculatricepourcentage.fr/additionner-des-pourcentages/" target="_blank" rel="noopener"&gt;percentage&lt;/A&gt; of random packages in MCG, integrate a &lt;STRONG&gt;Random Selector&lt;/STRONG&gt; or &lt;STRONG&gt;Condition Filter&lt;/STRONG&gt; into your graph to control the output of the &lt;STRONG&gt;CloneAndTranslate&lt;/STRONG&gt; compound. For detailed guidance, refer to Autodesk’s official &lt;STRONG&gt;MCG Help&lt;/STRONG&gt; or the &lt;STRONG&gt;Area by Autodesk&lt;/STRONG&gt; forum. Let me know if you'd like further assistance!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Jan 2025 14:20:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/13256365#M68097</guid>
      <dc:creator>projectnandlastrategy</dc:creator>
      <dc:date>2025-01-12T14:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Removing a percentage of elements from a TriMesh in MCG</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/13256592#M68098</link>
      <description>&lt;P&gt;The Array modifier also allows to remove a random percentage.&amp;nbsp;Just saying...&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 19:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/removing-a-percentage-of-elements-from-a-trimesh-in-mcg/m-p/13256592#M68098</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2025-01-12T19:48:39Z</dc:date>
    </item>
  </channel>
</rss>

