r3keyfr2

r3keyfr2

Class

real/code/r3keyfr2.h

Library

r3code

Description:

Keyframe2 Class.

See Also

real/code/r3chory.h

Super Class

r3Choreography

R3CLID_CHOREOGRAPHY

JavaScript

r3Keyframe2

Class Identifier

R3CLID_KEYFRAME2 - 221

Methods

ADDTAG, TAGISANIMATED, TAGCHANGED, NEWTIME, NEWCHOREOGRAPHYTIME, SETTIMEOVERRIDE, UNSETTIMEOVERRIDE, REMOVETAG, GETCURVE, RECALCTAG, TIMEOVERRIDE, CHANGENUMVALSFORTAG, ENUMCURVES, CHANGETAGID, SETORIGVAL, GETORIGVAL, MAKECHOROBJECTS, GETCHOROBJ, INSERT, GETCURVEFORCHOREOGRA, SETINPUT, DELSELECTEDPOINTSFOR, DELPOINTBYINDEXFORTA, INSERTPOINTBYINDEXFO, ASSIGNPOINTBYINDEXFO, SETTAGPERPOINT, ADJUSTBEGINEND, SCALECURVESX, ASSIGNINDEXFORTAG, ASSIGNTAGFORINDEX, WEIGHTCHANGED, TAGISANIMATEDINCHORE, ADDTAGINCHOREOGRAPHY, BREAK, UPDATETAG, FINDCHOR, NEWCHOROBJ, TAGOBJCHANGED, ENUMTIMELINES, GETTAG, REGISTERATTRHANDLER, TRANSLATESELECTEDTIM, SETSELECTEDKEYS, UPDATETAGSIZE, NEXTTIMEKEY, PREVTIMEKEY, ISTIMEBASED, INVALIDATEINPUT, HASINPUT, COPYANIMATEDATTRS, NEWKEY, SELECTTAG, ENUMATTRS, TAGISSELECTED, TAGENABLEKEYFR, TAGISKEYFRENABLED, FLUSH, REMOVE, ISWEIGHTANIMATEABLE, DELSELECTEDKNOTS, DELCHOROBJ, GETINPUTOBJ, SETINPUTOBJ, SELECTRANGE, SHIFTTOORIGINY, SHARPENSELECTEDKNOTS, MIRROR,

Attributes

UserObject, Time, NewKeyTolerance, AnimatedAttrs,

R3KFRMM_ADDTAG

Method

ADDTAG

Identifier

R3KFRMM_ADDTAG

Param 1:

R3BOOL, if true, no curves are created (caller will create anim curves later)

JavaScript

obj.ADDTAG(p1, 0);

Description

Add new tag to be animated

R3KFRMM_TAGISANIMATED

Method

TAGISANIMATED

Identifier

R3KFRMM_TAGISANIMATED

Return

R3OBJ*, animated attribute

Param 1:

R3INT, attribute identifier

Param 3:

R3INT, attribute index, or -1 for regular attributes

JavaScript

rc = obj.TAGISANIMATED(p1, p3);

Description

See if the given attribute is animated.

R3KFRMM_TAGCHANGED

Method

TAGCHANGED

Identifier

R3KFRMM_TAGCHANGED

Param 1:

R3INT, attribute id

Param 2:

R3INT, attribute index for indexed attrs, -1 for regular attrs

Param 3:

void*, new value of the attribute

JavaScript

obj.TAGCHANGED(p1, p2, p3);

Description

Update the attribute value of the current choreography.

R3KFRMM_NEWTIME

Method

NEWTIME

Identifier

R3KFRMM_NEWTIME

Param 1:

R3BOOL, disable recalc (only set time).

Param 3:

R3FLOAT, new time

JavaScript

obj.NEWTIME(p1, p3);

Description

Set new time

R3KFRMM_NEWCHOREOGRAPHYTIME

Method

NEWCHOREOGRAPHYTIME

Identifier

R3KFRMM_NEWCHOREOGRAPHYTIME

Return

R3BOOL, true if succeeded

Param 1:

R3INT, chor index

Param 3:

R3FLOAT, new time value

JavaScript

rc = obj.NEWCHOREOGRAPHYTIME(p1, p3);

Description

Set new time for the given choreography.

R3KFRMM_SETTIMEOVERRIDE

Method

SETTIMEOVERRIDE

Identifier

R3KFRMM_SETTIMEOVERRIDE

Return

R3BOOL, true if chor index was valid

Param 3:

R3INT, chor index

JavaScript

rc = obj.SETTIMEOVERRIDE(p3);

Description

Make the choreography not time dependent. See also R3KFRMM_SETINPUT method, * for seting input to desired object/attribute.

R3KFRMM_UNSETTIMEOVERRIDE

Method

UNSETTIMEOVERRIDE

Identifier

R3KFRMM_UNSETTIMEOVERRIDE

Return

R3BOOL, true if chor index was valid

Param 3:

R3INT, chor index

JavaScript

rc = obj.UNSETTIMEOVERRIDE(p3);

Description

Make the choreography time dependent.

R3KFRMM_REMOVETAG

Method

REMOVETAG

Identifier

R3KFRMM_REMOVETAG

Return

R3BOOL, true if attribute was animated.

Param 1:

R3INT, attribute indentifier

Param 3:

R3INT, attribute index or -1 for regular attributes

JavaScript

rc = obj.REMOVETAG(p1, p3);

Description

Delete animated attribute object and associated choreographs.

R3KFRMM_GETCURVE

Method

GETCURVE

Identifier

R3KFRMM_GETCURVE

Return

R3OBJ*, curve object

Param 1:

R3INT, chor index

Param 2:

R3INT, attribute id

Param 3:

R3INT, attribute index, or -1 for regular attrs.

JavaScript

rc = obj.GETCURVE(p1, p2, p3);

Description

Fetch the keyframe curve object. Note: returns NULL if * the choreography is not a key framer, or if the attribute * is not key framed.

R3KFRMM_RECALCTAG

Method

RECALCTAG

Identifier

R3KFRMM_RECALCTAG

Param 1:

R3BOOL, restore all origvals

Param 3:

R3INT, tag to be recalculated

JavaScript

obj.RECALCTAG(p1, p3);

Description

Recalculate animated tag.

R3KFRMM_TIMEOVERRIDE

Method

TIMEOVERRIDE

Identifier

R3KFRMM_TIMEOVERRIDE

Return

R3BOOL, TRUE if overridden (that is, input is not time).

Param 3:

R3INT, chor index

JavaScript

rc = obj.TIMEOVERRIDE(p3);

Description

See if the default choreography input (time) has been overridden

R3KFRMM_CHANGENUMVALSFORTAG

Method

CHANGENUMVALSFORTAG

Identifier

R3KFRMM_CHANGENUMVALSFORTAG

Param 1:

R3INT, attribute id

Param 2:

R3INT, attribute index, or -1 for regular attrs

Param 3:

R3INT, new array size.

JavaScript

obj.CHANGENUMVALSFORTAG(p1, p2, p3);

Description

Change the size of the array attribute.

R3KFRMM_ENUMCURVES

Method

ENUMCURVES

Identifier

R3KFRMM_ENUMCURVES

JavaScript

obj.ENUMCURVES();

Description

Enumerate animation curves for a given choreography.

R3KFRMM_CHANGETAGID

Method

CHANGETAGID

Identifier

R3KFRMM_CHANGETAGID

Param 1:

R3INT, tag

Param 2:

R3INT, index,

Param 3:

R3TAG*, R3KFRMA_Tag, R3KFRMA_Index: New tag id and new index.

JavaScript

obj.CHANGETAGID(p1, p2, p3);

Description

Change the tag id and index of given choreography.

R3KFRMM_SETORIGVAL

Method

SETORIGVAL

Identifier

R3KFRMM_SETORIGVAL

Param 1:

R3INT, tag

Param 2:

R3INT, index

Param 3:

void*, new origvals.

JavaScript

obj.SETORIGVAL(p1, p2, p3);

Description

Set origvals for the attribute specified by 'tag' and 'index'.

R3KFRMM_GETORIGVAL

Method

GETORIGVAL

Identifier

R3KFRMM_GETORIGVAL

JavaScript

obj.GETORIGVAL();

Description

Fetch the orig val.

R3KFRMM_MAKECHOROBJECTS

Method

MAKECHOROBJECTS

Identifier

R3KFRMM_MAKECHOROBJECTS

JavaScript

obj.MAKECHOROBJECTS();

Description

Create choreography objects for all the animated tags.

R3KFRMM_GETCHOROBJ

Method

GETCHOROBJ

Identifier

R3KFRMM_GETCHOROBJ

Return

R3OBJ*, chor object or NULL if not found

Param 1:

R3OBJ*, animated tag if attr specific chor, otherwise NULL

Param 3:

R3INT, ordnum of the choreography

JavaScript

rc = obj.GETCHOROBJ(p1, p3);

Description

Find chor object corresponding the given ordnum

R3KFRMM_INSERT

Method

INSERT

Identifier

R3KFRMM_INSERT

Param 1:

R3INT, choreograhy index

Param 2:

R3OBJ*, animated attribute

Param 3:

R3OBJ*, chor object to be inserted

JavaScript

obj.INSERT(p1, p2, p3);

Description

Insert chor object with the given choreography index and attribute.

R3KFRMM_GETCURVEFORCHOREOGRA

Method

GETCURVEFORCHOREOGRA

Identifier

R3KFRMM_GETCURVEFORCHOREOGRA

Return

R3OBJ*, curve or null if the chor is not a key framer or the attribute is not animated

Param 1:

R3INT, attribute id

Param 2:

R3INT, attribute index or -1 for regular attrs

Param 3:

R3TAG*, R3CHRYA_Active (chor index), R3KFRMA_Index (array index for array attributes)

JavaScript

rc = obj.GETCURVEFORCHOREOGRA(p1, p2, p3);

Description

Fetch the animation curve for the given choreography and attribute

R3KFRMM_SETINPUT

Method

SETINPUT

Identifier

R3KFRMM_SETINPUT

Return

R3BOOL, true if succeeded.

Param 1:

R3INT, choreography

Param 3:

R3TAG*, R3KFRMA_InputTag, R3KFRMA_InputMth, R3KFRMA_InputIndex, R3KFRMA_InputSub, R3KFRMA_InputObj

JavaScript

rc = obj.SETINPUT(p1, p3);

Description

Set input object for the given choreography.

R3KFRMM_DELSELECTEDPOINTSFOR

Method

DELSELECTEDPOINTSFOR

Identifier

R3KFRMM_DELSELECTEDPOINTSFOR

Param 3:

char*, selected array

JavaScript

obj.DELSELECTEDPOINTSFOR(p3);

Description

Delete given points from array attribute.

R3KFRMM_DELPOINTBYINDEXFORTA

Method

DELPOINTBYINDEXFORTA

Identifier

R3KFRMM_DELPOINTBYINDEXFORTA

Return

R3BOOL, true if succeeded.

Param 3:

R3INT, index of the point to be deleted.

JavaScript

rc = obj.DELPOINTBYINDEXFORTA(p3);

Description

Delete point from array variable.

R3KFRMM_INSERTPOINTBYINDEXFO

Method

INSERTPOINTBYINDEXFO

Identifier

R3KFRMM_INSERTPOINTBYINDEXFO

Return

R3BOOL, true if succeeded

Param 3:

R3INT, index for the new point.

JavaScript

rc = obj.INSERTPOINTBYINDEXFO(p3);

Description

Insert new point to array variable.

R3KFRMM_ASSIGNPOINTBYINDEXFO

Method

ASSIGNPOINTBYINDEXFO

Identifier

R3KFRMM_ASSIGNPOINTBYINDEXFO

Param 1:

R3INT, index of the source point

Param 2:

R3INT, index of the target point

Param 3:

R3TAG*, tag list containing R3KRMA_Tag (default -1) and R3KFRMA_Index (default -1).

JavaScript

obj.ASSIGNPOINTBYINDEXFO(p1, p2, p3);

Description

Assign point 'from' to point 'to'

R3KFRMM_SETTAGPERPOINT

Method

SETTAGPERPOINT

Identifier

R3KFRMM_SETTAGPERPOINT

Param 1:

R3INT, tag

Param 3:

R3INT, perpoint flag

JavaScript

obj.SETTAGPERPOINT(p1, p3);

Description

R3KFRMM_ADJUSTBEGINEND

Method

ADJUSTBEGINEND

Identifier

R3KFRMM_ADJUSTBEGINEND

JavaScript

obj.ADJUSTBEGINEND();

Description

Expand the time line to cover the all key frames.

R3KFRMM_SCALECURVESX

Method

SCALECURVESX

Identifier

R3KFRMM_SCALECURVESX

Param 1:

R3FLOAT, origin

Param 3:

R3FLOAT, scale factor

JavaScript

obj.SCALECURVESX(p1, p3);

Description

Scale animation curves in X direction.

R3KFRMM_ASSIGNINDEXFORTAG

Method

ASSIGNINDEXFORTAG

Identifier

R3KFRMM_ASSIGNINDEXFORTAG

Param 1:

R3INT, tag

Param 2:

R3INT, index 'from'

Param 3:

R3INT, index 'to'

JavaScript

obj.ASSIGNINDEXFORTAG(p1, p2, p3);

Description

Assign index from 'from' to 'to'

R3KFRMM_ASSIGNTAGFORINDEX

Method

ASSIGNTAGFORINDEX

Identifier

R3KFRMM_ASSIGNTAGFORINDEX

Param 1:

R3INT, tag 'from'

Param 2:

R3INT, tag 'to'

Param 3:

R3INT, index

JavaScript

obj.ASSIGNTAGFORINDEX(p1, p2, p3);

Description

Assign tag from 'from' to 'to'

R3KFRMM_WEIGHTCHANGED

Method

WEIGHTCHANGED

Identifier

R3KFRMM_WEIGHTCHANGED

JavaScript

obj.WEIGHTCHANGED();

Description

Weight changed, full recalc.

R3KFRMM_TAGISANIMATEDINCHORE

Method

TAGISANIMATEDINCHORE

Identifier

R3KFRMM_TAGISANIMATEDINCHORE

Return

R3BOOL, TRUE if the tag is animated in the given choreography

Param 1:

R3INT, choreography index, -1 for the currently active choreography

Param 2:

R3INT, animated tag

Param 3:

R3INT, animated tag index

JavaScript

rc = obj.TAGISANIMATEDINCHORE(p1, p2, p3);

Description

R3KFRMM_ADDTAGINCHOREOGRAPHY

Method

ADDTAGINCHOREOGRAPHY

Identifier

R3KFRMM_ADDTAGINCHOREOGRAPHY

Param 1:

R3BOOL, if true, no curves are created (caller will create anim curves later)

JavaScript

obj.ADDTAGINCHOREOGRAPHY(p1, 0);

Description

Add new tag to be animated in a single choreography

R3KFRMM_BREAK

Method

BREAK

Identifier

R3KFRMM_BREAK

Param 1:

R3INT, tag

Param 3:

R3INT, index or -1 for regular attrs

JavaScript

obj.BREAK(p1, p3);

Description

For constr. implementors. Can be called to break the constr. pipeline for * an attribute. The current value is flushed and the data is freed.

R3KFRMM_UPDATETAG

Method

UPDATETAG

Identifier

R3KFRMM_UPDATETAG

JavaScript

obj.UPDATETAG();

Description

Private, don't call from the user code

R3KFRMM_FINDCHOR

Method

FINDCHOR

Identifier

R3KFRMM_FINDCHOR

Return

R3OBJ*, chor object

Param 1:

R3OBJ*, attribute object

Param 3:

char*, name

JavaScript

rc = obj.FINDCHOR(p1, p3);

Description

Find choreography by name

R3KFRMM_NEWCHOROBJ

Method

NEWCHOROBJ

Identifier

R3KFRMM_NEWCHOROBJ

Return

R3OBJ*, chor object

Param 1:

R3OBJ*, animated attribute

Param 3:

R3INT, choreography index

JavaScript

rc = obj.NEWCHOROBJ(p1, p3);

Description

Create choreography object for the given choreography index

R3KFRMM_TAGOBJCHANGED

Method

TAGOBJCHANGED

Identifier

R3KFRMM_TAGOBJCHANGED

Return

R3BOOL, true if succeeded

Param 1:

R3OBJ*, attribute object

Param 2:

void*, new value, the actual type is the type of the attribute

Param 3:

R3FLOAT, current time

JavaScript

rc = obj.TAGOBJCHANGED(p1, p2, p3);

Description

Update value of the given attribute object

R3KFRMM_ENUMTIMELINES

Method

ENUMTIMELINES

Identifier

R3KFRMM_ENUMTIMELINES

Param 1:

R3OBJ*, callback object

Param 2:

R3INT, callback method

Param 3:

R3TAG*, R3CHRYA_Active - if -1, all chors are enumerated

JavaScript

obj.ENUMTIMELINES(p1, p2, p3);

Description

Enumerate timelines

R3KFRMM_GETTAG

Method

GETTAG

Identifier

R3KFRMM_GETTAG

Return

R3OBJ*, animated attribute object or NULL if the tag is not animated

Param 1:

R3INT, tag

Param 2:

R3INT, tag index for indexed attributes (-1 for regular attributes)

Param 3:

R3TAG*, see tags for ADDTAG

JavaScript

rc = obj.GETTAG(p1, p2, p3);

Description

Fetch attributes of attribute specified by tag + index.

R3KFRMCM_REGISTERATTRHANDLER

Method

REGISTERATTRHANDLER

Identifier

R3KFRMCM_REGISTERATTRHANDLER

Return

R3BOOL, true if succeeded

Param 2:

R3INT, priority

Param 3:

R3INT*, null terminated array of attribute ids which should trigger the handler.

JavaScript

rc = obj.REGISTERATTRHANDLER(0, p2, p3);

Description

For class implementers. A new type of attribute * may need a special treatement. Attr handler may trigger * several attributes and handle them in one pass. For example, Matrix transformation components can be animated independently. However, the animation system needs the entire matrix in order to interpolate the transformation.

R3KFRMM_TRANSLATESELECTEDTIM

Method

TRANSLATESELECTEDTIM

Identifier

R3KFRMM_TRANSLATESELECTEDTIM

Param 1:

R3INT, tag

Param 2:

R3INT, tag index (-1 for regular tags)

Param 3:

R3TAG*, R3CHRYA_Active, R3KFRMA_SnapToKey, R3KFRMA_Translation

JavaScript

obj.TRANSLATESELECTEDTIM(p1, p2, p3);

Description

Translate selected keys in time.

R3KFRMM_SETSELECTEDKEYS

Method

SETSELECTEDKEYS

Identifier

R3KFRMM_SETSELECTEDKEYS

Return

R3BOOL, true if succeeded

Param 1:

R3INT, tag

Param 2:

R3INT, tag index (-1 for regular tags)

Param 3:

R3TAG*, R3CHRYA_Active, R3KFRMA_Translation

JavaScript

rc = obj.SETSELECTEDKEYS(p1, p2, p3);

Description

Set time value for the selected keys.

R3KFRMM_UPDATETAGSIZE

Method

UPDATETAGSIZE

Identifier

R3KFRMM_UPDATETAGSIZE

Param 1:

R3INT, tag

Param 2:

R3INT, index,

Param 3:

R3INT, new size

JavaScript

obj.UPDATETAGSIZE(p1, p2, p3);

Description

R3ACOA_PointSize for all choreographs assiciated with the given attr.

R3KFRMM_NEXTTIMEKEY

Method

NEXTTIMEKEY

Identifier

R3KFRMM_NEXTTIMEKEY

Return

R3BOOL, true if found

Param 1:

R3INT, tag

Param 2:

R3INT, tag index

Param 3:

R3TAG*, R3CHRYA_Active specifying the chor and R3KFRMA_Translation specifying the current time value

JavaScript

rc = obj.NEXTTIMEKEY(p1, p2, p3);

Description

Given a time, find the next key frame time value

R3KFRMM_PREVTIMEKEY

Method

PREVTIMEKEY

Identifier

R3KFRMM_PREVTIMEKEY

Return

R3BOOL, true if found

Param 1:

R3INT, tag

Param 2:

R3INT, tag index

Param 3:

R3TAG*, R3CHRYA_Active specifying the chor and R3KFRMA_Translation specifying the current time value

JavaScript

rc = obj.PREVTIMEKEY(p1, p2, p3);

Description

Given a time, find the previous key frame time value

R3KFRMM_ISTIMEBASED

Method

ISTIMEBASED

Identifier

R3KFRMM_ISTIMEBASED

Return

R3BOOL, true if time sensitive choreographs found.

JavaScript

rc = obj.ISTIMEBASED();

Description

See if the object has time sensitive choreographs.

R3KFRMM_INVALIDATEINPUT

Method

INVALIDATEINPUT

Identifier

R3KFRMM_INVALIDATEINPUT

Param 3:

R3OBJ*, input

JavaScript

obj.INVALIDATEINPUT(p3);

Description

Detach choreographs from their input objects.

R3KFRMM_HASINPUT

Method

HASINPUT

Identifier

R3KFRMM_HASINPUT

Return

R3BOOL, true if input

Param 3:

R3INT, chor index

JavaScript

rc = obj.HASINPUT(p3);

Description

See if the choreography has input object

R3KFRMM_COPYANIMATEDATTRS

Method

COPYANIMATEDATTRS

Identifier

R3KFRMM_COPYANIMATEDATTRS

Param 1:

R3OBJ*, from object

Param 2:

R3INT, from choreography

Param 3:

R3INT, to choreography

JavaScript

obj.COPYANIMATEDATTRS(p1, p2, p3);

Description

Copy animated attributes associated with the given source object and choreography to given target object and choreography.

R3KFRMM_NEWKEY

Method

NEWKEY

Identifier

R3KFRMM_NEWKEY

Param 1:

R3INT, attribute

Param 3:

R3INT, attribute index or -1 for regular attributes

JavaScript

obj.NEWKEY(p1, p3);

Description

Create a new key frame .

R3KFRMM_SELECTTAG

Method

SELECTTAG

Identifier

R3KFRMM_SELECTTAG

Return

R3BOOL, true if attribute was found

Param 1:

R3INT, tag id

Param 2:

R3INT, tag index, or -1 for regular attrs.

Param 3:

R3BOOL, TRUE selects, FALSE deselects

JavaScript

rc = obj.SELECTTAG(p1, p2, p3);

Description

Select / deselect the given attribute

R3KFRMM_ENUMATTRS

Method

ENUMATTRS

Identifier

R3KFRMM_ENUMATTRS

Param 2:

R3INT, callback method

Param 3:

R3TAG*, R3KFRMA_Tag, R3KFRMA_Index, R3KFRMA_Type, R3KFRMA_Selected

JavaScript

obj.ENUMATTRS(0, p2, p3);

Description

Enumerate animated attributes

R3KFRMM_TAGISSELECTED

Method

TAGISSELECTED

Identifier

R3KFRMM_TAGISSELECTED

Return

R3BOOL, true if selected

Param 1:

R3INT, tag

Param 3:

R3INT, tag index or -1 for regular attrs.

JavaScript

rc = obj.TAGISSELECTED(p1, p3);

Description

See if the given attribute is selected

R3KFRMM_TAGENABLEKEYFR

Method

TAGENABLEKEYFR

Identifier

R3KFRMM_TAGENABLEKEYFR

Return

R3BOOL, true if succeeded

Param 1:

R3INT, tag

Param 2:

R3INT, index

Param 3:

R3BOOL, true to enable, false to disable

JavaScript

rc = obj.TAGENABLEKEYFR(p1, p2, p3);

Description

Enable keyframing for the tag.

R3KFRMM_TAGISKEYFRENABLED

Method

TAGISKEYFRENABLED

Identifier

R3KFRMM_TAGISKEYFRENABLED

Return

R3BOOL, true if enabled

Param 1:

R3INT, attribute id

Param 3:

R3INT, attr index

JavaScript

rc = obj.TAGISKEYFRENABLED(p1, p3);

Description

See if the given attribute is enabled for keyframing

R3KFRMM_FLUSH

Method

FLUSH

Identifier

R3KFRMM_FLUSH

Return

R3BOOL, true if attribute was managed

Param 1:

R3INT, attribute id

Param 3:

R3INT, index or -1 for regular attrs

JavaScript

rc = obj.FLUSH(p1, p3);

Description

Constructors call this to flush attribute they depend on. *

R3KFRMM_REMOVE

Method

REMOVE

Identifier

R3KFRMM_REMOVE

Param 1:

R3OBJ*, attribute object

Param 3:

R3OBJ*, object to be removed

JavaScript

obj.REMOVE(p1, p3);

Description

Remove constructor

R3KFRMM_ISWEIGHTANIMATEABLE

Method

ISWEIGHTANIMATEABLE

Identifier

R3KFRMM_ISWEIGHTANIMATEABLE

JavaScript

obj.ISWEIGHTANIMATEABLE();

Description

R3KFRMM_DELSELECTEDKNOTS

Method

DELSELECTEDKNOTS

Identifier

R3KFRMM_DELSELECTEDKNOTS

Param 1:

R3INT, attribute

Param 2:

R3INT, attribute index, or -1 for regular attrs

Param 3:

R3INT, choreography index

JavaScript

obj.DELSELECTEDKNOTS(p1, p2, p3);

Description

Delete the currently selected time keys.

R3KFRMM_DELCHOROBJ

Method

DELCHOROBJ

Identifier

R3KFRMM_DELCHOROBJ

Param 1:

R3OBJ*, animated attribute

Param 3:

R3INT, choreography index

JavaScript

obj.DELCHOROBJ(p1, p3);

Description

Delete the choreography object associated * with the given animated attribute and the choreography index.

R3KFRMM_GETINPUTOBJ

Method

GETINPUTOBJ

Identifier

R3KFRMM_GETINPUTOBJ

Return

R3OBJ*, input object

Param 3:

R3INT, chor index

JavaScript

rc = obj.GETINPUTOBJ(p3);

Description

Fetch the input object of a choreography

R3KFRMM_SETINPUTOBJ

Method

SETINPUTOBJ

Identifier

R3KFRMM_SETINPUTOBJ

Return

R3BOOL, true if chor index is valid

Param 1:

R3INT, chor index

Param 3:

R3OBJ*, input object

JavaScript

rc = obj.SETINPUTOBJ(p1, p3);

Description

Set input object for the choreography

R3KFRMM_SELECTRANGE

Method

SELECTRANGE

Identifier

R3KFRMM_SELECTRANGE

Return

R3INT, number of points selected

Param 1:

R3INT, disabled mask (1 corresponds to x curve etc.)

Param 2:

R3FLOAT, start

Param 3:

R3FLOAT, end

JavaScript

rc = obj.SELECTRANGE(p1, p2, p3);

Description

Select keyframes between the given range

R3KFRMM_SHIFTTOORIGINY

Method

SHIFTTOORIGINY

Identifier

R3KFRMM_SHIFTTOORIGINY

Param 1:

R3INT, attribute

Param 2:

R3INT, index or -1 for regular attributes

Param 3:

R3INT, choregraphy

JavaScript

obj.SHIFTTOORIGINY(p1, p2, p3);

Description

Shift keyframe curves to start from origin so that they define * identity transformation there.

R3KFRMM_SHARPENSELECTEDKNOTS

Method

SHARPENSELECTEDKNOTS

Identifier

R3KFRMM_SHARPENSELECTEDKNOTS

Param 1:

R3INT, attribute

Param 2:

R3INT, attribute index, or -1 for regular attrs

Param 3:

R3INT, choreography index

JavaScript

obj.SHARPENSELECTEDKNOTS(p1, p2, p3);

Description

Set selected time keys to polygonal

R3KFRMM_MIRROR

Method

MIRROR

Identifier

R3KFRMM_MIRROR

Param 1:

R3INT, attribute

Param 2:

R3INT, attribute index, or -1 for regular attrs

Param 3:

R3INT, choreography index

JavaScript

obj.MIRROR(p1, p2, p3);

Description

Mirror the animation curves. Works only

UserObject

Attribute

UserObject

Identifier

R3KFRMA_UserObject

JavaScript type

Object

C type

R3OBJ*

Description

object to be animated

Syntax


jsobj.SetUserObject(value);
value = jsobj.GetUserObject();


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3KFRMA_UserObject, value, R3TAG_END);
R3OBJ* value;
R3GetAttrs(r3obj, R3KFRMA_UserObject, &value, R3TAG_END);

Time

Attribute

Time

Identifier

R3KFRMA_Time

JavaScript type

Number

C type

R3FLOAT

Description

current time

Syntax


jsobj.SetTime(value);
value = jsobj.GetTime();


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3KFRMA_Time, value, R3TAG_END);
R3FLOAT value;
R3GetAttrs(r3obj, R3KFRMA_Time, &value, R3TAG_END);

NewKeyTolerance

Attribute

NewKeyTolerance

Identifier

R3KFRMA_NewKeyTolerance

JavaScript type

Number

C type

R3FLOAT

Description

modify existing/creating new key tolerance

Syntax


jsobj.SetNewKeyTolerance(value);


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3KFRMA_NewKeyTolerance, value, R3TAG_END);

AnimatedAttrs

Attribute

AnimatedAttrs

Identifier

R3KFRMA_AnimatedAttrs

JavaScript type

r3List

C type

R3LIST*

Description

list of animated attributes

Syntax


value = jsobj.GetAnimatedAttrs();


R3LIST* value;
R3GetAttrs(r3obj, R3KFRMA_AnimatedAttrs, &value, R3TAG_END);

Tags

Tags

R3KFRMA_Type
R3KFRMA_Tag
R3KFRMA_Origval
R3KFRMA_IsQuaternionAngle
R3KFRMA_NumVals
R3KFRMA_ArraySkip
R3KFRMA_Index
R3KFRMA_UseFrequency
R3KFRMA_UseWeight
R3KFRMA_List
R3KFRMA_Relative
R3KFRMA_WeightTag
R3KFRMA_InputObj
R3KFRMA_InputTag
R3KFRMA_InputIndex
R3KFRMA_InputSub
R3KFRMA_Chor
R3KFRMA_PerPoint
R3KFRMA_AngleType
R3KFRMA_InputMth
R3KFRMA_SnapToKey
R3KFRMA_Translation
R3KFRMA_Selected
R3KFRMA_ByValue
R3KFRMA_InputBeginMth
R3KFRMA_InputEndMth