Entries from 2014-07-01 to 1 month

makeRound.py

Replace selected verts onto a circle in Edit mode. import bmesh import numpy as np def makeRound(): if bpy.ops.object.mode_set.poll(): bpy.ops.object.mode_set(mode='OBJECT', toggle=False) if bpy.ops.object.mode_set.poll(): bpy.ops.object.m…

pinch/zoom for Android Java

This humble code interpretes the distance between two pointers as the ratio. static final int NumberOfMyPointers = 2; static final float minimumDistance2object = 0.1f; static final float maximumDistance2object = 3.0f; static final float Ma…

blender exporter

import bpy import math import time import bmesh from os.path import expanduser # 2014 march 14 sphere is not yet implemented. # Inputs: # c_=cylinder, lc_=looped-cylinder, f_=frame, h_=hemisphere, l_=line, p_=pipe, r_=ribbon, s_=sphere # #…