Forum

FORUMS > EON Authoring Tools Forum > KeyFrame Node Question
RE: KeyFrame Node Questiontop^
David Weathers
Username: caduswadoh
Posted: Thu 11 Feb, 2010 3:43 PM
3143 days ago
Location: United States
Default

I am having a little trouble with the keyframe node.  I am sending an MFvec3f to the scales input of the key frame node, and it is receiving the information as I can look at the control points on the node and they are updated.  However, it still uses the "old" keyframe data when I send a true value to SetRun.  How do you tell a keyframe node to recalculate/update its information?

David W

TSTC; EON 6.0;

RE: KeyFrame Node Questiontop^
Lloyd Churches
Username: eonman
Posted: Fri 12 Feb, 2010 2:43 PM
3142 days ago
Location: Australia
Administrators

Hi David,

You need to send true to the SortPoints field of the KeyFrame node after changing any of the keyframe data whether it be Scales, Positions, Orientations, Times.

This updates the internal keyframe data.

 Lloyd

RE: KeyFrame Node Questiontop^
David Weathers
Username: caduswadoh
Posted: Mon 15 Feb, 2010 10:36 PM
3139 days ago
Location: United States
Default

Thanks!,

That did it.  I just ran the same Boolean output to the SortPoints and SetRun input of the keyframe node and it is behaving as I would expect.  It might help if that were noted in the help file. 

 

On a side note, I found a typo in the help file.  The help file on the keyframe node lists time in as a MFVec3f while it is actually a MFFloat.  This may have been corrected in a later version, just pointing it out in case it hasn't.

 

David

RE: KeyFrame Node Questiontop^
Lloyd Churches
Username: eonman
Posted: Tue 16 Feb, 2010 2:45 AM
3139 days ago
Location: Australia
Administrators

Hi David,

 I'm going to request these changes be made to the KeyFrame node documentation.

 

1. In the fields list there is "SortPointes". It should be spelt "SortPoints"

2. SortPoints field should be explained more thoroughly like this.

After adding Positions, Orientations, Scales and Times you need to send true to this field to enter the data in the internal keyframe data set. It will also sort all data (Positions, Orientations and Scale) according to Times order.

3. A typo for Times field. The datatype should be MFFloat (not MFVec3f)

4. Explain this somewhere

Sending New Data to the KeyFrame Node During Runtime.

Keyframe data consists of times, positions, orientations and scale. You can send new keyframe data during runtime by setting the Positions, Orientations, Scales and Times fields followed by sending true to the SortPoints field. You must send at least the Times fields and each time stamp must be unique. If you leave out data for positions or orientations then they will have default values of zero. If you leave out data for scales then it will have default values of 1. Each time you send data it will overwrite previous data. If you have previously sent in Positions data and Times data and set SortPoints=true then next time it is possible to send only Times data and SortPoints=true and the previous Positions data will be used. If you do not want the previous data to be used then send true to the RemoveAllPoints field to remove all data and start with a clean slate.
Please note that the Positions, Orientations, Scales and Times fields are inevents and this denotes that it is not possible to get the data already stored within the keyframe, it means it is only possible to send new data to it.

 Lloyd