<?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: How to change the rotation order xyz to zyx ,but have the same performance? in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699923#M9504</link>
    <description>&lt;P&gt;My bad.&amp;nbsp; I didn't look that closely.&amp;nbsp; That's what I get for sneaking stuff in while at work.&amp;nbsp; LOL!!!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 02:11:48 GMT</pubDate>
    <dc:creator>mcw0</dc:creator>
    <dc:date>2021-10-20T02:11:48Z</dc:date>
    <item>
      <title>How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10689977#M9497</link>
      <description>&lt;P&gt;i change the rotate order xyz to zyx&amp;nbsp; the bone pos changed, but the transform attributes not changed.i just want to change the rotate order&amp;nbsp; and don't change the bone&amp;nbsp;performance&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:56:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10689977#M9497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-15T12:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10691716#M9498</link>
      <description>&lt;P&gt;It is likely that you need to resample the data for another rotation order. In short, what comes to mind, is to use HIK and define XYZ character, then have a characterized copy of the original character with ZYX order joints and use the former as a Source, then Bake skeleton.&lt;/P&gt;&lt;P&gt;If you plan to export it to FBX then there are some settings within the exporter which might reinterpolate those rotations from HIK Quaternion back to Euler.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hamsterHamster_0-1634327580220.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/977880iBCA7E04101113BD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hamsterHamster_0-1634327580220.png" alt="hamsterHamster_0-1634327580220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 19:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10691716#M9498</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-10-15T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10694679#M9499</link>
      <description>&lt;P&gt;thanks your reply; i fund a mel command [xform -p true -roo zxy;] to change the keyframe attribute; but i can't change rotate attribute in each frame.the rotate order attribute seems shared by all the bone animatin .only the select keyframe rotate changed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 05:08:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10694679#M9499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-18T05:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10696203#M9500</link>
      <description>&lt;P&gt;The command is the right one. I just wrote expression that runs through the timeline, unfortunately it doesn't update keyframes. I asked into Maya Programming, waiting for response.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 16:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10696203#M9500</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-10-18T16:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699699#M9501</link>
      <description>&lt;P&gt;You see @Anonymous&amp;nbsp;, wonders happen.&lt;/P&gt;&lt;P&gt;With that great help from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1312415"&gt;@mcw0&lt;/a&gt; the script works.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// resamples animation from one rotation order to another
string $sel[] = `ls -sl` ;

// save current rot order for every object in selection
int $roos[] ;
$i = 0 ;
for ( $s in $sel ) {
    $roos[$i] = `getAttr ($s+".rotateOrder")` ;
    $i++ ;
}

// resample keyframes within the playback range
$start = `playbackOptions -q -min` ;
$end = `playbackOptions -q -max` ;
print("Resampling range: "+ $start +" - "+ $end +"\n") ;
$axis = { "x", "y", "z"} ;
for ( $i = $start; $i &amp;lt;= $end; $i++ ) {
    currentTime -e $i ; 
    for ( $j = 0; $j &amp;lt; size($sel); $j++ ) {
        select -r $sel[$j] ;
        setAttr ($sel[$j]+".rotateOrder") $roos[$j] ;
        xform -p true -roo zxy $sel[$j];      // HERE YOU SET DESIRED ROT ORDER
        for ($a in $axis){
            $val = `getAttr ($sel[$j] +".r"+ $a)` ;
            setKeyframe -at (".r"+ $a) -v $val ;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;See entire discussion &lt;A href="https://forums.autodesk.com/t5/maya-programming/keyframes-update-with-xform/m-p/10696201/highlight/true#M14344" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;And support the idea &lt;A href="https://forums.autodesk.com/t5/maya-ideas/rotation-order-change-with-resample-animation/idi-p/10699697" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 23:09:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699699#M9501</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-10-19T23:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699717#M9502</link>
      <description>&lt;P&gt;I don't know.&amp;nbsp; The original question was about maintaining "performance" and not "pose".&amp;nbsp; Changing the rotation order changes the performance because the interpolation between keyframes will be different.&amp;nbsp; The only solid solution is to bake the animation to the new rotation order.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 23:27:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699717#M9502</guid>
      <dc:creator>mcw0</dc:creator>
      <dc:date>2021-10-19T23:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699753#M9503</link>
      <description>&lt;P&gt;My version of script does exactly that - it bakes every frame. Your example, as I understood, was a little different - it iterates through every existing keyframe.&lt;/P&gt;&lt;P&gt;At least, I resampled some xyz-mocaped rigs in my project and those look easier editable than before, even some gimbal locks seem to be gone, sufficient to offset just one shoulder curve to e.g. get rid of torso-arm penetration, whereas before I had to edit all three axis.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 00:00:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699753#M9503</guid>
      <dc:creator>hamsterHamster</dc:creator>
      <dc:date>2021-10-20T00:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699923#M9504</link>
      <description>&lt;P&gt;My bad.&amp;nbsp; I didn't look that closely.&amp;nbsp; That's what I get for sneaking stuff in while at work.&amp;nbsp; LOL!!!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 02:11:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10699923#M9504</guid>
      <dc:creator>mcw0</dc:creator>
      <dc:date>2021-10-20T02:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the rotation order xyz to zyx ,but have the same performance?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10719770#M9505</link>
      <description>thanks for your script! it's solve my problem! Cheers.</description>
      <pubDate>Thu, 28 Oct 2021 10:34:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-change-the-rotation-order-xyz-to-zyx-but-have-the-same/m-p/10719770#M9505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-28T10:34:41Z</dc:date>
    </item>
  </channel>
</rss>

