Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import bpy
  2. for a in bpy.data.actions:
  3. for fc in a.fcurves:
  4. if "location" in fc.data_path:
  5. a.fcurves.remove(fc)
  6.  
  7. ob = bpy.context.object
  8. for pb in ob.pose.bones:
  9. pb.location = (0, 0, 0)
  10.  
  11. bpy.ops.object.transform_apply(scale=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement