# Copy all attributes to curve by Python?

the question is simple - how to copy all the attributes of the curve data to another curve object by python? I need to make it look the same - same cutom bevel, same extrude, same offset... same attributes. Is there any simple python solution?

• Just to make sure: You'd like to transfer all properties of one curve to another? Jun 26 at 7:13
• Yes - I've just uploaded the blend file as well. I am thinking about looping over all the attributes and copy them one by one by script. Or somehow replace just the curve itself and keep the attributes - that would be the most elegant solution - but I have no idea how to do that... If it would be Maya - you would just switch one node for another node - but in blender? Jun 26 at 8:37

bpy.ops.object.make_links_data(type='OBDATA') should work.