<?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: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6336112#M14553</link>
    <description>&lt;P&gt;My definintion of failure is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="3dsmax_fault.png" alt="3dsmax_fault.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/240655iAD21C0C40BB2C0D1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objects don't have any self intersecting geometry (unless ProBoolean is creating it after multiple merges).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the occurance of the above error the 'source' geometry is deleted and the 'target' geometry becomes the result of the operation. So, you end up with one less item of geometry, breaking the 'count' workaround.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 22:02:37 GMT</pubDate>
    <dc:creator>JasonCampbell</dc:creator>
    <dc:date>2016-05-18T22:02:37Z</dc:date>
    <item>
      <title>[MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6322088#M14548</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to test if&amp;nbsp;a ProBoolean.CreateBooleanObject() call fails?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try something like this;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;result = result=ProBoolean.CreateBooleanObject source target 3 0 0;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It always returns 'OK' even if the merge fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 05:30:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6322088#M14548</guid>
      <dc:creator>JasonCampbell</dc:creator>
      <dc:date>2016-05-12T05:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6334066#M14549</link>
      <description>&lt;P&gt;Jason, the CreateBooleanObject() function returns void hence you always get OK as a result.&lt;/P&gt;
&lt;P&gt;I agree that it would be much more helpful if it returned the new object it created if successful, and undefined it it werent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 15:49:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6334066#M14549</guid>
      <dc:creator>attilaszabo</dc:creator>
      <dc:date>2016-05-18T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6334235#M14550</link>
      <description>&lt;P&gt;Bit of a hack, but you can check the objects.count value before and after the call. If successful, the target node is deleted, so the count will go down by one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 16:13:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6334235#M14550</guid>
      <dc:creator>larryminton</dc:creator>
      <dc:date>2016-05-18T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6335968#M14551</link>
      <description>&lt;P&gt;The problem with counting the objects is that when the boolean fails the target object is being deleted anyway, resulting in dissapearing meshes. So the object count is going down either way.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 21:18:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6335968#M14551</guid>
      <dc:creator>JasonCampbell</dc:creator>
      <dc:date>2016-05-18T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6336011#M14552</link>
      <description>&lt;P&gt;I don't know what your&amp;nbsp;definition of failure is here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the operation succeeded in terms of creating the boolean object? &amp;nbsp;That is, what class is the source node after you make the call and it 'fails'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you select the source object and go to Operands SO mode, are the 2 original objects shown in the Parameters rollout?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 21:31:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6336011#M14552</guid>
      <dc:creator>larryminton</dc:creator>
      <dc:date>2016-05-18T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: [MaxScript] Test if ProBoolean.CreateBooleanObject() fails</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6336112#M14553</link>
      <description>&lt;P&gt;My definintion of failure is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="3dsmax_fault.png" alt="3dsmax_fault.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/240655iAD21C0C40BB2C0D1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objects don't have any self intersecting geometry (unless ProBoolean is creating it after multiple merges).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the occurance of the above error the 'source' geometry is deleted and the 'target' geometry becomes the result of the operation. So, you end up with one less item of geometry, breaking the 'count' workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 22:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-test-if-proboolean-createbooleanobject-fails/m-p/6336112#M14553</guid>
      <dc:creator>JasonCampbell</dc:creator>
      <dc:date>2016-05-18T22:02:37Z</dc:date>
    </item>
  </channel>
</rss>

