0

I'm modifying the Template -> Python -> Batch Export script to batch export a bunch of .glb files

During export I need to zero out the location of the object using -

bpy.ops.object.location_clear(clear_delta=False)

But, I want store the objects location before I zero them with this function - then restore it's location after the location is zero'd and exported. This is because I need the transforms zero'd out when I import them into another program.

I am new to python in blender, so I started by trying to print the location of the selected object with -

print(bpy.ops.object.location)

But even with this simple print statement, I'm stuck, as I can't get the script to print the actual x,y,z coordinates.

Can anybody help me out with the code for this? Thanks a bunch

0 Answers0