<?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: Delete all SME views Script cause scene crash in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/13443260#M1518</link>
    <description>&lt;P&gt;Ok after some time, this issue is solved for me, the problem was from V-Ray, they have&amp;nbsp; updated version 6 and 7 in the nightlies, now I can clean the SME when there are more than 10 tabs.&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="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1492788iF334267BE9CE549A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" alt="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 23:39:37 GMT</pubDate>
    <dc:creator>calberto.cart</dc:creator>
    <dc:date>2025-04-24T23:39:37Z</dc:date>
    <item>
      <title>Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563493#M1506</link>
      <description>&lt;P&gt;Hi there, a couple of days I tried an script from this &lt;A href="https://forums.autodesk.com/t5/3ds-max-programming/delete-sme-views-script-causing-error/td-p/9761210" target="_blank" rel="noopener"&gt;Post&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There, one of the Scripts really worked for me in Max 2024, but theres an issue with scenes with more than 10 View tabs, the script clean all the viewtabs but then the scene crashes.&lt;/P&gt;&lt;P&gt;But if I run the script directly from Maxscript, sometimes works ok, at least in some scenes, meanwhile saving the script in file or macro produces the scene to crash, its really weird.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im attaching 2 sample scenes in Max 21 and the Script mentioned.&lt;/P&gt;&lt;P&gt;Also a video example&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 02:16:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563493#M1506</guid>
      <dc:creator>calberto.cart</dc:creator>
      <dc:date>2024-02-16T02:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563513#M1507</link>
      <description>&lt;P&gt;I don't have MAX 2024 to play... could you please convert the scenes to 2023?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 01:30:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563513#M1507</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-16T01:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563570#M1508</link>
      <description>Ouch sorry, I totally forgot, I have already reupload the zip file with max files in 21 version</description>
      <pubDate>Fri, 16 Feb 2024 02:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563570#M1508</guid>
      <dc:creator>calberto.cart</dc:creator>
      <dc:date>2024-02-16T02:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563639#M1509</link>
      <description>&lt;P&gt;I can't reproduce the problem of crashing while deleting sme views, working with the files you attached.&lt;/P&gt;&lt;P&gt;Perhaps someone else can find the situation where the scene crashes.&lt;/P&gt;&lt;P&gt;I use the code below to delete all views:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(
	if sme.GetMainframe() == undefined do sme.Open() 
	num = sme.GetNumViews()
	while sme.GetNumViews() do sme.DeleteView 1 false
	num
)	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code deletes all views as expected. No warnings, no errors, no crash...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 03:45:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12563639#M1509</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-16T03:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12573950#M1510</link>
      <description>&lt;P&gt;Thanks, that didnt work for me&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried in Max 2021 and 2024 and the error occurs everytime&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:26:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12573950#M1510</guid>
      <dc:creator>calberto.cart</dc:creator>
      <dc:date>2024-02-21T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12574437#M1511</link>
      <description>&lt;P&gt;Send the error message you get&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 19:20:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12574437#M1511</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-21T19:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12586919#M1512</link>
      <description>&lt;P&gt;This happen for me sometimes, You should keep at-least one view to prevent the crash.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 01:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12586919#M1512</guid>
      <dc:creator>MehdiZangenehBar</dc:creator>
      <dc:date>2024-02-28T01:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587236#M1513</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1632107"&gt;@MehdiZangenehBar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This happen for me sometimes, You should keep at-least one view to prevent the crash.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Interesting find... sometimes it makes sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, I'd be interested to understand the exact cause of the crash.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 06:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587236#M1513</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-28T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587585#M1514</link>
      <description>&lt;P&gt;Yea, and if I need to clear ALL, I will add the default view first, then delete the rest.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:52:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587585#M1514</guid>
      <dc:creator>MehdiZangenehBar</dc:creator>
      <dc:date>2024-02-28T10:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587630#M1515</link>
      <description>&lt;P&gt;Could you make a minimal sample file where we could reproduce the crash?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 11:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587630#M1515</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-28T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587964#M1516</link>
      <description>Rarely happen, I will get back to this topic as soon as I got that again.</description>
      <pubDate>Wed, 28 Feb 2024 13:56:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12587964#M1516</guid>
      <dc:creator>MehdiZangenehBar</dc:creator>
      <dc:date>2024-02-28T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12588146#M1517</link>
      <description>&lt;P&gt;for me this is only happening in some cases, curiously only when im having more than 10 view tabs, I need to do more tests, at least in the samples that I upload its always crashing, 1 of them cleans, left 1 tab and then crash&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:56:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/12588146#M1517</guid>
      <dc:creator>calberto.cart</dc:creator>
      <dc:date>2024-02-28T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all SME views Script cause scene crash</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/13443260#M1518</link>
      <description>&lt;P&gt;Ok after some time, this issue is solved for me, the problem was from V-Ray, they have&amp;nbsp; updated version 6 and 7 in the nightlies, now I can clean the SME when there are more than 10 tabs.&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="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1492788iF334267BE9CE549A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" alt="0056825a-f8b1-4709-bf8c-d4657d323c6f.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 23:39:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/delete-all-sme-views-script-cause-scene-crash/m-p/13443260#M1518</guid>
      <dc:creator>calberto.cart</dc:creator>
      <dc:date>2025-04-24T23:39:37Z</dc:date>
    </item>
  </channel>
</rss>

