How to avoid offset of Follow Path constraints?

(SidV) #1

Even tho i placed the empty at the location of the path before i add a Follow Path, i get this strange offset if the Path is not at center. Can somone help?

a = =[‘BezierCurve’]
bpy.ops.object.empty_add(type=‘PLAIN_AXES’, location=(a.location))
bpy.ops.object.constraint_add(type=‘FOLLOW_PATH’)[name].constraints[“Follow Path”].target =[“BezierCurve.001”][name].constraints[“Follow Path”].use_fixed_location = True

(JuhaW) #2

Place empty at location 0,0,0

(SidV) #3

That helped, thx.