Skip to content

Instantly share code, notes, and snippets.

View oliviano's full-sized avatar

Olivier Jean oliviano

  • New Zealand - Waiheke Island
View GitHub Profile
## AE RENDER COMMANDS ##
#### EXAMPLE BATCH FILE ####
Place this batch file in the folder where you Ae Projects are and it will prompt you a list of projects and let you select the desired project to be sent for rendering.
```
REM Render AE Projects from cmd by Olivier Jean.
REM Will render AE project found in current folder, allowing user to select which project to render.
@echo off
REM The path to the aerender.exe
// Opacity ON/OFF everyframe
t = timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false);
t%2*100
// Color Ramp ( HSV ) across time. ( here hardcoded to 1200)
t = timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false)
a = [t/1200,0.5,0.5,1];
c = hslToRgb(a);
c
# remote trigger cam schnap scripts:
op('/camSchnappr/camSchnappr/local/macros/movePoint').run('tab',fromOP=op('/camSchnappr/camSchnappr'))
https://forum.derivative.ca/t/complex-mapping-setup-can-touchdesigner-do-it/8363/17
############################
######## CONFIG.TXT ########
$:cd boot
$:sudo nano config.txt
# SDTV
sdtv_mode
Pal = 2
Ntsc = 0
# Netstat List Process.exe name + IP's associated with it
netstat -a -o -n -b
#traceroute
traceroute ipaddress or domainname.com
# ipconfig
ipconfig
ipconfig /a { list all details including DHCP )
# Left Hand vs Right Hand
In both coordinate system:
thumb is x -
2nd Finger is Y -
index is Z -
#Left hand to right hand convertion ( and vice versa )
we simply need to invert Z coordinate
# Dialog Menus
a = ui.messageBox('Please select:', 'Buttons:', buttons=['a', 'b', 'c'])
print(str(a))
#ui.messageBox('Results', 'You seleacted item: ' + str(a))
# Select Container expression:
for UI containers page A,B,C,D, we use the output chop of a radio UI , the value (int) is used to as the index of a list.
['pageA', 'pageB', 'pageC', 'pageD'][int(op('nPageSelect')['Value'])]
m = tdu.Matrix()
m.translate(5, 0, 0)
m.rotate(0, 45, 0)
op('someNode').store(‘xformMat’, m)
and in the node parameter you would put:
op('someNode').fetch(‘xformMat’)
#from SnL Project:
@oliviano
oliviano / ffmpeg
Last active June 14, 2020 00:34
ffmpeg flags
HAP Chunk:
ffmpeg -framerate 60 -f image2 -i %07d.png -vcodec hap -chunks 16 hap.mov
ffmpeg -i yourSourceFile.mov -c:v hap outputName.mov
ffmpeg -i yourSourceFile.mov -c:v hap -format hap_alpha outputName.mov
ffmpeg -i yourSourceFile.mov -c:v hap -format hap_q outputName.mov
-chunks N (default is 1; N is a number from 1-64 that does not exceed the number of CPU cores in the playback system)
ffmpeg -i yourSourceFile.mov -c:v hap -format hap_q -chunks 4 outputName.mov
@oliviano
oliviano / squiggle
Last active October 19, 2019 23:36
Singapore Squiggle
#mainly labjack stuff.
#open device with socket.
import socket
sock = socket.socket()
sock.connect(("192.168.1.207", 502))
sock.close()
#LJM lib open (any)
>>> from labjack import ljm