This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from bpy.app.handlers import persistent | |
bl_info = { | |
"name": "Playback Once", | |
"author": "Adhi Hargo", | |
"version": (1, 0, 0), | |
"blender": (2, 67, 3), | |
"location": "", | |
"description": "Playback once.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from itertools import product | |
from mathutils import Vector | |
def get_enum_items(self, context): | |
obj = context.active_object | |
groups = obj.users_group | |
group_names = [g.name for g in groups] | |
return [(gn, gn, 'Instance group "%s"'%gn) for gn in group_names] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import math | |
from mathutils import Vector | |
class OBJECT_OT_quarter_circle(bpy.types.Operator): | |
"""Create one fourth of a circle.""" | |
bl_idname = 'curve.quarter_circle_add' | |
bl_label = 'Quarter Circle' | |
bl_options = {'REGISTER', 'UNDO'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
# bl_info = { | |
# "name": "Low Vertex Count Objects", | |
# "author": "", | |
# "version": (1, 0), | |
# "blender": (2, 63, 0), | |
# "location": "View3D > Add", | |
# "description": "Add primitive object with low initial vertex count", | |
# "warning": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class VIEW3D_OT_BoneSnapToObject(bpy.types.Operator): | |
"""Snap active bone to selected object.""" | |
bl_idname = 'object.snap_to_object' | |
bl_label = 'Snap Bone to Object' | |
bl_options = {'REGISTER', 'UNDO'} | |
@classmethod | |
def poll(self, context): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Adhi Hargo (cadmus.sw@gmail.com) | |
# License: GPL v2 | |
import bpy | |
class CameraAddTitleSafe(bpy.types.Operator): | |
bl_idname = 'object.camera_add_title_safe' | |
bl_label = 'Add Camera Title Safe' | |
bl_options = {'REGISTER', 'UNDO'} | |