<?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: Callback event for all scripts loaded in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6004650#M14821</link>
    <description>&lt;P&gt;Hi Stephen, Well, there is no easy way to know exactly because other scripts may also be using the same callback. So it's about the callback order, and this is not easy to determine. I think the real question is about what are you trying to accomplish and why isn't the postSystemStartup enough for whatever task you are trying to run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the OLE availability, in theory it should also be ready by the time your postSystemStartup callback is called. Do you see a circumstance where this is not true?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2016 15:01:07 GMT</pubDate>
    <dc:creator>kevinvandecar</dc:creator>
    <dc:date>2016-01-25T15:01:07Z</dc:date>
    <item>
      <title>Callback event for all scripts loaded</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6001232#M14820</link>
      <description>&lt;P&gt;I am trying to understand the best notification callback to use at the point that ALL startup scripts have loaded - i.e. that 3DSMax has stabilised and&amp;nbsp;is ready to receive (external) commands. From my investigations it would seem that some scripts are still loading after #postSystemStartup fires. The next event would seem to be #filePreOpen, #systemPreReset or #systemPreNew but these require an action on the part of the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another event which fires later?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondarily I would also be able to interrogate the the OLE interface (as set up by registerOLEInterface ) to confirm what functions have been registered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 13:25:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6001232#M14820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-22T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Callback event for all scripts loaded</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6004650#M14821</link>
      <description>&lt;P&gt;Hi Stephen, Well, there is no easy way to know exactly because other scripts may also be using the same callback. So it's about the callback order, and this is not easy to determine. I think the real question is about what are you trying to accomplish and why isn't the postSystemStartup enough for whatever task you are trying to run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the OLE availability, in theory it should also be ready by the time your postSystemStartup callback is called. Do you see a circumstance where this is not true?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 15:01:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6004650#M14821</guid>
      <dc:creator>kevinvandecar</dc:creator>
      <dc:date>2016-01-25T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Callback event for all scripts loaded</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6006804#M14822</link>
      <description>&lt;P&gt;Dear Kevin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main thing I need to know is: how long from launch does it take until the application is "ready"; which in my case means that the OLE interface is set up (and ideally all startup scripts loaded, although the ones required by the OLE scripts will be loaded).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a small script called by various&amp;nbsp;callbacks to simply log the time of the callback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The callback knows if the OLE is set up as I set a global to true immediately after the&amp;nbsp;registerOLEInterface call - i don't know any other way of checking if the OLE interface is reqistered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In all cases the #postSystemStartup callback is reporting that OLE is &lt;U&gt;NOT&lt;/U&gt;&amp;nbsp;yet set up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your first point, surely its the case that&amp;nbsp;scripts don't use the callback, but a callback uses one or more scripts? I would have thought that the order of callbacks was exactly pre-determined otherwise whats the point of them? If you mean the order of scripts called by ONE callback, then I understand. However in this case for nearly all callbacks there is only the one script - mine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/callback-event-for-all-scripts-loaded/m-p/6006804#M14822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-26T15:00:58Z</dc:date>
    </item>
  </channel>
</rss>

