hey, glad to see more people get into scripting Blender! Even the few scripts I use have really change the entire experience for me, and I'm always happy to see what people come up with. If you take this any further, I'm sure there are a few people who'd be interested in this!
worked up this target weld script for blender... nothing fancy but it was hard for me to get it to work... import bpyclass Target_Weld(bpy.types.Operator): """Tooltip""" bl_idname = "object.target_weld_toggle" bl_label = "Target Weld Toggle" if bpy.data.scenes['Scene'].tool_settings.use_mesh_automerge == False: # checks if…
I was pretty happy when I got the object to move from one side to another. The purpose is to create an action that mimics the offset filter in Photoshop to help in the creation of seamless textures with 3d objects. I'm trying to automate some things I do manually. Anyways when I try to add the code to a menu it doesn't…
ProperSquid is a genius. He is helping me take it further. I'll post the proof of his genius... So the tool does the offset thing in xyz and rotate objects by 45 degress now... I love Blender, things are just a bit messy in a way, but it has gotten ten times better since I started using seriously nine months ago. things I…
This is what I have so far for my add-on... It's far from perfect, but it sort of does what I want. The target weld toggle works provided it's not in an add on... It seems I have the wrong context, Any help would be great. Thanks. The code is also messy and the formatting is way off. Ideally for the rotate tools you launch…
This should do the trick: from bpy import utilsimport bpy# Create the operator to do the offset.class OffsetOperator(bpy.types.Operator): bl_idname = "object.offset_operator" bl_label = "My Offset" def execute(self, context): loc_x = context.active_object.location.x context.active_object.location.x = loc_x * -1 return…