<?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 NumSelKeys and GetKeyIndex doesnt work on pos.controller in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575885#M16596</link>
    <description>Position is a compound controller - you'll need to access each constituent controller to get those values. Although you may see (for example) 5 keys in the Trackbar, there may be different combinations of the sub-controller keys i.e. if the move on a specific key only affects the X controller there may not be a key (on that frame) for the Y and Z controllers.&lt;BR /&gt;
numselKeys $.pos.controller.x_Position.controller --shows 5&lt;BR /&gt;
numselKeys $.pos.controller.y_Position.controller --shows 4&lt;BR /&gt;
numselKeys $.pos.controller.z_Position.controller --shows 4&lt;BR /&gt;
That's why numSelKeys can't return a value for the whole controller, but selecting them works because it CAN select all the sub-controller keys within the interval.&lt;BR /&gt;&lt;BR /&gt;[edit] Same for getKeyIndex - the keys are on the sub-controllers, not the pos controller [/edit]</description>
    <pubDate>Wed, 30 Oct 2013 15:38:44 GMT</pubDate>
    <dc:creator>Steve_Curley</dc:creator>
    <dc:date>2013-10-30T15:38:44Z</dc:date>
    <item>
      <title>MaxScript NumSelKeys and GetKeyIndex doesnt work on pos.controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575435#M16594</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of all - sorry for my bad english. Im from Germany.&lt;/P&gt;&lt;P&gt;I use 3ds Max 2014 64bit on Windows 7 Professional 64bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At the moment i have some troubles with the NumSelKeys and GetKeyIndex - functions.&lt;BR /&gt;These both functions work fine on height.controller and so on, but if you use it on pos.controller the listener always gives "0" as answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;random object in scene and selected&lt;/LI&gt;&lt;LI&gt;there are some Frames (position-changing) betwenn 0f and 1000f&lt;/LI&gt;&lt;LI&gt;selectkeys $.pos.controller (interval 0 1000)&lt;/LI&gt;&lt;LI&gt;--&amp;gt; the key between f0 and f1000 are selected perfectly&lt;/LI&gt;&lt;LI&gt;numselkeys $.pos.controller&lt;/LI&gt;&lt;LI&gt;--&amp;gt; listener: "0" regardless how many keys are selected&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Same Problem with GetKeyIndex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;getkeyindex $.pos.controller 19 --&amp;gt; listener: "0"&lt;/LI&gt;&lt;LI&gt;but in the scene there is on Time 19 a position-changing frame&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Maybe there is a problem with indexing on the pos.controller in 3ds Max???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 13:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575435#M16594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: MaxScript NumSelKeys and GetKeyIndex doesnt work on pos.controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575885#M16596</link>
      <description>Position is a compound controller - you'll need to access each constituent controller to get those values. Although you may see (for example) 5 keys in the Trackbar, there may be different combinations of the sub-controller keys i.e. if the move on a specific key only affects the X controller there may not be a key (on that frame) for the Y and Z controllers.&lt;BR /&gt;
numselKeys $.pos.controller.x_Position.controller --shows 5&lt;BR /&gt;
numselKeys $.pos.controller.y_Position.controller --shows 4&lt;BR /&gt;
numselKeys $.pos.controller.z_Position.controller --shows 4&lt;BR /&gt;
That's why numSelKeys can't return a value for the whole controller, but selecting them works because it CAN select all the sub-controller keys within the interval.&lt;BR /&gt;&lt;BR /&gt;[edit] Same for getKeyIndex - the keys are on the sub-controllers, not the pos controller [/edit]</description>
      <pubDate>Wed, 30 Oct 2013 15:38:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575885#M16596</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2013-10-30T15:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: MaxScript NumSelKeys and GetKeyIndex doesnt work on pos.controller</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575935#M16597</link>
      <description>&lt;P&gt;interesting fact... never knew that this is a "special" controller.&lt;/P&gt;&lt;P&gt;anyways... thank you for ur response&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/maxscript-numselkeys-and-getkeyindex-doesnt-work-on-pos/m-p/4575935#M16597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T15:44:31Z</dc:date>
    </item>
  </channel>
</rss>

