This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <root> | |
| <appdef> | |
| <appname>TERMINAL</appname> | |
| <equal>com.apple.Terminal</equal> | |
| </appdef> | |
| <appdef> | |
| <appname>ITERM2</appname> | |
| <equal>com.googlecode.iterm2</equal> | |
| </appdef> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "-------Preferences--------" | |
| set ttyfast | |
| set t_Co=256 | |
| set hidden | |
| set autoread | |
| set history=2000 | |
| set noswapfile | |
| set backspace=start,eol,indent | |
| set ambiwidth=double | |
| set shortmess+=I |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sn = hou.selectedNodes() | |
| for n in sn: | |
| if (len(n.inputs()) is 0) and (len(n.outputs()) is 0): | |
| n.setColor(hou.Color([1,0,0])) | |
| # n.setComment("NO I/O connected.") | |
| # n.setGenericFlag(hou.nodeFlag.DisplayComment,True) | |
| n.setSelected(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homebrewのパッケージ | |
| export PATH=/usr/local/bin:$PATH | |
| # SSHで接続した先で日本語が使えるようにする | |
| export LC_CTYPE=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| # ページャ | |
| export PAGER=/usr/local/bin/vimpager | |
| export MANPAGER=/usr/local/bin/vimpager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| attribwrangle/snippet | |
| [kb] Create range (Run Over:Point) | |
| float range = @ptnum/(@numpt - 1.0); | |
| attribwrangle/snippet | |
| [kb] Create range (Run Over:Primitives) | |
| float range = @primnum/(@numprim - 1.0); | |
| attribwrangle/snippet | |
| [kb] Array example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # usage | |
| # 1 chmod 755 watermark.sh | |
| # 2 ./watermark.sh | |
| for FILE in *.mp4 | |
| do | |
| FILENAME=`echo ${FILE} | sed 's/\.[^\.]*$//'` | |
| ffmpeg -i ${FILENAME}.mp4 -loop 1 -i watermark.png -filter_complex "[1]loop=-1,setpts=N/25/TB[w];[0][w]overlay=shortest=1:x=if(eq(mod(n\,300)\,0)\,sin(random(1))*w\,x):y=if(eq(mod(n\,300)\,0)\,sin(random(1))*h\,y)" sample_${FILENAME}.mp4 | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # usage | |
| # 1 chmod 755 check_duration.sh | |
| # 2 ./check_duration.sh | |
| for FILE in *.mp4 | |
| do | |
| FILENAME=`echo ${FILE} | sed 's/\.[^\.]*$//'` | |
| ffprobe -i ${FILENAME}.mp4 -show_entries format=filename,duration -sexagesimal -v quiet -of csv="p=0" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for node in hou.selectedNodes(): | |
| attribWrangle = node.parent().createNode("attribwrangle") | |
| attribWrangle.setInput(0, node) | |
| attribWrangle.setPosition(node.position() + hou.Vector2(0, -1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| selNodes = hou.selectedNodes() | |
| INPUT_LIMIT = 4 | |
| sop = hou.sopNodeTypeCategory() | |
| if selNodes and all([n.parent().childTypeCategory() == sop for n in selNodes]): | |
| attribWrangle = selNodes[0].parent().createNode("attribwrangle") | |
| pos = [] | |
| for i, node in enumerate(selNodes): | |
| if i < INPUT_LIMIT: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import soptoolutils | |
| soptoolutils.genericTool(kwargs, 'attribwrangle') |