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
# | |
# POPULATE! | |
# | |
import bpy | |
import math | |
from bpy_extras import object_utils | |
from random import randint | |
from math import radians |
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
# | |
# POPULATE! | |
# | |
import bpy | |
import math | |
from bpy_extras import object_utils | |
from random import randint | |
from math import radians |
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 | |
class SetScreenLayout(bpy.types.Operator): | |
"""Switches to the screen layout of the given name.""" | |
bl_idname="screen.set_layout" | |
bl_label="Switch to Screen Layout" | |
layoutNamme=bpy.props.StringProperty() | |
def execute(self,context): | |
bpy.context.window.screen=bpy.data.screens[self.layoutNamme] | |
return{'FINISHED'} | |
def invoke(self,context,event): |
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
// apply this to the PoI of a spot light to point it in the direction of its acceleration vector | |
nextVec = transform.position.valueAtTime(time+0.08)-transform.position.valueAtTime(time); | |
prevVec = transform.position.valueAtTime(time)-transform.position.valueAtTime(time-0.08); | |
theVec = prevVec-nextVec; | |
theVec = theVec * 10; | |
theVec = theVec + transform.position; | |
theVec | |
// apply this to the Particles/sec parameter | |
prevVel = length(thisComp.layer("TEAL").transform.position.valueAtTime(time+0.04) - thisComp.layer("TEAL").transform.position.valueAtTime(time)); |
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
// AE expression to modulate a spotlight's flare brightness | |
// depending on whether the spot is facing into or away | |
// from the camera | |
// h 6/12/2016 | |
// change these to reference your spotlight | |
// and camera as appropriate | |
L = thisComp.layer("Light 1"); | |
C = thisComp.activeCamera; |
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 <Adafruit_NeoPixel.h> | |
#define PIN 3 | |
#define LEDCOUNT 23 | |
#define SPEED 5 | |
const uint8_t PROGMEM gamma[] = { | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, |
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
# Motion export script | |
rad2deg = 180/3.14159265 | |
import bpy | |
import math | |
from math import sqrt | |
sce = bpy.context.scene | |
saveFile = open("/Users/h/Documents/BlenderPlayback.csv","w") |
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
C = thisComp.layer("Camera"); | |
V = C.toWorldVec([0,0,1]); | |
P = toWorld(anchorPoint); | |
lookAt(P, P + V); |
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
# | |
# POPULATE! | |
# | |
import bpy | |
import math | |
from bpy_extras import object_utils | |
from random import randint | |
from math import radians |
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
// | |
// GetSerialPortList.swift | |
// serialTestsIokitSwift | |
// | |
// Created by h on 17/08/2015. | |
// Copyright © 2015 h. All rights reserved. | |
// | |
// Simple function returns array of serial port | |
// paths as Strings | |
// |