This file contains 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 bpy | |
render = bpy.context.scene.render | |
render.use_border = True | |
render.border_min_x = 0 | |
render.border_max_x = 0.01 | |
render.border_min_y = 0 | |
render.border_max_y = 0.01 | |
render.use_crop_to_border = True | |
bpy.context.scene.render.filepath="/tmp/test.png" |
This file contains 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
#include <iostream> | |
#include <assert.h> | |
#include <vector> | |
template<class T> | |
struct Func{}; | |
// std::func replacement without dynamic memory allocation (captures are limited to 48 bytes) | |
// this could be extended to support captures >48 bytes... of course, with a bit more of logic | |
// and some state. |
This file contains 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/bash | |
VIDEO="video.mp4" | |
IMAGE="logo.png" | |
SIZE=200 | |
OUTPUT="output.mp4" | |
OFFSET_X=50 | |
OFFSET_Y=50 | |
while getopts v:i:o:s:x:y: option | |
do case "${option}" |