<?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: Detach script with c ++ in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365292#M3808</link>
    <description>&lt;P&gt;you have a pretty fast machine, so the script might not be too slow for you&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 18:45:26 GMT</pubDate>
    <dc:creator>denisT.MaxDoctor</dc:creator>
    <dc:date>2022-08-17T18:45:26Z</dc:date>
    <item>
      <title>Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361147#M3792</link>
      <description>&lt;P&gt;&lt;U&gt;hi&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Nice to meet you&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I have a problem&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I have a 5000 object&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;That is attached..&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I would like to detach with elements&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I tested many detahel script&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;But all is failed or max freezz problem&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;So i found this link&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;C++ detach script&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;A href="https://forums.cgsociety.org/t/c-detach-by-elements/1707338" target="_blank"&gt;https://forums.cgsociety.org/t/c-detach-by-elements/1707338&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;If i use c++ , can i detach my objects&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I dont know c++&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Uf that is possible , can you help that ?&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 04:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361147#M3792</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-16T04:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361201#M3793</link>
      <description>&lt;P&gt;Since I am the actual author of this code, it will probably be easier for me to answer you.&lt;BR /&gt;If you don't know c++, then this code won't help you. It's impossible to just take it and somehow execute it in 3DS MAX.&lt;BR /&gt;Only the MaxScript solution will suit you and nothing else. If you couldn't find a working script, it doesn't mean that it doesn't exist. You just haven't come across any good ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest way to get a working solution is to post an example of a max scene (MAX 2020 version), and clearly tell which object and how should be detached by element...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, there are two technical problems here (not one):&lt;BR /&gt;1. find all the necessary elements&lt;BR /&gt;2. detach them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, we need to take a look first&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 05:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361201#M3793</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-16T05:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361628#M3794</link>
      <description>really thank you for reply&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1eJQo2kvwSnBHH94Z6d2WtJbIgfebCic7/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1eJQo2kvwSnBHH94Z6d2WtJbIgfebCic7/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;that is attached object&lt;BR /&gt;i am sorry&lt;BR /&gt;pls can you detach test ?&lt;BR /&gt;i would like to know detach speed with c++ script&lt;BR /&gt;my pupose is element detach.&lt;BR /&gt;thank you again ~&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11361628#M3794</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-16T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11362646#M3795</link>
      <description>&lt;P&gt;It should be noted that the task is not easy for c++ either.&lt;BR /&gt;Just so you know, your example does not have 5000 elements as you said, but 50000(!)... and that's a big difference.&lt;BR /&gt;So far, I can't solve this problem with a pure maxscript, but it's a challenge for me, and I'm interested in solving this problem anyway&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 17:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11362646#M3795</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-16T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363476#M3796</link>
      <description>Really really thank you for your effort&lt;BR /&gt;I wish you can do that ~&lt;BR /&gt;At any way thank you</description>
      <pubDate>Wed, 17 Aug 2022 02:22:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363476#M3796</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T02:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363491#M3797</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5107678"&gt;@anycganycgJ8A6A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;pls can you detach test ?&lt;BR /&gt;i would like to know detach speed&amp;nbsp;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;how fast does it have to be to make you happy? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 02:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363491#M3797</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T02:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363529#M3798</link>
      <description>Thank you for your kindness&lt;BR /&gt;As fast as possbile.&lt;BR /&gt;5 seond is very happy&lt;BR /&gt;10 second is very happy also&lt;BR /&gt;Really Sorry for rude request :&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2022 03:14:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363529#M3798</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T03:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363692#M3799</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5107678"&gt;@anycganycgJ8A6A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;As fast as possbile.&lt;BR /&gt;5 seond is very happy&lt;BR /&gt;10 second is very happy also&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ha ha ha... you're naive. While we can talk about 3-5 minutes&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 05:51:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363692#M3799</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T05:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363861#M3800</link>
      <description>i adore you&lt;BR /&gt;I always think of your word as the word of God&lt;BR /&gt;Even if I become a stone, I will wait for your answer</description>
      <pubDate>Wed, 17 Aug 2022 07:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11363861#M3800</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T07:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11364943#M3801</link>
      <description>&lt;P&gt;I'm just wondering... why attach all the objects to one mesh first and then detach them piece by piece again?&lt;/P&gt;&lt;P&gt;It turns out 50,000 objects ... it is simply impossible to work with such a number!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you imagine detaching all in 3-5 seconds...&lt;BR /&gt;let's do a simple experiment, just try to create 50,000 comparable by size box objects:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(
	delete objects
	
	t0 = timestamp()
	h0 = heapfree

	bb = for k=1 to 50000 collect
	(
		b = box lengthsegs:2 widthsegs:2 heightsegs:2 pos:(random -[1000,1000,1000] [1000,1000,1000])
		converttomesh b
	)
	
	format "count:% time:% heap:%\n" bb.count (timestamp() - t0) (h0 - heapfree)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how long does it take on your machine?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11364943#M3801</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365057#M3802</link>
      <description>really thank you for reply again&lt;BR /&gt;first of all, i tested&lt;BR /&gt;count:50000 time:17770 heap:49620672L&lt;BR /&gt;&lt;BR /&gt;Please understand my poor English skills&lt;BR /&gt;&lt;BR /&gt;Here's why it's made with one mesh:&lt;BR /&gt;&lt;BR /&gt;I often get attached large objects from clients.&lt;BR /&gt;So I have to separate for mapping.&lt;BR /&gt;&lt;BR /&gt;So this time&lt;BR /&gt;I have a curiosity that I want to solve&lt;BR /&gt;&lt;BR /&gt;My curiosity won't stop&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365057#M3802</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365070#M3803</link>
      <description>second : count:50000 time:11445 heap:49893368L&lt;BR /&gt;third : count:50000 time:11601 heap:49891960L&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;denist , i have a question&lt;BR /&gt;without opening max program , Is it impossible to run a script from the command line?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:00:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365070#M3803</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T17:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365145#M3804</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5107678"&gt;@anycganycgJ8A6A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I often get attached large objects from clients.&lt;BR /&gt;So I have to separate for mapping.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In this case, you do not need to detach all the parts. Detach only those you need to work on at the moment and reattach them when the job is done.&lt;BR /&gt;It also makes sense to specifically do the mapping for only certain parts, and copy the mapping from them to the same or similar ones. This will save you a lot of time.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:36:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365145#M3804</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365168#M3805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5107678"&gt;@anycganycgJ8A6A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;without opening max program , Is it impossible to run a script from the command line?&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in general, consider that it is impossible. Expect MAX must be opened to run tools...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "hidden UI" option (launching MAX without a UI) is designed and used almost exclusively for rendering purposes. Running MAX with command line is not an area in which my expert opinion means something. Surely there are more experienced people in this topic&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:46:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365168#M3805</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T17:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365187#M3806</link>
      <description>Really Thank you for good advice&lt;BR /&gt;I have many style in my work&lt;BR /&gt;&lt;BR /&gt;1. Detach all , and replace that&lt;BR /&gt;2. Other complex attached scene , extract model&lt;BR /&gt;&lt;BR /&gt;Etc...&lt;BR /&gt;&lt;BR /&gt;Files from clients have a lot of different styles.&lt;BR /&gt;I felt it was convenient to work after just detaching the whole thing.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365187#M3806</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365288#M3807</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;try(destroydialog TakeApartRol) catch()
rollout TakeApartRol "Take Apart" width:191
(
	fn getAllMeshElements node faces: detach:on pb: ni: gi: ti: mi: gc_count:0 =
	(
		prefix = node.name + "_"
		
		local tmesh = snapshotasmesh node
		--local amesh = copy tmesh
		local num_groups = 0
		local num_elements = 0
		local elements = #()
		local _detachfaces = meshop.detachfaces
		local _deletefaces = meshop.deletefaces
		
		local t0 = timestamp()
			
		local numverts = tmesh.numverts
		local numfaces = tmesh.numfaces

		local allfaces = #{1..numfaces}
		local verts = for v = 1 to numverts collect #()
		
		for j in allfaces do
		(
			f = getface tmesh j
			for k = 1 to 3 do append verts[f[k]] j
		)
		
		out = false
		local element = #()
		
		if faces == unsupplied do faces = allfaces
		
		for i in faces while not keyboard.escPressed do
		(
			element = #(i)
			for j in element where faces[j] do
			(
				faces[j] = false
				f = getface tmesh j
				for k = 1 to 3 where verts[f[k]] != undefined do
				(
					join element verts[f[k]]
					verts[f[k]] = undefined
				)
			)
			
			if detach then
			(
				join elements element
			)
			else
			(
				append elements (element as bitarray)
			)
			num_elements += 1
			if pb != undefined do pb.value = mod (num_elements/10.0) 100
			if ni != undefined do ni.text = num_elements as string
			if gc_count and (mod num_elements gc_count == 0 or i == numfaces) do 
			(
				--gc light:on
				if detach do
				(
					m = _detachfaces tmesh elements delete:false asmesh:true
					name = uniquename prefix
					n = editable_mesh name:name parent:node
					n.mesh = m
					
					elements = #()
				)
				num_groups += 1
				if gi != undefined do gi.text = num_groups as string
				if ti != undefined do ti.text = ((timestamp() - t0) / 1000) as string
				local val = int (100.0 * heapFree / heapSize + 0.5)
				if mi != undefined do mi.text = val as string
				windows.processPostedMessages()
			)
			
			out = true
		)
		num_elements
		elements
	)	
	
	label facetype_lb "Face Targets: " align:#right offset:[0,4] across:2
	radiobuttons facetype_rb labels:#("All", "Selected") columns:1 align:#left offset:[0,3]
	label bycount_lb "Group By Count: " align:#right offset:[0,4] across:2
	radiobuttons bycount_rb labels:#("1", "10", "100", "1000", "10000") default:1 columns:1 align:#left offset:[0,3]

	checkbox detach_ch "Detach" align:#left offset:[0,0] --across:2

	button mxs_detach_bt "MXS Process" width:172 align:#left offset:[-4,2] 
	progressbar progress_pb color:orange width:172 height:10 align:#center offset:[0,0]
	
	group "Statistics: "
	(
		label number_lb "All Elements" align:#left offset:[8,0] across:3
		label info_01 "0" align:#right offset:[40,0]
		label data_01 "" width:20 align:#right offset:[8,0]
		label groups_lb "Groups By Count" align:#left offset:[8,0] across:3
		label info_02 "0" align:#right offset:[40,0]
		label data_02 "" width:20 align:#right offset:[8,0]
		label time_lb "Time" align:#left offset:[8,0] across:3
		label info_03 "0" align:#right offset:[40,0]
		label data_03 "s" width:20 align:#right offset:[8,0]
		label heap_lb "Memory" align:#left offset:[8,0] across:3
		label info_04 "0" align:#right offset:[40,0]
		label data_04 "%" width:20 align:#right offset:[8,0]
	)
	group "Settings and Debug: "
	(
		checkbox debugh_ch "Debug" align:#left offset:[0,4] across:2
		checkbox gclight_ch " GC Light" align:#left offset:[20,4]
		button gc_bt "Garbage Collection" width:172 align:#left offset:[-4,2] 
	)
		
	fn memoryDisplay = 
	(
		local val = 100.0*heapFree/heapSize + 0.5
		info_04.text = (int val) as string
	)
	on gc_bt pressed do 
	(
		gc light:gclight_ch.state
		memoryDisplay()
		completeRedraw()
	)
	
	local num
	local t0, t1
	local h0, h1
		
	on mxs_detach_bt pressed do undo "Detach" off, with redraw off
	(
		node = selection[1]
		if iskindof node GeometryClass do
		(
			gc light:on
			memoryDisplay()
			
			t0 = timestamp()
			h0 = heapfree
			
			mesh = gettempmesh node
			faces = if facetype_rb.state == 1 then #{1..mesh.numfaces} else (mesh.selectedfaces as bitarray)
			
			count = #(1,10,100,1000,10000)[bycount_rb.state]
			
			global _ee = GetAllMeshElements node faces:faces detach:detach_ch.state \
				pb:progress_pb ni:info_01 gi:info_02 ti:info_03 mi:info_04 gc_count:count
			
			t1 = timestamp()
			h1 = heapfree
			
			format "count:% time:% heap:%\n" _ee.count (t1 - t0) (h0 - h1)
		)
	)

	on TakeApartRol open do
	(
		gc light:on
		memoryDisplay()
	)
)
createdialog TakeApartRol&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Aug 2022 18:41:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365288#M3807</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T18:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365292#M3808</link>
      <description>&lt;P&gt;you have a pretty fast machine, so the script might not be too slow for you&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 18:45:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365292#M3808</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365374#M3809</link>
      <description>I fell asleep and woke up .&lt;BR /&gt;You gave me something big like Santa Claus.&lt;BR /&gt;thank you thank you thank you&lt;BR /&gt;I'll test it tomorrow after I get some sleep.&lt;BR /&gt;thank you so much.</description>
      <pubDate>Wed, 17 Aug 2022 19:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365374#M3809</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2022-08-17T19:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365441#M3810</link>
      <description>Removing frequent stats updates and unrolling 1..3 loops made it noticebly faster from 5.856sec to 4.176sec. But I'm not sure if it depends on a test scene. I used a few dozens of teapots collapsed together.</description>
      <pubDate>Wed, 17 Aug 2022 20:00:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365441#M3810</guid>
      <dc:creator>Serejah</dc:creator>
      <dc:date>2022-08-17T20:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Detach script with c ++</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365528#M3811</link>
      <description>&lt;P&gt;I'm pretty sure you're right... there are a few traces, mostly for debugging and analysis, and they should be removed in the final version.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 20:44:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detach-script-with-c/m-p/11365528#M3811</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2022-08-17T20:44:37Z</dc:date>
    </item>
  </channel>
</rss>

