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

Adds an object that handles a node motion when the animation is played.

The motion object should be an instance of a class inherited from the OdBaseNodeMotion class.

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