CanvasFrame ObjectThe CanvasFrame object represents a 3D Canvas Frame.
Gets the name of the frame. Syntax object.GetName() As Variant Sets the name of the frame. Syntax object.SetName(Name As Variant) Remarks A frame must be made a child of another frame using the AddChild method before it can be named. Gets the CanvasFrame that is the parent frame of the frame. Syntax object.GetParent() As CanvasFrame Gets the number of child frames the frame has. Syntax object.GetChildCount() As Variant Gets the specified child CanvasFrame object. Syntax object.GetChild(Index As Variant) As CanvasFrame Adds the specified CanvasFrame object as a child frame. Syntax object.AddChild(Frame As Variant) Remarks This will add the frame to the scene. Gets the position of the frame relative to a specific CanvasFrame object. Syntax object.GetPosition(RelativeFrame As Variant, Remarks Provide Nothing as the RelativeFrame to get the frame's position in world coordinates. Sets the position of the frame relative to a specific CanvasFrame object. Syntax object.SetPosition(RelativeFrame As Variant, Remarks Provide Nothing as the RelativeFrame to set the frame's position in world coordinates. The AnimationTime parameter allows you to set a position at a particular time in the animation. This allows you to set frame animation paths. Gets the orientation of the frame relative to a specific CanvasFrame object. Syntax object.GetOrientation(RelativeFrame As Variant, Remarks Provide Nothing as the RelativeFrame to get the frame's orientation in world coordinates. Sets the orientation of the frame relative to a specific CanvasFrame object. Syntax object.SetOrientation(RelativeFrame As Variant, Remarks Provide Nothing as the RelativeFrame to set the frame's orientation in world coordinates. The AnimationTime parameter allows you to set an orientation at a particular time in the animation. This allows you to set frame animation paths. Gets the transformation matrix of the frame relative to a specific CanvasFrame object. Syntax object.GetTransformMatrix(RelativeFrame As Variant, Remarks Provide Nothing as the RelativeFrame to get the frame's transformation matrix in world coordinates. Adds a CanvasObject object to the frame. Syntax object.AddObject(Object As Variant) Remarks The object is added to the scene when it is added to a frame. Gets the number of CanvasObject objects in this frame. Syntax object.GetObjectCount() As Variant Gets the specified CanvasObject object. Syntax object.GetObject(Index As Variant) As CanvasObject Gets the number of CanvasBone objects in this frame. Syntax object.GetBoneCount() As Variant Gets the specified CanvasBone object. Syntax object.GetBone(Index As Variant) As CanvasBone Gets the unique identifier for the frame. Syntax object.GetID() As Variant Gets the animation style for the frame. Syntax object.GetAnimationStyle() As Variant Remarks 0 = a closed (repeating) animation Gets the number of animation position key-frames for this frame. Syntax object.GetPositionKeyFrameCount() As Variant Gets the specified animation position key-frame. Syntax object.GetPositionKeyFrame(Index As Variant, Gets the number of animation orientation key-frames for this frame. Syntax object.GetOrientationKeyFrameCount() As Variant Gets the specified animation orientation key-frame. Syntax object.GetOrientationKeyFrame(Index As Variant, Remarks An orientation key-frame is a quaternion. |