<?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: Detecting the active viewport to automate snap settings in MaxScript in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245462#M29582</link>
    <description>&lt;P&gt;if you had ensure how to change settings with&amp;nbsp;different&amp;nbsp;viewport , add a callbacks with&amp;nbsp;#activeViewportChanged , with&amp;nbsp;viewport interface you can get the type , then set what you want&lt;BR /&gt;if you want a&amp;nbsp;toggle&amp;nbsp;between&amp;nbsp;auto&amp;nbsp;set and&amp;nbsp;original , add a check button on a rollout , when checked , save current settings add the callbacks , when uncheck , remove callbacks and set with saved&lt;BR /&gt;if you only want some of types , then when active viewport not need , set with saved&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2026 08:30:19 GMT</pubDate>
    <dc:creator>A娘</dc:creator>
    <dc:date>2026-08-26T08:30:19Z</dc:date>
    <item>
      <title>Detecting the active viewport to automate snap settings in MaxScript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245339#M29581</link>
      <description>&lt;P&gt;I've been experimenting with automating snap behavior in 3ds Max based on the active viewport, so I don't have to manually flip between Vertex, Edge, 2.5D, and 3D snap modes every time I switch viewports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious how others approach this. Is there a reliable way you've found to detect the active viewport and switch snap settings accordingly, without interfering with the user's existing configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Particularly interested in solutions that work reliably across 3ds Max 2020 through 2026.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 06:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245339#M29581</guid>
      <dc:creator>maxspeed_dev</dc:creator>
      <dc:date>2026-08-26T06:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting the active viewport to automate snap settings in MaxScript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245462#M29582</link>
      <description>&lt;P&gt;if you had ensure how to change settings with&amp;nbsp;different&amp;nbsp;viewport , add a callbacks with&amp;nbsp;#activeViewportChanged , with&amp;nbsp;viewport interface you can get the type , then set what you want&lt;BR /&gt;if you want a&amp;nbsp;toggle&amp;nbsp;between&amp;nbsp;auto&amp;nbsp;set and&amp;nbsp;original , add a check button on a rollout , when checked , save current settings add the callbacks , when uncheck , remove callbacks and set with saved&lt;BR /&gt;if you only want some of types , then when active viewport not need , set with saved&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 08:30:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245462#M29582</guid>
      <dc:creator>A娘</dc:creator>
      <dc:date>2026-08-26T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting the active viewport to automate snap settings in MaxScript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245578#M29583</link>
      <description>&lt;P&gt;Thanks a lot for the detailed answer! I actually ended up using #activeViewportChanged for this exact thing, so good to know that's the right approach. Really appreciate the tip on toggling with a rollout checkbox too, that's a nice pattern.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 10:56:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/detecting-the-active-viewport-to-automate-snap-settings-in/m-p/14245578#M29583</guid>
      <dc:creator>maxspeed_dev</dc:creator>
      <dc:date>2026-08-26T10:56:23Z</dc:date>
    </item>
  </channel>
</rss>

