<?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 Converting plugin from Max5 in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-plugin-from-max5/m-p/4290354#M17153</link>
    <description>Hi all, I am trying to convert a proprietary plugin that was written in vs2003 and 3ds max 5 sdk. It uses character studio headers as well.&lt;BR /&gt;&lt;BR /&gt;Now it compiles currently but it fails to get the animation data, can someone give me a short list of things that changed since the max5 SDK? or is the list too big?&lt;BR /&gt;&lt;BR /&gt;I have something like this and I believe it fails because GEN_DERIVOB_CLASS_ID is deprecated&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;Modifier* GameExporter::GetPhysiqueMod(INode &amp;amp;node)&lt;BR /&gt;{&lt;BR /&gt; Object *pObj = node.GetObjectRef();&lt;BR /&gt;&lt;BR /&gt; if(pObj)&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Got inside pObj", L"", MB_OK);&lt;BR /&gt;&lt;BR /&gt; auto T = pObj-&amp;gt;SuperClassID();&lt;BR /&gt;&lt;BR /&gt; std::wstringstream ss; ss &amp;lt;&amp;lt; T;&lt;BR /&gt; std::wstring ss2 = ss.str();&lt;BR /&gt; MessageBox(0, ss2.c_str(), L"", MB_OK); //prints 16 0x10&lt;BR /&gt;&lt;BR /&gt; while(T == GEN_DERIVOB_CLASS_ID)&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside while loop", L"", MB_OK);&lt;BR /&gt;&lt;BR /&gt; int i = 0;&lt;BR /&gt; IDerivedObject *pDerivedObj = static_cast&amp;lt;IDerivedObject*&amp;gt;(pObj);&lt;BR /&gt; &lt;BR /&gt; while (i &amp;lt; pDerivedObj-&amp;gt;NumModifiers ())&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside second while loop", L"", MB_OK);&lt;BR /&gt; Modifier* pMod = pDerivedObj-&amp;gt;GetModifier (i++);&lt;BR /&gt;&lt;BR /&gt; if (pMod-&amp;gt;ClassID () == Class_ID (PHYSIQUE_CLASS_ID_A, PHYSIQUE_CLASS_ID_B))&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside that last if", L"", MB_OK);&lt;BR /&gt; return pMod;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; pObj = pDerivedObj-&amp;gt;GetObjRef ();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; return NULL;&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate any help thanks.</description>
    <pubDate>Thu, 02 May 2013 17:40:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-02T17:40:12Z</dc:date>
    <item>
      <title>Converting plugin from Max5</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-plugin-from-max5/m-p/4290354#M17153</link>
      <description>Hi all, I am trying to convert a proprietary plugin that was written in vs2003 and 3ds max 5 sdk. It uses character studio headers as well.&lt;BR /&gt;&lt;BR /&gt;Now it compiles currently but it fails to get the animation data, can someone give me a short list of things that changed since the max5 SDK? or is the list too big?&lt;BR /&gt;&lt;BR /&gt;I have something like this and I believe it fails because GEN_DERIVOB_CLASS_ID is deprecated&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;Modifier* GameExporter::GetPhysiqueMod(INode &amp;amp;node)&lt;BR /&gt;{&lt;BR /&gt; Object *pObj = node.GetObjectRef();&lt;BR /&gt;&lt;BR /&gt; if(pObj)&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Got inside pObj", L"", MB_OK);&lt;BR /&gt;&lt;BR /&gt; auto T = pObj-&amp;gt;SuperClassID();&lt;BR /&gt;&lt;BR /&gt; std::wstringstream ss; ss &amp;lt;&amp;lt; T;&lt;BR /&gt; std::wstring ss2 = ss.str();&lt;BR /&gt; MessageBox(0, ss2.c_str(), L"", MB_OK); //prints 16 0x10&lt;BR /&gt;&lt;BR /&gt; while(T == GEN_DERIVOB_CLASS_ID)&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside while loop", L"", MB_OK);&lt;BR /&gt;&lt;BR /&gt; int i = 0;&lt;BR /&gt; IDerivedObject *pDerivedObj = static_cast&amp;lt;IDerivedObject*&amp;gt;(pObj);&lt;BR /&gt; &lt;BR /&gt; while (i &amp;lt; pDerivedObj-&amp;gt;NumModifiers ())&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside second while loop", L"", MB_OK);&lt;BR /&gt; Modifier* pMod = pDerivedObj-&amp;gt;GetModifier (i++);&lt;BR /&gt;&lt;BR /&gt; if (pMod-&amp;gt;ClassID () == Class_ID (PHYSIQUE_CLASS_ID_A, PHYSIQUE_CLASS_ID_B))&lt;BR /&gt; {&lt;BR /&gt; MessageBox(0, L"Inside that last if", L"", MB_OK);&lt;BR /&gt; return pMod;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; pObj = pDerivedObj-&amp;gt;GetObjRef ();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; return NULL;&lt;BR /&gt;}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate any help thanks.</description>
      <pubDate>Thu, 02 May 2013 17:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-plugin-from-max5/m-p/4290354#M17153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-02T17:40:12Z</dc:date>
    </item>
  </channel>
</rss>

