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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 292
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 293
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 294
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 295
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 296
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 297
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 298
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 299
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 300
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-content/plugins/simple-file-downloader/simple-file-downloader.php on line 301
#! /opt/thefoundry/nuke/Nuke11.2v5/libnuke-11.2.5.so -nx
version 11.2 v5
Gizmo {
inputs 2
addUserKnob {20 User}
addUserKnob {26 wiki l > T "calculates and normalizes the distance between two 3d points\t"}
addUserKnob {26 ""}
addUserKnob {7 distance R 0 1000}
distance {{sqrt(pow(input0.translate.x-input1.translate.x,2)+pow(input0.translate.y-input1.translate.y,2)+pow(input0.translate.z-input1.translate.z,2))}}
addUserKnob {7 normalized_distance}
addUserKnob {26 ""}
addUserKnob {22 normalize_distance T "#IMPORTS\nimport random\nimport math\n\nNODEA = nuke.thisNode().input(0)\nNODEB = nuke.thisNode().input(1)\n\n#DEFINITIONS \t\n\ndef calculate_distance_between_two_points(a,b):\n\n distance = math.sqrt(math.pow(a\[0]-b\[0],2) + math.pow(a\[1]-b\[1],2) + math.pow(a\[2]-b\[2],2))\n\n return distance \n\n\ndef calculate_distances_iteratively(camera,axis):\n\n first = int(nuke.Root().knob('first_frame').getValue())\n last = int(nuke.Root().knob('last_frame').getValue())+1\n frame = first\n \n distances = \[]\n \n\n while frame < last:\n \n translate_a = camera\['translate'].valueAt(frame)\n translate_b = axis\['translate'].valueAt(frame)\n\n temp_distance = calculate_distance_between_two_points(translate_a,translate_b)\n distances.append(temp_distance)\n\n frame += 1\n\n return distances\n\n\ndef normalize_values(ls):\n maxvalue = max(ls)\n normalize_values = \[]\n for i in ls:\n temp = i / maxvalue\n normalize_values.append(temp)\n\n return normalize_values\n\ndef genereate_curve(ls):\n first = int(nuke.Root().knob('first_frame').getValue())\n last = int(nuke.Root().knob('last_frame').getValue())+1\n frame = first\n count = 0\n\n while frame < last:\n\tnuke.thisNode()\['normalized_distance'].setAnimated()\n \tnuke.thisNode()\['normalized_distance'].setValueAt(ls\[count],frame)\n \tcount +=1\n \tframe +=1\n\n\ndef main_function():\n\tif NODEA == None:\n\t\tnuke.message(\"Please, conect a Camera and an Axis nodes to the corresponding inputs\")\n\t\treturn\n\telif NODEB == None:\n\t\tnuke.message(\"Please, conect a Camera and an Axis nodes to the corresponding inputs\")\n\t\treturn\n\telse:\t\n\t genereate_curve(normalize_values(calculate_distances_iteratively(NODEA,NODEB)))\n\n\nmain_function() \n\n\n\n\n\n\n\n\n" +STARTLINE}
addUserKnob {22 reset_curve -STARTLINE T "nuke.thisNode()\['normalized_distance'].setValue(0)\nnuke.thisNode()\['normalized_distance'].clearAnimated()"}
addUserKnob {26 ""}
addUserKnob {26 author l "" +STARTLINE T "bmc 2019"}
}
Input {
inputs 0
name inputaxis
label "\[value number]"
xpos -10
ypos 66
number 1
}
Output {
inputs 0
name Output1
xpos -92
ypos 222
}
Input {
inputs 0
name inputcam
label "\[value number]"
selected true
xpos -203
ypos 65
}
end_group
Notice: ob_flush(): failed to flush buffer. No buffer to flush in /home2/wacggq0abkde/public_html/wp-content/plugins/simple-file-downloader/simple-file-downloader.php on line 325