macroScript CopyTransformToUE category:"Hardway" toolTip:"Copy Transform to UE" ButtonText:"Copy to UE"
(
	selectedNode = selection[1]
	pos = selectedNode.position
	rot = selectedNode.rotation as eulerAngles
	sc = selectedNode.scale
	outputText = "{\"Tagged\":[[\"RelativeLocation\",\"(X=" + ((pos.x*2.54) as string) + ",Y=" + (((0-pos.y)*2.54) as string) + ",Z=" + ((pos.z*2.54) as string) + ")\"],[\"RelativeRotation\",\"(Pitch=" + rot.x_rotation as string + ",Yaw=" + rot.z_rotation as string + ",Roll=" + rot.y_rotation as string + ")\"],[\"RelativeScale3D\",\"(X=1,Y=1,Z=1)\"],[\"Mobility\",\"Static\"]]}"
	setclipboardtext outputText
)