head follow switch rig from p2design
One only bendy bone Tail inspired by Tal Hershkovich
>> download

graphitz.com // 3D - VFX - Motion Design

import bpy def funk1(bla,blu): print("function with external references") print('sum of it =', bla+blu) def funk2(): print('basic function') bla=3 blu=5 funk1(bla,blu) bla=20 blu=30 funk1(bla,blu) funk2()
function with external references sum of it = 8 function with external references sum of it = 50 basic function


1 2 3 4 5 6 7 8 9 10 11 | import bpy list = [] sel = bpy.context.selected_objects for ob in sel: list.append(ob) #or list+=[ob] print(list) for i in list: print(i) #action: #bpy.context.object.data.auto_smooth_angle = 0.436332 i.data.auto_smooth_angle = 0.43633212 |
1 2 3 4 5 6 7 8 9 10 | import bpy newfont = bpy.data.fonts.load("//FONTS/ariblk.ttf") Sel = bpy.context.selected_objects for obj in Sel: if obj.type == 'FONT': print(obj) obj.data.font = newfont obj.data.size = 0.5 obj.data.space_character = 1.4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import bpy Sel = bpy.context.selected_objects for obj in Sel: if obj.type == 'FONT': #remove first 7 characters obj.data.body = obj.data.body[7:] #remove all but 7 first characters obj.data.body = obj.data.body[:7] #remove from 3rd character to 7 from start obj.data.body = obj.data.body[:3] + obj.data.body[7:] #remove first 3 and copy first 7 to the end obj.data.body = obj.data.body[3:] + obj.data.body[:7] #remove first 3 and copy from after first 7 to the end obj.data.body = obj.data.body[3:] + obj.data.body[7:] |
1 2 3 4 5 6 | import bpy print("*****************") print("rename text objects by content") for ob in bpy.data.objects: if ob.type == 'FONT': ob.name = ob.data.body[:10] |