{"action":"created","issue":{"url":"https://api.github.com/repos/mottosso/maya-capture/issues/21","labels_url":"https://api.github.com/repos/mottosso/maya-capture/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mottosso/maya-capture/issues/21/comments","events_url":"https://api.github.com/repos/mottosso/maya-capture/issues/21/events","html_url":"https://github.com/mottosso/maya-capture/issues/21","id":101865101,"number":21,"title":"Undo after capture/snap goes to frame 1 instead of preserving the previous frame.","user":{"login":"BigRoy","id":2439881,"avatar_url":"https://avatars.githubusercontent.com/u/2439881?v=3","gravatar_id":"","url":"https://api.github.com/users/BigRoy","html_url":"https://github.com/BigRoy","followers_url":"https://api.github.com/users/BigRoy/followers","following_url":"https://api.github.com/users/BigRoy/following{/other_user}","gists_url":"https://api.github.com/users/BigRoy/gists{/gist_id}","starred_url":"https://api.github.com/users/BigRoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigRoy/subscriptions","organizations_url":"https://api.github.com/users/BigRoy/orgs","repos_url":"https://api.github.com/users/BigRoy/repos","events_url":"https://api.github.com/users/BigRoy/events{/privacy}","received_events_url":"https://api.github.com/users/BigRoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-19T11:06:24Z","updated_at":"2015-08-19T11:20:54Z","closed_at":null,"body":"The `maya.cmds.playblast` command seems to suffer from an undo bug, see [here](http://forums.cgsociety.org/showthread.php?f=89&t=1296751). Upon undoing the command it'll revert back to frame 1 as opposed to going back to the frame it was before playblasting.\r\n\r\nA workaround/bugfix is to set the current time before calling the playblast command, like so:\r\n\r\n```python\r\nmaya.cmds.currentTime(maya.cmds.currentTime(q=1))\r\n```"},"comment":{"url":"https://api.github.com/repos/mottosso/maya-capture/issues/comments/132552190","html_url":"https://github.com/mottosso/maya-capture/issues/21#issuecomment-132552190","issue_url":"https://api.github.com/repos/mottosso/maya-capture/issues/21","id":132552190,"user":{"login":"mottosso","id":2152766,"avatar_url":"https://avatars.githubusercontent.com/u/2152766?v=3","gravatar_id":"","url":"https://api.github.com/users/mottosso","html_url":"https://github.com/mottosso","followers_url":"https://api.github.com/users/mottosso/followers","following_url":"https://api.github.com/users/mottosso/following{/other_user}","gists_url":"https://api.github.com/users/mottosso/gists{/gist_id}","starred_url":"https://api.github.com/users/mottosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mottosso/subscriptions","organizations_url":"https://api.github.com/users/mottosso/orgs","repos_url":"https://api.github.com/users/mottosso/repos","events_url":"https://api.github.com/users/mottosso/events{/privacy}","received_events_url":"https://api.github.com/users/mottosso/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T11:20:54Z","updated_at":"2015-08-19T11:20:54Z","body":"Would it still revert to frame 1 you think? :O"}}