<?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: C++ PivotMode in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560971#M1522</link>
    <description>&lt;P&gt;Thx Denis, was just a minor thing.&lt;/P&gt;&lt;P&gt;Is now working with the mxs - when I find time, I'll check it again.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 22:40:19 GMT</pubDate>
    <dc:creator>istan</dc:creator>
    <dc:date>2024-02-14T22:40:19Z</dc:date>
    <item>
      <title>C++ PivotMode</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560307#M1519</link>
      <description>&lt;P&gt;I got another one: How can I set the Viewport Pivot-Mode from C++?&lt;/P&gt;&lt;P&gt;In MXS listener I see: macros.run "Tools" "PivotMode_Toggle" -- when pressing the &amp;lt;INS&amp;gt; button on an selected object.&lt;/P&gt;&lt;P&gt;In an old Interface7() I found something, but it does not work.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560307#M1519</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2024-02-14T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: C++ PivotMode</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560402#M1520</link>
      <description>&lt;P&gt;Solved. Using "maxops.pivotmode".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: found in the good old sparks message archive &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560402#M1520</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2024-02-14T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: C++ PivotMode</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560515#M1521</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/203084"&gt;@istan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I got another one: How can I set the Viewport Pivot-Mode from C++?&lt;/P&gt;&lt;P&gt;In an old Interface7() I found something, but it does not work.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What is wrong with&amp;nbsp;&lt;STRONG&gt;Interface7::GetPivotMode &lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Never had a problem with it...&lt;/P&gt;&lt;P&gt;Here is the code from my library... (looks like pseudo, but it should make sense &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;)&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;def_visible_function(getPivotMode)
{
	check_arg_count_with_keys(getPivotMode, 0, count);
	auto mode = mxs_ip(7)-&amp;gt;GetPivotMode();
	bool asname = is_true_key(name);

	if (asname)
	{
		switch (mode)
		{
		case PIV_NONE:				return n_none;
		case PIV_PIVOT_ONLY:		return n_pivot;
		case PIV_OBJECT_ONLY:		return n_object;
		case PIV_HIERARCHY_ONLY:	return cust_name(hierarchy);
		}
		return_undefined;
	}

	return int_value(mode);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 18:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560515#M1521</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-02-14T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: C++ PivotMode</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560971#M1522</link>
      <description>&lt;P&gt;Thx Denis, was just a minor thing.&lt;/P&gt;&lt;P&gt;Is now working with the mxs - when I find time, I'll check it again.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 22:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/c-pivotmode/m-p/12560971#M1522</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2024-02-14T22:40:19Z</dc:date>
    </item>
  </channel>
</rss>

