Skip to content

Instantly share code, notes, and snippets.

View baku89's full-sized avatar
🍡

Baku 麦 baku89

🍡
View GitHub Profile
/*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* */
/* Copyright 2007-2015 Adobe Systems Incorporated */
/* All Rights Reserved. */
/* */
/* NOTICE: All information contained herein is, and remains the */
/* property of Adobe Systems Incorporated and its suppliers, if */
@baku89
baku89 / render-timelapse-video-in-a-directory.sh
Last active March 24, 2022 06:33
Useful FFMpeg Snippets
for i in *.mp4; \
do ffmpeg -i "$i" \
-c:v prores_ks -profile:v 3 -vendor apl0 -bits_per_mb 8000 -pix_fmt yuv422p10le \
-vf select='not(mod(n\,900))',setpts=N/FRAME_RATE/TB \
-an \
"${i%.*}".mov; \
done
/*
{
"id": "9cwrv2kxip",
"label": "Polyline + Arc",
"icon": "【",
"parameters": [
{
"name": "strokeColor",
"type": "color",
"default": "#282a2e"
/*
{
"id": "9mpi7vhkir",
"label": "Cmd Pen Tool",
"icon": "⌘",
"parameters": [
{
"name": "strokeColor",
"type": "color",
"default": "#282a2e"
@baku89
baku89 / Arc pen
Created September 21, 2021 10:22
/*
{
"id": "hreyajl6hh",
"label": "Arc Pen",
"icon": "ノ",
"parameters": [
{
"name": "strokeColor",
"type": "color",
"default": "#282a2e"
@baku89
baku89 / ram_preview.py
Created June 28, 2021 06:29
RAM Preview.py
# Requires to place Viewport Preview ROP (https://github.com/baku89/nops/blob/main/otls/viewport_preview.hdalc)
# on the OBJ context
def getCurrentNetworkEditorPane():
editors = [pane for pane in hou.ui.paneTabs() if isinstance(pane, hou.NetworkEditor) and pane.isCurrentTab() and pane.pwd().path().startswith("/obj")]
if len(editors):
return editors[0]
pane = getCurrentNetworkEditorPane()
@baku89
baku89 / blue-circle.clj
Last active May 19, 2021 14:28
future_sketches
(background "#E9EDF4")
(style (fill "royalblue")
(circle [50 50] 50)
(text "Code as Data" [150 50]))
@baku89
baku89 / principles_ja.md
Last active May 14, 2021 12:35
Principles for Unclichéd Generative Arts

Don't show off what can be realized with the tool

スペック的にやれることを生かしきらない

  • 3DCGツールで2Dグラフィックスをつくる
  • 動画ソフトで静止画をつくる
  • GPU処理で本当は100万パーティクル出せるところを、あえて5個だけでめっちゃ良い感じに動かす

Try tiresome (but not impossible) expressions

removeprim(0, 0, 0);
vector p0 = point(0, "P", 0);
vector p1 = point(0, "P", 1);
vector mid;
mid.x = p1.x;
mid.y = p0.y;
vector2 calc_angle_range(vector c; vector p0; vector p1) {
vector2 p = set(p0.x, p0.y) - set(c.x, c.y);
vector2 q = set(p1.x, p1.y) - set(c.x, c.y);
float start = atan(p.y, p.x);vector2 calc_angle_range(vector c; vector p0; vector p1) {
vector2 p = set(p0.x, p0.y) - set(c.x, c.y);
vector2 q = set(p1.x, p1.y) - set(c.x, c.y);
float start = atan(p.y, p.x);