<?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: Select a filter that only partially selects on a specific layer in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010906#M10484</link>
    <description>&lt;P&gt;unfortunately without c++ sdk you can't write Select Filter that might be used in Selection Filters list in main toolbar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2018 09:12:28 GMT</pubDate>
    <dc:creator>denisT.MaxDoctor</dc:creator>
    <dc:date>2018-05-18T09:12:28Z</dc:date>
    <item>
      <title>Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010328#M10479</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Good morning&lt;BR /&gt;I am going to ask today despite my curiosity.&lt;BR /&gt;I want you to look good.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;like CAD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN&gt;i would like to Select a filter that only partially object selects on a specific layer&lt;/SPAN&gt;&lt;BR /&gt;It's possible to script as a CAD without using the select by name interface&lt;BR /&gt;I looked for the manual but I can not find it.&lt;BR /&gt;I do not know how to select only some objects on that layer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;pls can you help me again ~&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 01:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010328#M10479</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2018-05-18T01:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010381#M10480</link>
      <description>&lt;PRE&gt;fn selectByLayer layer: =&lt;BR /&gt;(&lt;BR /&gt; fn layerFilter node layer:layer = &lt;BR /&gt; (&lt;BR /&gt; node.layer == layer&lt;BR /&gt; )&lt;BR /&gt; selectByName title:"Pick Nodes" buttonText:"Pick" filter:layerFilter&lt;BR /&gt;)&lt;BR /&gt;-- selectByLayer layer:(layermanager.getlayer 1)&lt;BR /&gt;&lt;BR /&gt;fn selectByLayerName name: =&lt;BR /&gt;(&lt;BR /&gt; fn layerFilter node name:name = &lt;BR /&gt; (&lt;BR /&gt; stricmp node.layer.name name == 0&lt;BR /&gt; )&lt;BR /&gt; selectByName title:"Pick Nodes" buttonText:"Pick" filter:layerFilter&lt;BR /&gt;)&lt;BR /&gt;-- selectByLayerName name:#0&lt;/PRE&gt;&lt;P&gt;of course you can combine several filters ...&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 02:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010381#M10480</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-05-18T02:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010396#M10481</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Good source too thank you too ~~~~~&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the problem is that there are thousands of objects&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a problem with choosing what I want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, without the select by interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to select it in the viewport&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are multiple layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to work with the layer name "ddd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The remaining layers are freeze&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I can select the "ddd" layered objects in the viewport&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN&gt;It is a problem to unfreeze the remaining layers after selecting&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;is that possible ~~?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 02:58:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010396#M10481</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2018-05-18T02:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010634#M10482</link>
      <description>&lt;P&gt;are you talking about a permanent filter which once set allows select nodes in viewport just from specified layer?&lt;/P&gt;&lt;P&gt;or you need a function that goes into specified filter selection mode?&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 06:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010634#M10482</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-05-18T06:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010703#M10483</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your reply though it's busy.&lt;BR /&gt;I want code.&lt;BR /&gt;My lack of English expressions would make you feel uncomfortable.&lt;BR /&gt;Please understand it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 07:33:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010703#M10483</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2018-05-18T07:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010906#M10484</link>
      <description>&lt;P&gt;unfortunately without c++ sdk you can't write Select Filter that might be used in Selection Filters list in main toolbar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 09:12:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8010906#M10484</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-05-18T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8011067#M10485</link>
      <description>&lt;P&gt;try this little tool. it might for you or at least give an idea how it might be organized:&lt;/P&gt;&lt;PRE&gt;try(destroydialog SelectInActiveLayer) catch()
rollout SelectInActiveLayer "Select In Active Layer" width:200
(
	fn layerFilter = 
	(
		--format "selection changed...\n"
		
		desel = for node in selection as array where node.layer != LayerManager.current collect node
		if desel.count &amp;gt; 0 do undo off
		(
			disablerefmsgs()
			deselect desel
			enablerefmsgs()
		)
	)
	
	checkbutton activate_bt "Activate" width:182 align:#right offset:[4,0]
	on activate_bt changed state do undo off
	(
		if state then
		(
			callbacks.removescripts id:#layer_filter
			callbacks.addscript #selectionSetChanged "::SelectInActiveLayer.layerFilter()" id:#layer_filter
			layerFilter()
		)
		else 
		(
			callbacks.removescripts id:#layer_filter
		)
	)
	on SelectInActiveLayer close do callbacks.removescripts id:#layer_filter
)
createdialog SelectInActiveLayer&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;in activated mode it has to allow node selecting in the active (current) layer only&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 10:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8011067#M10485</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-05-18T10:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8011474#M10486</link>
      <description>&lt;P&gt;&lt;SPAN&gt;wow&lt;BR /&gt;This is what I want.&lt;BR /&gt;Thank you very much&lt;BR /&gt;Unfortunately, it's often down&lt;BR /&gt;I'm afraid I'll be a lot worried about big projects&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 14:07:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8011474#M10486</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2018-05-18T14:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8012741#M10487</link>
      <description>&lt;PRE&gt;try(destroydialog SelectInActiveLayer) catch()
rollout SelectInActiveLayer "Select In Active Layer" width:200
(
	fn layerFilter = 
	(
		--format "selection changed...\n"
		
		desel = for node in selection as array where node.layer != LayerManager.current collect node
		if desel.count &amp;gt; 0 do undo off
		(
			callbacks.removescripts id:#layer_filter
			deselect desel
			callbacks.addscript #selectionSetChanged "::SelectInActiveLayer.layerFilter()" id:#layer_filter
		)
	)
	
	checkbutton activate_bt "Activate" width:182 align:#right offset:[4,0]
	on activate_bt changed state do undo off
	(
		if state then
		(
			callbacks.removescripts id:#layer_filter
			callbacks.addscript #selectionSetChanged "::SelectInActiveLayer.layerFilter()" id:#layer_filter
			layerFilter()
		)
		else 
		(
			callbacks.removescripts id:#layer_filter
		)
	)
	on SelectInActiveLayer close do callbacks.removescripts id:#layer_filter
)
createdialog SelectInActiveLayer&lt;/PRE&gt;&lt;P&gt;take this version. it might be more stable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if any answer to your questions solves your problem please don't forget to tag it as "SOLVED". It helps other people to&amp;nbsp;search and find solutions for the same or similar problems&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 02:14:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8012741#M10487</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2018-05-19T02:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select a filter that only partially selects on a specific layer</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8012752#M10488</link>
      <description>&lt;P&gt;&lt;SPAN&gt;wow&lt;BR /&gt;I had no idea what this would be.&lt;BR /&gt;wow&lt;BR /&gt;It's really great of you&lt;BR /&gt;You are not a max doctor&lt;BR /&gt;From now on you are max god&lt;BR /&gt;I really appreciate it once again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2018 02:34:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/select-a-filter-that-only-partially-selects-on-a-specific-layer/m-p/8012752#M10488</guid>
      <dc:creator>anycganycgJ8A6A</dc:creator>
      <dc:date>2018-05-19T02:34:55Z</dc:date>
    </item>
  </channel>
</rss>

