On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin
.
"""Test of finding Nuke's viewer widget, and intercepting the hardwired "c" shortcut and rewiring it to view the RGB channel | |
""" | |
from PySide import QtGui, QtCore | |
def findviewer(): | |
stack = QtGui.QApplication.topLevelWidgets() | |
viewers = [] | |
while stack: |
set cut_paste_input [stack 0] | |
push $cut_paste_input | |
Group { | |
name PlanarProjection | |
help "<b>Planar Projection</b>\nGenerates 2D coordinates for points in 3D space. Type in 3D point coordinates, or use vertex selection in 3D viewer and click set to pick average of selected points, or set points to set all four points at once. \n\nYou can connect node output to scene together with your pointcloud or geometry and see where your points are located in 3d space. Double click any of them to move it in 3d space like any traditional nuke transform control. \n\nA matrix transform is also generated to be used with RotoPaint, SplineWarp and GridWarp nodes. If you are using matrix in GridWarp, points have to be in clockwise order, pick them one by one! \n\nCommand set points doesn't respect selection order! \n\nCheck out the demo video on my website! Kudos to Ivan Busquets for help with matrix math. \n\n-- developed by Vit Sedlacek 2012 www.vitsedlacek.com \n\n-- Modified by Jed Smith to make calculation time nearly inst |
#!/bin/bash | |
# Arguments can include a quoted string to define the test string to be repeated | |
# If an argument is numbers only, it changes the rate at which to speak (words per minute, default 200) | |
play_all_voices() { | |
local voice | |
local rate=200 | |
local test_string="How are you?" | |
for arg in $@; do | |
if [[ $arg =~ ^[0-9]+$ ]]; then |
On mac:
/usr/local/bin
.wsl --install
sudo apt update && sudo apt upgrade
.ssh-keygen -t rsa -b 4096 -C "[email protected]"
setup
.curl -L http://bit.ly/10hA8iC | bash |
brew install Qt4 | |
brew install openssl | |
brew install cmake | |
git clone https://github.com/PySide/pyside-setup.git --recurse-submodules | |
cd pyside-setup | |
# The following must be executed in a bash shell | |
python setup.py bdist_wheel --ignore-git --qmake=/usr/local/Cellar/qt/4.8.7_2/bin/qmake --openssl=/usr/local/Cellar/openssl/1.0.2h_1/bin/openssl --cmake=/usr/local/Cellar/cmake/3.5.2/bin/cmake |
"""Store function on node | |
Usage example: | |
.. code-block:: | |
# Control node | |
ctrl_node_name = 'MY_SCRIPT_NODE' # if None, store on nuke.root() | |
# Define your functions and add them to the dictionary |
# this function grabs the iso image from the user supplied http location. | |
function get-isoimage{ | |
[CmdletBinding()] | |
param( | |
$uri, | |
$workingfolder | |
) | |
begin{ | |
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$",'$1' | |
$out_file = Join-Path $workingfolder -ChildPath $file_name |