Skip to content

Instantly share code, notes, and snippets.

@RH2
RH2 / gist:076f41ea60366f31a728d03bb678b1f3
Created February 24, 2019 01:31
work in progress ue4 export
#ue4export header version 0.1
#last tested with b-v2.79 ue4export-v0.2.1
import bpy
import datetime
S_time = datetime.datetime.now()
print("---RUNNING-UE4 ::: "+str(S_time)+"---")
ActionList=['M4_ADS_RELOAD']
#ActionList=[
<!DOCTYPE html>
<html>
<head>
<title>Richard Attempts To Make Veronoi Diagrams</title>
</head>
<body>
</body>
<script type="text/javascript">
var canvas = document.createElement("canvas")
var ctx = canvas.getContext('2d')
int abs(int a){
if (a<0){
return a*-1;
}
}
float sinTable(int a){
float p = 0;
if(a=0){p+= 0;}
else if(a=0){p+= 0;}
else if(a=1){p+= 0.0174;}
@RH2
RH2 / Clock.html
Created January 14, 2017 03:36
For Santi
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Minute Hour Overlap</title>
<style media="screen">
body{
font-family: sans-serif;
}
.total{
<style>
.userImage:{
height:100px;
}
</style>
<div id="photo-container" class="userImage">
<html>
<head>
<title></title>
<style type="text/css">
.printBackground{
-webkit-print-color-adjust: exact;
}
body{
font-family: sans-serif;
background-color: #efefef;
@RH2
RH2 / mship.js
Created October 14, 2015 02:44
fun
var defs = {
teamColor: ["#ff4444", "#00aaff"],
frozenSprite: [193, 86, 11, 19],
buttons: {
"fighter": [4, 345, 64, 64],
"speed": [132, 345, 64, 64],
"life": [68, 345, 64, 64],
@RH2
RH2 / gist:2c8bbda423c29da43cea
Created February 20, 2015 19:05
play up tools // "instantiate"
// A modified script based on one created by PlayUp Tools - www.playuptools.com
//source at https://github.com/RH2/TD_B3D-UDK/tree/Unity feel free to fork and improve/expand this plugin ^__^
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
using System.Text;
using System;
import bpy
import mathutils
import random
import copy
print("running")
a=mathutils.Color()
a.hsv=[0.2,0,1]
D=bpy.data
@RH2
RH2 / gist:ecf0536fd726f8a5481c
Created December 7, 2014 08:55
vertical bouncing lines in boundary : FICTIONAL UI GLYPH
<html>
<head>
<title></title>
<style type="text/css">
body,html{
background-color: hsl(0,0%,50%);
margin:0px;
padding: 0px;
}
canvas{