'
' In this example, an FCurve is created on the XRot param
' of the cube. Then, two keys are created (at frame 1 and 30)
' which are then converted to quaternion animation and back
' to Euler fcurves.
'
NewScene
CreatePrim "Cone", "MeshSurface", "MyCone"
' Add two keys, at frame 1 and 30
SaveKey "MyCone.kine.local.rotx", 1, 0
SaveKey "MyCone.kine.local.rotx", 30, 70
' Convert to quaternion fcurves
ConvertEulerToQuat
' Convert back to normal fcurves
ConvertQuatToEuler
' Play the animation
PlayForwardsFromStart |