Deltas to transform
Theres a million ways to send transforms to deltas but not the other way arround, creating an entry to do so on the context menu would be appreciated it.
The code is simple, it only needs an entry on the context menu :u
import bpy
for obj in bpy.context.selected_objects:
# Store delta location, Eurler rotation and scale of selected objects
obj_deltaL = obj.delta_location
obj_deltaR = obj.delta_rotation_euler
obj_deltaS = obj.delta_scale
# Assign object location as delta location and Reset delta location to 0
obj.location = obj_deltaL
obj.delta_location = (0,0,0)
# Assign object location as delta location and Reset delta location to 0
obj.rotation_euler = obj_deltaR
obj.delta_rotation_euler = (0,0,0)
# Assign object location as delta location and Reset delta location to 0
obj.scale = obj_deltaS
obj.delta_scale = (1,1,1)
4 Comments
And you give the scripts! I hope that somebody will hear your request somewhere in the Foundation because I have spent much time copy pasting one by one each rotation and scale from deltas to transform on large amounts of objects.
The scripts are a frankestein of what I managed to found trought hours of digging XD I know the husstle, I wanna try and make it a little add-on (I dont know programming, but I can rever engineer everything) so the commoners like us, can have an easier life XD
Yes, I should do the same with the huge addon made for the anatomy atlas ( z-anatomy.com/ ) ; there are at least 6 or 7 very useful add-ons to export out of it.
If I'm not mistaken, this script just replaces the main transform with the delta transform, right? It would also be nice to have a feature that adds the deltas to the main transform; sort of a "All transforms to main transform" as the counter to the current "All transforms to Deltas".
I also proposed an easier method of transforming just the deltas blender.community/c/rightclickselect/l7xV/