<?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 pathAnimation command breaks undo for previous commands (repro steps included) in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/pathanimation-command-breaks-undo-for-previous-commands-repro/m-p/10117899#M4677</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In script, commands executed before a pathAnimation command will be lost to the undo stack. (pathAnimation is the command used to attach an object to a motion path)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Repro steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. create a new scene&lt;/P&gt;&lt;P&gt;2. create a curve&lt;/P&gt;&lt;P&gt;3. run this script (this is python, but it also happens in MEL):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import maya.cmds as cmds
new_sphere = cmds.polySphere()
motion_path = cmds.pathAnimation(new_sphere, curve='curve1')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. undo with Edit&amp;gt;undo (or control Z)&lt;BR /&gt;5. Observe that the creation of the sphere (command executed before pathAnimation) is not removed in the undo operation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I may be doing something wrong haha, but this issue seems pretty easy to reproduce. I'm on Maya 2018.6, this may have been solved since then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2021 05:52:38 GMT</pubDate>
    <dc:creator>osidedan</dc:creator>
    <dc:date>2021-02-28T05:52:38Z</dc:date>
    <item>
      <title>pathAnimation command breaks undo for previous commands (repro steps included)</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/pathanimation-command-breaks-undo-for-previous-commands-repro/m-p/10117899#M4677</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In script, commands executed before a pathAnimation command will be lost to the undo stack. (pathAnimation is the command used to attach an object to a motion path)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Repro steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. create a new scene&lt;/P&gt;&lt;P&gt;2. create a curve&lt;/P&gt;&lt;P&gt;3. run this script (this is python, but it also happens in MEL):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import maya.cmds as cmds
new_sphere = cmds.polySphere()
motion_path = cmds.pathAnimation(new_sphere, curve='curve1')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. undo with Edit&amp;gt;undo (or control Z)&lt;BR /&gt;5. Observe that the creation of the sphere (command executed before pathAnimation) is not removed in the undo operation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I may be doing something wrong haha, but this issue seems pretty easy to reproduce. I'm on Maya 2018.6, this may have been solved since then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 05:52:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/pathanimation-command-breaks-undo-for-previous-commands-repro/m-p/10117899#M4677</guid>
      <dc:creator>osidedan</dc:creator>
      <dc:date>2021-02-28T05:52:38Z</dc:date>
    </item>
  </channel>
</rss>

