{"id":12,"date":"2012-06-02T14:42:55","date_gmt":"2012-06-02T14:42:55","guid":{"rendered":"http:\/\/www.dannywynne.com\/blog\/?p=12"},"modified":"2012-06-06T12:15:54","modified_gmt":"2012-06-06T12:15:54","slug":"maya-timeline-markers","status":"publish","type":"post","link":"http:\/\/www.dannywynne.com\/blog\/?p=12","title":{"rendered":"Maya Timeline Markers"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/dannywynne.com\/images\/timeline_markers.JPG\" alt=\"timeline_markers\" \/><br \/>\n<br \/>\nThis script lets you overlay markers on the timeline. Its useful if you need to set keys on different objects  at certain times.<br \/>\nI created a QWidget with a custom paint event which renders a vertical line at a list of positions. Then I installed a couple event filters to create a shift+click context menu over the timeline. I couldn&#8217;t use the widget&#8217;s contextMenuEvent or mousePressEvent or else it would interfere with Maya&#8217;s context menus.<br \/>\n<br \/>\ndownload the script <a href=\"http:\/\/dannywynne.com\/scripts\/timeline_markers.zip\" title=\"timeline_markers\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script lets you overlay markers on the timeline. Its useful if you need to set keys on different objects at certain times. I created a QWidget with a custom paint event which renders a vertical line at a list of positions. Then I installed a couple event filters to create a shift+click context menu [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[3,15,5],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-maya-scripting","category-pyqt","tag-maya","tag-pyqt","tag-python"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12"}],"version-history":[{"count":0,"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dannywynne.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}