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?
Getting .kine. values at different frame/time
-
Pooby
- Posts: 501
- Joined: 27 Aug 2010, 20:25
Re: Getting .kine. values at different frame/time
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.
It seems like it should be really obvious and basic. If anyone can help, I'd appreciate it too.
-
owei
- Administrator
- Posts: 840
- Joined: 03 Jun 2009, 15:25
- Location: Siegen/Germany
Re: Getting .kine. values at different frame/time
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
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
Founder of www.si-community.com
http://www.pixelpanic.de
http://www.pixelpanic.de
-
Pooby
- Posts: 501
- Joined: 27 Aug 2010, 20:25
Re: Getting .kine. values at different frame/time
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
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.