Getting .kine. values at different frame/time

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
bblevins
Posts: 6
Joined: 04 Jul 2009, 11:01

Getting .kine. values at different frame/time

Post by bblevins » 15 Jan 2011, 00:05

I have an object keyframed around a scene. I want to make other objects follow it a few frames behind. Eventually I want to make the points of the object lag behind as well, but wanted to start out simple.

I can get the .kine.global info for an object at the current frame with the 'Get Data' node, and the previous frame with the 'Get Data at Previous Frame' node.

How do I get that info at a different time, say like 5 frames behind, or 1.5 seconds behind, or even 10 frame ahead? I thought I could just use a 'Current Time' node, add or subtract a value, and ICE would return the value based on the keyed curve. But alas.. There is no place to plug it in the 'Get Data' node

Any ideas?

Pooby
Posts: 501
Joined: 27 Aug 2010, 20:25

Re: Getting .kine. values at different frame/time

Post by Pooby » 15 Jan 2011, 07:42

I was trying to find this too the other day, didn't figure it out.
It seems like it should be really obvious and basic. If anyone can help, I'd appreciate it too.

User avatar
owei
Administrator
Posts: 840
Joined: 03 Jun 2009, 15:25
Location: Siegen/Germany

Re: Getting .kine. values at different frame/time

Post by owei » 15 Jan 2011, 10:04

Hi!

You can´t access fcurves directly via ICE. But you can use expressions to get a certain value at a certain time.
Grab a scalar node and set an expression on it, for example: at_frame( Fc - 10, cube.kine.local.posx ). Do the same for y and z, that way you can reconstruct the position at a specific frame...but I think, there are some restrictions given..

An other way might be to bring all the fcurves you need directly into your ice tree. Unfortunately the fcurve editor of the fcurve node is not very comfortable, so it´s a bit hard to bring in the curves you like. I´ve just exported certain data from the animation editor and loaded it to the fcurve node. As the timeline in the "fraw" format is relative to your scene settings, you will have to multiply the in values of your fcurve node with a certain factor...

cheers,
oliver

Pooby
Posts: 501
Joined: 27 Aug 2010, 20:25

Re: Getting .kine. values at different frame/time

Post by Pooby » 15 Jan 2011, 15:00

I hadn't even thought of bringing expressions in. Thanks.

grahamef
Posts: 281
Joined: 23 Jun 2009, 19:01

Re: Getting .kine. values at different frame/time

Post by grahamef » 17 Jan 2011, 18:47

Yeah, it's a nice tip. However one thing to remember about using expressions with ICE is that they aren't saved in compounds. This is by design because you can't guarantee that the object referenced by an expression will exist in other scenes.