Skip to content

Instantly share code, notes, and snippets.

@crydalch
crydalch / compile.adoc
Last active August 29, 2015 14:22
Compile Viewnoir on Linux Mint 17.1

Here are the steps that worked for me, in building Viewnior 1.5 from source.

For whatever reason, I couldn’t just follow the build instructions on the Viewnoir Download page; I kept getting "./configure.ac: line 4: syntax error near unexpected token `261'". But a combination of those and these, and some other searching around, seemed to work.

  1. wget https://github.com/xsisqox/Viewnior/archive/viewnior-1.5.tar.gz

  2. tar xvfz viewnior-1.5.tar.gz

  3. cd Viewnior-viewnior-1.5

  4. sudo apt-get install build-essential intltool libgdk-pixbuf2.0-dev libgtk2.0-dev gnome-common exiv2 libexiv2-dev libgexiv2-2 libgexiv2-dev (I know, probably overkill, but just in case…​)

  5. ./autogen.sh

  6. ./configure

Gnome Classic - Carbon

This is a tweak of the standard Gnome Classic session into a dark one. It modifies the css of gnome-shell theme and the Window List extension. It's still a work in progress, and here are my steps as well as outstanding issues.

System

Here are the versions of everything else that might be good to know:

  • Fedora 20
  • Linux 3.12.6-300
@crydalch
crydalch / fracturepoints.py
Created July 25, 2012 23:47
Fracture Points SOP
#
# A companion SOP to the Points to Fracture shelf tool. Generates points,
# and applies the instance attribute to them.
#
node = hou.pwd()
geo = node.geometry()
# Add code to modify the contents of geo.
if node.parm("pointlist").eval():
@crydalch
crydalch / genfractpts.py
Created July 25, 2012 23:46
Points from Fractured Geometry
#
# This script is to be run as a tool in a Houdini shelf.
#
# Our "global" variables
sel = hou.selectedNodes()[0]
if sel.type().name() != "voronoifracture":
hou.ui.displayMessage("Please select a Voronoi Fracture SOP.", ('Ok',), hou.severityType.Error, title="Wrong type...")
import sys
@crydalch
crydalch / houBatch.py
Created July 24, 2012 00:32
houBatch helper script
"""
A simple script to kick off a certain ROP remotely, optionally
with a given framerange.
Usage: hython path/to/script/houBatch.py /path/to/hipfile /hou/path/to/rop
TODO: Add options for multiple ROPs, hperf.
"""
import hou, sys
@crydalch
crydalch / 50k_shatter.py
Created July 18, 2012 22:49
Houdini hou.perfMon Example
# This is an example script which will load the given hip file and record the performance of two areas (voronoi fracturing, and the bullet sim).
# Run with 'hython 50k_shatter.py'
import hou, sys
# Load the hip file
hou.hipFile.load("massive_bldg.hip")
# Setup (create and start) fracture-only profile & event
profile = hou.perfMon.startProfile("Fracture25Pieces")
@crydalch
crydalch / SOP_FixRBDFractureImport.py
Created June 15, 2012 23:16
Python SOP - Get RBD Fracture Points
# Before this node, use a Partition SOP with $NAME as the rule, and I put a Cache SOP afterwards to cache the result. Thanks to Dan Bodenstein and Jeff Lait for the help in solving this problem.
# This code is called when instances of this SOP cook.
node = hou.pwd()
geo = node.geometry()
# Add code to modify the contents of geo.
allGrps = geo.primGroups()
targetGrps = [x for x in allGrps if node.parm("grpmask").eval() in x.name()]
@crydalch
crydalch / countnodes.py
Created January 30, 2012 08:49
Count Nodes
# A Houdini shelf tool to count the total number of nodes in the current file.
# Opens up a small dialogue window to select the node to count under.
# You can get a nice Python icon by pointing the Icon parameter to $HFS/houdini/help/icons/large/MISC/python_official.png
def countNodes(count, nodes):
for n in nodes:
count += 1
if n.allSubChildren():
countNodes(count, n.allSubChildren())
return count