/bpy

blender python scripts

Primary LanguagePython

Display colored point cloud PLY in Blender's 3d viewport. Works with binary point cloud PLY files in format (x, y, z, nx, ny, nz, r(8bit), g(8bit), b(8bit), (alpha)) exported from Agisoft PhotoScan or MeshLab.

  • Add an Empty object
  • Load and display point cloud at Properties (N) panel with Empty selected
  • Available controls: auto loading of selected ply file, pixel point drawing or OpenGL smooth point, drawing enable/disable, percentage of displayed points and reset button which resets all (except autoload option)
  • Transforming Empty transforms point cloud as well
  • Works reasonably fast with 4m points on my machine, 2 years old, not top of the line

Point Cloud Visualizer

BlenderArtist.org thread

changelog:

  • 0.2.0 display percentage
  • 0.1.0 first release

Equalizes scale of UVs of selected objects to active object.

  • Use when tileable texture needs to be applied on all objects and its scale should be the same across them.
  • Available in Object menu of 3d view while in object mode.
  • To enable, more than two mesh objects must be selected, one must be active.
  • Default behavior is active object determines scale and all other objects will be adjusted. This can be overrided unchecking 'Use Active', then all objects will be averaged.
  • Island scale averaging and repacking is optional and will yeld better result.

UV Equalize

BlenderArtist.org thread

changelog:

  • 0.2.3 better fix for bug fixed in previous version..
  • 0.2.2 fixed bug which prevented script to work, operators are used for transforming uvs, but when in image editor is loaded 'Render Result', UV will not be displayed and therefore operators will not work.. it's one line fix, just set displayed image to None..
  • 0.2.1 auto deselect non mesh objects
  • 0.2.0 complete rewrite, now it is pure math
  • 0.1.2 fixed different uv names bug
  • 0.1.1 uuid windows workaround
  • 0.1.0 first release

UV unwrap tube-like meshes (all quads, no caps, fixed number of vertices in each ring)

notes:

  • Works only on tube-like parts of mesh defined by selection and active vertex (therefore you must be in vertex selection mode) and the selection must have a start and an end ring. Tube-like mesh is: all quads, no caps, fixed number of vertices in each ring. (Best example of such mesh is mesh circle extruded several times or beveled curve (not cyclic) converted to mesh.) There must be an active vertex on one of the boundary loops in selection. This active vertex define place where mesh will be 'cut' - where seam will be placed.
  • Result is rectangular UV for easy texturing, scaled to fit square, horizontal and vertical distances between vertices are averaged and proportional to each other.

usage:

  1. tab to Edit mode
  2. select part of mesh you want to unwrap, tube type explained above
  3. make sure your selection has boundaries and there is an active vertex on one border of selection
  4. hit "U" and select "Tube UV Unwrap"
  5. optionally check/uncheck 'Mark Seams' or 'Flip' in operator properties

Tube UV Unwrap

BlenderArtist.org thread

changelog:

  • 0.2.4 removed redundant and buggy parts
  • 0.2.0 almost full rewrite, now it works on selection only, any mesh will work, if selection comply to requirements
  • 0.1.3 fail nicely when encountered 2 ring cylinder
  • 0.1.2 got rid of changing edit/object mode
  • 0.1.1 fixed accidental freeze on messy geometry, fixed first loop vertex order (also on messy geometry), uv creation part completely rewritten from scratch
  • 0.1.0 first release

Simple time tracker inside blender. After you install and enable it, it will log loaded and saved files and time spent of file until it is saved. All ui is inside addon preferences.

Time Tracker

Here you can enable / disable logging, clear data collected so far, set custom data path (.csv) and see short summary of collected data and open individual project directories in file browser. The project name is determined by directory name where the blend is. For example if you have project in directory named "MyNewOutstandingProject" and all blends are inside subdirectory "models", set level number to 1 and you will see project name in results. 0 is directory directly above blend, 1 is one directory above blend, and so on. If you are like me and all your projects have the same subdirectory structure, sent directory level and you are good to go.

BlenderArtist.org thread

changelog:

  • 0.1.0 added simple ui
  • 0.0.8 ui tweaks, more advanced options, minor bugfixes
  • 0.0.7 fixed performance and sorting, added tracking of files which were closed without saving once a minute (can be enabled in preferences: check Track Scene Update)
  • 0.0.6 first release

Simple and effective access to Solid OpenGL Lights for your viewport. Comes with clean, simple interface and endless possibilities. No more fiddling with preferences and other similar confusing, complex and view obscuring addons!

OpenGL Lights

BlenderArtist.org thread

changelog:

  • 2014.08.25 more presets
  • 2014.08.24 added defaults, created when no presets are available
  • 2014.08.19 first release