Blender All Transforms to Deltasを実行して戻せない時

これでtransformとdelta transformを交換して元に戻せる
import bpy

for obj in bpy.context.selected_objects:
    obj.location.xyz, obj.delta_location.xyz = obj.delta_location.xyz, obj.location.xyz
    obj.scale.xyz, obj.delta_scale.xyz = obj.delta_scale.xyz, obj.scale.xyz
    obj.rotation_euler.x, obj.delta_rotation_euler.x = obj.delta_rotation_euler.x, obj.rotation_euler.x
    obj.rotation_euler.y, obj.delta_rotation_euler.y = obj.delta_rotation_euler.y, obj.rotation_euler.y
    obj.rotation_euler.z, obj.delta_rotation_euler.z = obj.delta_rotation_euler.z, obj.rotation_euler.z

コメント