<?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: Keyframe Display Issue in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10115445#M12682</link>
    <description>&lt;P&gt;This makes the key approximation more precise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// The script rounds the key times of selected curves/keys to a nearest integer frame.
// get all selected anim curves or anim curves attached to the selection
string $animCurves[] = `keyframe -q -name`;
for ($animCurve in $animCurves) // browse them
    { // get all selected keys at this curve
    float $thisKeys[] = `keyframe -q -sl $animCurve`;
    if (!size($thisKeys)) // if no keys selected get all keys
        $thisKeys = `keyframe -q $animCurve`;
    for ($keys in $thisKeys) // browse the keys
        {
        if (`fmod $keys 1` != 0) // if the keys have decimal places move them to the rounded keytime
            {
            if (`fmod $keys 1` &amp;lt;= 0.5)
                keyframe -e -t $keys -iub true -a -o over -timeChange (floor($keys)) $animCurve;
            else keyframe -e -t $keys -iub true -a -o over -timeChange (ceil($keys)) $animCurve;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 20:20:16 GMT</pubDate>
    <dc:creator>hamsterHamster</dc:creator>
    <dc:date>2021-02-26T20:20:16Z</dc:date>
    <item>
      <title>Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10110837#M12677</link>
      <description>&lt;P&gt;Hi, How do I make the keyframes to show on the actual frame? It seems they are all over the place, I need them placed exactly on the the number, now it shows as if there are in between half frames etc which makes it very difficult to move or select. Do I need to change something in the settings? Please advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="de.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/885393iADE3BFA224D585E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="de.png" alt="de.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 11:48:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10110837#M12677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-25T11:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10111583#M12678</link>
      <description>&lt;P&gt;Also to mention that the issue originates from the fact that somewhere along the project I accidentally converted the scene from 24fps to 30fps without keeping the frames at position, and now I have all these in between frames which I cannot control and its very frustrating. Is there a way to get the frames back to normal, please help. Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:29:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10111583#M12678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-25T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10112079#M12679</link>
      <description>&lt;P&gt;What comes to mind is either you move all the keyframes in the GraphEditor/DopeSheet sideways forth-back with the TimeSnap option enabled, and correct some keys that jumped to the same frame (the animation slightly alters ) OR do Edit&amp;gt;Keys&amp;gt;Bake Simulation (you'll have the same animation with bunch of keys and those decimal frame keys, which you can partially fix with SmartBake). Both ways involve the manual intervention.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10112079#M12679</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-02-25T19:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10113762#M12680</link>
      <description>&lt;P&gt;Hi and thank you for your reply, what you proposed works but as you said will require manual work, I found this script which I think does the job as it moves the keyframes to whole frames.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// get all selected anim curves or anim curves attached to the selection&lt;/SPAN&gt;&lt;SPAN&gt; string $animCurves[] = `keyframe -q -name`; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; ($animCurve in $animCurves) &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// browse them&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// get all selected keys at this curve&lt;/SPAN&gt;&lt;SPAN&gt; float $thisKeys[] = `keyframe -q -sl $animCurve`; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (!size($thisKeys)) &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// if no keys selected get all keys&lt;/SPAN&gt;&lt;SPAN&gt; $thisKeys = `keyframe -q $animCurve`; &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; ($keys in $thisKeys) &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// browse the keys&lt;/SPAN&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (`fmod $keys &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;` != &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class="hljs-comment"&gt;// if the keys have decimal places move them to the rounded keytime&lt;/SPAN&gt;&lt;SPAN&gt; keyframe -e -t $keys -iub &lt;/SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt; -a -o over -timeChange (floor($keys)) $animCurve; } } }&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10113762#M12680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-26T10:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10113805#M12681</link>
      <description>&lt;P&gt;Ok, as I read from code, it moves all keys backwards, even those that are .99, so you will have a slight animation change. It is the same as I described in the first method, you still need to select animcurves.&lt;/P&gt;&lt;P&gt;Later today I might rewrite this script so it moves keys to the nearest frame.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 11:01:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10113805#M12681</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-02-26T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Keyframe Display Issue</title>
      <link>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10115445#M12682</link>
      <description>&lt;P&gt;This makes the key approximation more precise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// The script rounds the key times of selected curves/keys to a nearest integer frame.
// get all selected anim curves or anim curves attached to the selection
string $animCurves[] = `keyframe -q -name`;
for ($animCurve in $animCurves) // browse them
    { // get all selected keys at this curve
    float $thisKeys[] = `keyframe -q -sl $animCurve`;
    if (!size($thisKeys)) // if no keys selected get all keys
        $thisKeys = `keyframe -q $animCurve`;
    for ($keys in $thisKeys) // browse the keys
        {
        if (`fmod $keys 1` != 0) // if the keys have decimal places move them to the rounded keytime
            {
            if (`fmod $keys 1` &amp;lt;= 0.5)
                keyframe -e -t $keys -iub true -a -o over -timeChange (floor($keys)) $animCurve;
            else keyframe -e -t $keys -iub true -a -o over -timeChange (ceil($keys)) $animCurve;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 20:20:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/keyframe-display-issue/m-p/10115445#M12682</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-02-26T20:20:16Z</dc:date>
    </item>
  </channel>
</rss>

