I have an issue finding the correct documentation online.
CTRL + A calls the following command:
And a selection option reads out the following command:
bpy.ops.object.transform_apply(scale=True) bpy.ops.object.transform_apply(location=False, rotation=True, scale=False)
Now by trial and error I found out that if you want to call an operator it has to be formatted the following way:
row.operator("wm.call_menu", text="Apply Tans").name="VIEW3D_MT_object_apply" row.operator("object.transform_apply", text="Apply Rot").rotation=True
name and rotation have to come after the operator closing bracket to pass that information to the operator.
Where can you in the Blender Python API find this information? I searched for it but do not find anything about the correct syntax.