API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdAnimation Class > OdAnimation Methods > OdAnimation::setCameraMotion Method
OdAnimation::setCameraMotion Method
Syntax
C++
void setCameraMotion(const OdUInt64& start_frame, const OdUInt64& end_frame, OdBaseCameraMotionPtr motion);
Parameters 
Description 
const OdUInt64& start_frame 
[in] A start frame. Determines when the camera motion starts.  
const OdUInt64& end_frame 
[in] An end frame. Determines when the camera motion stops.  
OdBaseCameraMotionPtr motion 
[in] A smart pointer to a camera motion object. 

Sets an object that handles the camera motion when the animation is played.

The motion object should be an instance of a class inherited from the OdBaseCameraMotion class. Note that for any animation, only one object of the OdBaseCameraMotion class can be set.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.