<?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: INode rotation using Python and MaxPlus in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8504743#M9604</link>
    <description>&lt;P&gt;Hi, thanks for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found a answer how to do it, please look:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            MaxPlus.Core.EvalMAXScript("a = $'"+n.GetName()+"'.pos")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.pivot  = $'"+n.GetName()+"'.center")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.rotation = (quat " + str(float(vers_i[0])) + " "+ str(float(vers_i[1])) + " "+ str(float(vers_i[2])) + " "+ str(float(vers_i[3])) + ")")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.pos = a")&lt;/PRE&gt;
&lt;P&gt;but right know it seams the objcets rotates in strange way, not that i'm expecting.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 13:47:41 GMT</pubDate>
    <dc:creator>mateusz.zelent</dc:creator>
    <dc:date>2019-01-07T13:47:41Z</dc:date>
    <item>
      <title>INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8322202#M9601</link>
      <description>&lt;P&gt;When using &lt;STRONG&gt;INode.SetLocalRotation&lt;/STRONG&gt; or &lt;STRONG&gt;INode.SetWorldRotation&lt;/STRONG&gt; or assigning rotation directly to &lt;STRONG&gt;INode.Rotation&lt;/STRONG&gt;, the rotation gets &lt;EM&gt;added&lt;/EM&gt; to the current rotation which seems somewhat contradictory to the names of the methods.&lt;/P&gt;&lt;P&gt;Is adding rotation supposed to be the intended behavior?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If it is then what is the simplest way of setting the absolute rotation using Python?&lt;BR /&gt;&lt;BR /&gt;And why after just a few times of using any of the aforementioned methods the scale of rotated node starts to increase?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 12:21:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8322202#M9601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-09T12:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8502736#M9602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have you solved this problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 22:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8502736#M9602</guid>
      <dc:creator>mateusz.zelent</dc:creator>
      <dc:date>2019-01-05T22:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8504645#M9603</link>
      <description>&lt;P&gt;Not really.&lt;BR /&gt;It seems to be a bug in 2018/19 versions (probably in earlier ones as well).&lt;BR /&gt;Not surprising considering the quality of Python API.&lt;BR /&gt;And it's 3dsMax so don't hold your breath waiting for the fix.&lt;BR /&gt;As a workaround, you can use &lt;STRONG&gt;INode.SetLocalTM&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:01:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8504645#M9603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-07T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8504743#M9604</link>
      <description>&lt;P&gt;Hi, thanks for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found a answer how to do it, please look:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            MaxPlus.Core.EvalMAXScript("a = $'"+n.GetName()+"'.pos")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.pivot  = $'"+n.GetName()+"'.center")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.rotation = (quat " + str(float(vers_i[0])) + " "+ str(float(vers_i[1])) + " "+ str(float(vers_i[2])) + " "+ str(float(vers_i[3])) + ")")
            MaxPlus.Core.EvalMAXScript("$'"+n.GetName()+"'.pos = a")&lt;/PRE&gt;
&lt;P&gt;but right know it seams the objcets rotates in strange way, not that i'm expecting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8504743#M9604</guid>
      <dc:creator>mateusz.zelent</dc:creator>
      <dc:date>2019-01-07T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8505022#M9605</link>
      <description>&lt;P&gt;Ok, This solution works fine, but we have to remeber that 3dsmax has different order in Quat(x,y,z,w)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 15:24:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8505022#M9605</guid>
      <dc:creator>mateusz.zelent</dc:creator>
      <dc:date>2019-01-07T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: INode rotation using Python and MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8507644#M9606</link>
      <description>&lt;P&gt;Due to the lacking documentation of MaxPlus Python documentation I did not even consider start using it. I am wondering to which SDK functions the SetLocalTM() and SetWorldTM() map to?! With SDK it's unlike clearer using SetNodeTM().&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 15:16:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/inode-rotation-using-python-and-maxplus/m-p/8507644#M9606</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2019-01-08T15:16:30Z</dc:date>
    </item>
  </channel>
</rss>

