Archive for July, 2011
So, once upon a time, several ages ago, I started learning blender. This led to me being introduced to python, finally, after having been told about it by nsane back in 1997, as THE LANGUAGE I SHOULD LEARN. Since, at the time of my introduction to python, I hadn’t actually learned it, I stopped doing [ READ MORE ]
Its the smell of rain[ READ MORE ]
If you are coding in blender 2.58, and you don’t have this enabled, you are an idiot. I can say that because I was an idiot five minutes ago. No, three. I finally got around to enabling it. Well actually I mis-clicked its neighbor and couldn’t be buggered to un-misclick, but …any… how. It ends [ READ MORE ]
bl_info = { "name": "Corn Device", "author": "dustractor@gmail.com", "version": (99, 0), "blender": (2, 5, 8), "api": 37702, "location": "View3D > UI > example", "description": "these are some of the tools i use most frequently.", "warning": "", "wiki_url": "", "tracker_url": "", "category": "3D View" } import bpy import math import types import random def sl(x):x.select=True def [ READ MORE ]
Just use a regular mouse![ READ MORE ]
corn.py brb furtherly abstractifying[ READ MORE ]
http://cshyde.thomasnet.com/viewitems/films/tefzel-film-general-purpose?&forward[ READ MORE ]
bl_info=dict(name='SelTools',author='dustractor',version='(1,1)',blender='(2,5,8)',api='33333',location='View3d > UI panel > SelTools',description='Selection Tools',category='3D View') import bpy a=lambda x,y:print(x,y) b=lambda x,y:print(dir(x)) ops=['object.meta1','object.meta2'] class Op(bpy.types.Operator): @classmethod def poll(self,context): return context.active_object!=None def invoke(self,context,event): self.execute(context) return {'FINISHED'} def execute(self,context): self.f(context) class selectionPanel(bpy.types.Panel): bl_label,bl_space_type,bl_region_type=['Selection Tools','VIEW_3D','UI'] def draw(self,context): list(map(lambda x:self.layout.row().operator(x),ops)) meta1=type("meta1",(Op,),{'bl_idname':'object.meta1','bl_label':'meta one','f':a}) meta2=type("meta2",(Op,),{'bl_idname':'object.meta2','bl_label':'meta dos','f':b}) registry=[meta1,meta2,selectionPanel] def register():list(map(lambda x:bpy.utils.register_class(x),registry)) def unregister():list(map(lambda x:bpy.utils.unregister_class(x),registry)) if __name__=='__main__':register() thats it. proof of [ READ MORE ]
Get every new post delivered to your Inbox.