<?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: Selection Lock Status? in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134606#M22723</link>
    <description>I like functions... :&amp;amp;#41;</description>
    <pubDate>Thu, 11 Feb 2010 17:47:53 GMT</pubDate>
    <dc:creator>Steve_Curley</dc:creator>
    <dc:date>2010-02-11T17:47:53Z</dc:date>
    <item>
      <title>Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134597#M22714</link>
      <description>Is there a way to get the status of the Selection Lock Toggle ? I have found a similar question but without the answer EVEN though it says that there is 1 reply ?&lt;BR /&gt;&lt;BR /&gt;So ... how to read the status of the Selection Lock Toggle button through script ?&lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Thu, 11 Feb 2010 12:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134597#M22714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134598#M22715</link>
      <description>With difficulty, by the looks of things.&lt;BR /&gt;&lt;BR /&gt;"max spacebar" will toggle it, but always returns "OK"&lt;BR /&gt;"actionMan.executeAction 0 "59231"" will also toggle it, but always returns "true"&lt;BR /&gt;&lt;BR /&gt;I don't see any easy way to interrogate the status, though it &lt;I&gt;may&lt;/I&gt; be possible through the "UIAccessor" and "dialogMonitorOps" interfaces. Might get real messy real quick - a lot of coding just to get at a status.</description>
      <pubDate>Thu, 11 Feb 2010 13:08:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134598#M22715</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-11T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134599#M22716</link>
      <description>Yup same conclusion here... still .. I would really like to know if there IS a way since its pretty vital for my script.&lt;BR /&gt;&lt;BR /&gt;The script is an export script that works with a selection that is put together before exporting.&lt;BR /&gt;&lt;BR /&gt;If the lock button is on - it totally corrupts whats getting exported &amp;amp;#40;selected&amp;amp;#41;.&lt;BR /&gt;&lt;BR /&gt;.. and then the user needs to figure it out and release the lock button... this quite often results in somebody writing to me saying "the exporter doesnt work!" and then I have to go and check whether the lock button is on / off.... making me go "aargh" when returning to my seat ... :/.&lt;BR /&gt;&lt;BR /&gt;Other suggestions ?</description>
      <pubDate>Thu, 11 Feb 2010 13:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134599#M22716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134600#M22717</link>
      <description>Then force Selection Lock OFF in your export script.&lt;BR /&gt;Opss, sorry... the status is a problem here &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Thu, 11 Feb 2010 15:27:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134600#M22717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134601#M22718</link>
      <description>That is indeed the problem. You can't force it one way or the other, only toggle it, and with no &amp;amp;#40;easy&amp;amp;#41; way to check the status that's about as much use as a chocolate fireguard.</description>
      <pubDate>Thu, 11 Feb 2010 15:43:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134601#M22718</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-11T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134602#M22719</link>
      <description>Ok, here's what occurred to me:&lt;BR /&gt;&lt;PRE&gt;oldSel = getCurrentSelection&amp;amp;#40;&amp;amp;#41; -- backup selection&lt;BR /&gt;deselect selection -- testing deselect&lt;BR /&gt;newSel = getCurrentSelection&amp;amp;#40;&amp;amp;#41; -- get new selection&lt;BR /&gt;test = &amp;amp;#40;oldSel as string == newSel as string&amp;amp;#41; -- boolean test&lt;BR /&gt;if test then -- ie if toggle is ON&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; max spacebar -- toggle OFF&lt;BR /&gt; /* TO DO export code here ... */&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;else&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; select oldSel&lt;BR /&gt; /* TO DO export code here ... */&lt;BR /&gt;&amp;amp;#41;&lt;/PRE&gt;&lt;BR /&gt;Of course, this must be inside the selection check content like &lt;PRE&gt;if selection.count &amp;gt; 0 do ...&lt;/PRE&gt; , else the "deselect" trick will fail. I hope this help :&amp;amp;#41;</description>
      <pubDate>Thu, 11 Feb 2010 15:58:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134602#M22719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T15:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134603#M22720</link>
      <description>LOL - you just beat me to it. I was trying by creating a dummy, selectMore then testing if the dummy was selected, then deleting the dummy so as not to affect the current selection.</description>
      <pubDate>Thu, 11 Feb 2010 16:25:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134603#M22720</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-11T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134604#M22721</link>
      <description>Here you go - the "slightly shorter" version :&amp;amp;#41;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;fn unlockSelection =&lt;BR /&gt;   &amp;amp;#40;&lt;BR /&gt;   d = dummy&amp;amp;#40;&amp;amp;#41; &lt;BR /&gt;   selectmore d&lt;BR /&gt;   if &amp;amp;#40;d.isSelected == false&amp;amp;#41; then -- selection lock is active&lt;BR /&gt;      max spacebar -- not now it isn't&lt;BR /&gt;   delete d&lt;BR /&gt;   &amp;amp;#41;&lt;BR /&gt;   &lt;BR /&gt;unlockSelection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2010 16:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134604#M22721</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-11T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134605#M22722</link>
      <description>Damn winter, my network was out...&lt;BR /&gt;I polish a little bit my version:&lt;BR /&gt;&lt;PRE&gt;if selection.count == 0 then&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; messageBox "Nothing selected to export!"&lt;BR /&gt;&amp;amp;#41;&lt;BR /&gt;else&lt;BR /&gt;&amp;amp;#40;&lt;BR /&gt; oldSel = getCurrentSelection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; deselect selection&lt;BR /&gt; newSel = getCurrentSelection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt; test = &amp;amp;#40;oldSel as string == newSel as string&amp;amp;#41;&lt;BR /&gt; if test then &amp;amp;#40;max spacebar&amp;amp;#41; else &amp;amp;#40;select oldSel&amp;amp;#41;&lt;BR /&gt; /* TO DO export code here ... */&lt;BR /&gt;&amp;amp;#41;&lt;/PRE&gt;&lt;BR /&gt;but yours is also Ok, packed as function, and not need "selection.count" check :&amp;amp;#41;</description>
      <pubDate>Thu, 11 Feb 2010 17:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134605#M22722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-11T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134606#M22723</link>
      <description>I like functions... :&amp;amp;#41;</description>
      <pubDate>Thu, 11 Feb 2010 17:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134606#M22723</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-11T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134607#M22724</link>
      <description>Hey guys,&lt;BR /&gt;&lt;BR /&gt;It sure is a bit clunky to do it like this ... but hey ... it should work... thanks alot!&lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Thu, 18 Feb 2010 13:26:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134607#M22724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-18T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134608#M22725</link>
      <description>HEY!... I might have found an even shorter route to the treasure!&lt;BR /&gt;&lt;BR /&gt;"max select all" actually unlocks selection lock !!!&lt;BR /&gt;&lt;BR /&gt;that means that I just have to store the current selection and the do a "max select all" and then restore the selection and hey presto..... I should think.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;a = getCurrentselection&amp;amp;#40;&amp;amp;#41;&lt;BR /&gt;max select all&lt;BR /&gt;select a&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Thu, 18 Feb 2010 13:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134608#M22725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-18T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Lock Status?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134609#M22726</link>
      <description>Crafty ;&amp;amp;#41;</description>
      <pubDate>Thu, 18 Feb 2010 14:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/selection-lock-status/m-p/4134609#M22726</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-02-18T14:18:09Z</dc:date>
    </item>
  </channel>
</rss>

