Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cycloneslider domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/wacggq0abkde/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cartel domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/wacggq0abkde/public_html/wp-includes/functions.php on line 6114

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893

Warning: Cannot modify header information - headers already sent by (output started at /home2/wacggq0abkde/public_html/wp-includes/functions.php:6114) in /home2/wacggq0abkde/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":2020,"date":"2016-11-20T14:43:10","date_gmt":"2016-11-20T13:43:10","guid":{"rendered":"http:\/\/boris-mc.com\/?p=2020"},"modified":"2019-04-25T17:22:48","modified_gmt":"2019-04-25T16:22:48","slug":"framehold-to-current-frame","status":"publish","type":"post","link":"https:\/\/boris-mc.com\/?p=2020","title":{"rendered":"FRAMEHOLD FROM CURRENT FRAME"},"content":{"rendered":"
\n
\n

tl;dr:<\/strong>A useful tweak to the “FrameHold” node that set by default its “frame” knob to the current frame in the timeline.<\/p>\n<\/div><\/div>\n

\n
By the time I\u00b4m writing this, probably everyone has its own version of such a simple, yet day-to-day usefull tweak<\/strong> of a tool. Nonetheless, a couple of weeks ago a college of mine asked me to modify the “FrameHold” node so that, whenever we create one, it gets its “first_frame” knob automatically set to the frame in the timeline it is created. This imply some<\/em> people could still benefit from reading this :)<\/div>\n
<\/div><\/div>\n
\n
My implementation of such a thing consists of a mini function that is passed to an “addOnUserCreate”<\/strong> callback as callable argument whenever a “FrameHold” node is created.<\/div>\n
<\/div>\n
<\/div><\/div>\n<\/div>\n
\n

important<\/strong>: make sure to copy this code somewhere in your meny.py file to make it work. Enjoy!<\/p>\n<\/div>\n

<\/div><\/div><\/div>\n
\n<\/div>\n
<\/div>\n
<\/div>\n
snippet<\/strong><\/h6>\n
.__autor__ Boris Martinez \r\n\r\n# function to be passed later on to a addOnUserCreate callback.\r\ndef frame_hold_to_frame():\r\n    node = nuke.thisNode()\r\n    curr_frame = nuke.frame()\r\n    frame = node['first_frame'].setValue(curr_frame)\r\n\treturn curr_frame\r\n# addOnUserCreate callback.\r\nnuke.addOnUserCreate(frame_hold_to_frame,nodeClass ="FrameHold")\r\n<\/pre><\/div>\n
<\/div>\n
<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

snippet<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,47,48,49],"tags":[],"class_list":["post-2020","post","type-post","status-publish","format-standard","hentry","category-begginer","category-nuke","category-python","category-scripting"],"_links":{"self":[{"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boris-mc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2020"}],"version-history":[{"count":9,"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020\/revisions"}],"predecessor-version":[{"id":2552,"href":"https:\/\/boris-mc.com\/index.php?rest_route=\/wp\/v2\/posts\/2020\/revisions\/2552"}],"wp:attachment":[{"href":"https:\/\/boris-mc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boris-mc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boris-mc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}