Skip to content

Instantly share code, notes, and snippets.

@Aerilius
Aerilius / ae_textureresizer-README.md
Last active December 1, 2019 14:14
Texture Resizer

Toolbar Editor

With this extension you can create custom toolbars with buttons from any other plugin. You can create toolbars that only contain buttons that you actually use, or combine buttons from different extensions.

You can also quickly add new buttons for ruby commands or useful code snippets without needing to turn the code into a plugin on its own.

Usage:

  • Menu Window → Toolbar Editor
@Aerilius
Aerilius / sips.sh
Created January 17, 2013 17:37
A shell script to translate Apple's SIPS (scriptable image processing system) commands to ImageMagick. It can be used to test software that depends on SIPS (and thus the proprietary Core Image) on any other unixoid system, ie. Linux.
#!/bin/bash
# This script translates some SIPS (scriptable image processing system) commands to ImageMagick.
# http://www.unix.com/man-page/all/1/sips
input=""
output=""
convertoption=""
while :
do
@Aerilius
Aerilius / transformation_matrix_utils.rb
Last active July 4, 2022 08:50
Decomposing a transformation matrix into translation, scaling and Euler angles (using Trimble SketchUp Ruby API)
# Decompose a 4×4 augmented rotation matrix without shear into translation, scaling and rotation components.
#
# @param m [Array(16)] matrix
# @return [Array(3),Array(3),Array(3)] three arrays representing
# the translation vector,
# the scaling factor per axis and
# the Euler rotation angles in radians
def separate_translation_scaling_rotation(m)
m = m.clone
# Extract translation