Tag: python

Blender: Automatic Armature Generation

Blender: Automatic Armature Generation

Continuing the marathon of Blender add-ons this time I’ve prepared an automatic armature generation script using only very roughly hand-assigned vertex groups as hints. You can judge the results of my endeavor by watching the tutorial video below and test the new functionality right away by downloading the script directly […]

Blender: Place Object on Surface Add-On

Blender: Place Object on Surface Add-On

There’s yet another fine addition to my blender-addons repository on GitHub. The object_place_on_surface.py operator allows to easily place selected object on designated surface (object with the name… surprise, surprise… “surface”) by simply placing the 3D cursor at target location and pressing the P key on the keyboard. Objects are placed […]

Lightning Arcs

Lightning Arcs

You will find a new script in my Blender Addons repository. It’s called lightning_arcs.py and builds on top of the Blender Laplacian Lightning plugin to create configurable arcs of lightning between particles of an object. Three empty objects have to be present in the scene – ELorigin, ELground and ARCheight. […]

Union Loose Parts

Union Loose Parts

In Blender, having greebles consisting of multiple loose parts can pose a problem when trying to warp them into shape of an arbitrary surface using modifiers such as Curve, Lattice or ShrinkWrap. The result pictured in the back of the scene above shows how loose parts tend to detach from […]

dirsnap: compare longitudinal directory tree snapshots

dirsnap: compare longitudinal directory tree snapshots

This subject seems to be a recurring question: http://superuser.com/questions/48916/how-best-to-compare-huge-directory-trees http://serverfault.com/questions/39534/best-way-to-compare-diff-a-full-directory-structure As much as I appreciate existing solutions, they do not perform precisely what is requested and therefore can be described rather as workarounds. What I would like to present in this post is a utility capable of 1) creation of […]

Fast Discrete Approximation of Natural Neighbor Interpolation in 3D

Fast Discrete Approximation of Natural Neighbor Interpolation in 3D

Natural Neighbor is an interpolation scheme suitable for scattered data. It is based on weighted average approach and uses Voronoi diagram to determine relative contribution of given data points. Weights are defined as ratio of area “stolen” from known data points in the diagram by adding an interpolated data point […]

Constrained K-Means implementation in Python

The following is just a Python implementation of the algorithm described in the following paper: Bradley PS, Bennett KP, Demiriz A (2000) Constrained K-Means Clustering. Microsoft Research. Available: http://research.microsoft.com/pubs/69796/tr-2000-65.pdf To cut the long story short, this algorithm allows to execute K-Means with a user-defined minimum number of points belonging to […]

Spanning tables Markdown extension

Sorry for the long pause in coming goodies. I do lots of exciting stuff but unfortunately confidential for the moment. It will see the daylight soon though, I hope 🙂 In my free time – I’m developing a set of extensions to help formatting some of my markdown documents that […]

SEC2J – journalling for HDF5

I’ve been rather quiet lately but that’s only because I’m working on tons of interestng stuff : ) Here’s something cool for managing issues with corrupt HDF5 files (e.g. 1, 2). It’s still a work in progress and not fully tested but it’s basically an implementation of journalling for the […]

Introducing BackTick, a.k.a. StanScript ; ) a Clojure/Scala/Lisp/Python-inspired JavaScript superset

Why `backtick`? Because (almost) all of the syntax extensions were introduced using only one character. Yep, you got it – the backtick ; ) Supported features: – Python-like operator overloading (by defining __iadd__, __eq__, etc. methods in the object or prototype), e.g.: x.__iadd__ = function(y) { this.data += y; }; […]